Module: wine Branch: master Commit: 770e49cd3c67851c3c6fc0222cd220d6b2e21015 URL: http://source.winehq.org/git/wine.git/?a=commit;h=770e49cd3c67851c3c6fc0222c...
Author: James Hawkins truiken@gmail.com Date: Sun May 6 20:54:21 2007 -0500
msi: Add handling for the ReinstallMode control event.
---
dlls/msi/events.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/events.c b/dlls/msi/events.c index 714e060..faaaf2f 100644 --- a/dlls/msi/events.c +++ b/dlls/msi/events.c @@ -406,6 +406,13 @@ static UINT ControlEvent_DirectoryListUp(MSIPACKAGE *package, LPCWSTR argument, return msi_dialog_directorylist_up( dialog ); }
+static UINT ControlEvent_ReinstallMode(MSIPACKAGE *package, LPCWSTR argument, + msi_dialog *dialog) +{ + static const WCHAR szReinstallMode[] = {'R','E','I','N','S','T','A','L','L','M','O','D','E',0}; + return MSI_SetPropertyW( package, szReinstallMode, argument ); +} + static const struct _events Events[] = { { "EndDialog",ControlEvent_EndDialog }, { "NewDialog",ControlEvent_NewDialog }, @@ -420,6 +427,7 @@ static const struct _events Events[] = { { "SetInstallLevel",ControlEvent_SetInstallLevel }, { "DirectoryListUp",ControlEvent_DirectoryListUp }, { "SelectionBrowse",ControlEvent_SpawnDialog }, + { "ReinstallMode",ControlEvent_ReinstallMode }, { NULL,NULL }, };