msi: Implement the SetInstallLevel event.
This commit is contained in:
parent
de73481c89
commit
ece0ae0a41
|
@ -35,6 +35,7 @@ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/contr
|
||||||
#include "action.h"
|
#include "action.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msi);
|
WINE_DEFAULT_DEBUG_CHANNEL(msi);
|
||||||
|
|
||||||
|
@ -368,6 +369,16 @@ UINT ACTION_DialogBox( MSIPACKAGE* package, LPCWSTR szDialogName )
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static UINT ControlEvent_SetInstallLevel(MSIPACKAGE* package, LPCWSTR argument,
|
||||||
|
msi_dialog* dialog)
|
||||||
|
{
|
||||||
|
int iInstallLevel = atolW(argument);
|
||||||
|
|
||||||
|
TRACE("Setting install level: %i\n", iInstallLevel);
|
||||||
|
|
||||||
|
return MSI_SetInstallLevel( package, iInstallLevel );
|
||||||
|
}
|
||||||
|
|
||||||
static const struct _events Events[] = {
|
static const struct _events Events[] = {
|
||||||
{ "EndDialog",ControlEvent_EndDialog },
|
{ "EndDialog",ControlEvent_EndDialog },
|
||||||
{ "NewDialog",ControlEvent_NewDialog },
|
{ "NewDialog",ControlEvent_NewDialog },
|
||||||
|
@ -379,6 +390,7 @@ static const struct _events Events[] = {
|
||||||
{ "AddSource",ControlEvent_AddSource },
|
{ "AddSource",ControlEvent_AddSource },
|
||||||
{ "SetTargetPath",ControlEvent_SetTargetPath },
|
{ "SetTargetPath",ControlEvent_SetTargetPath },
|
||||||
{ "Reset",ControlEvent_Reset },
|
{ "Reset",ControlEvent_Reset },
|
||||||
|
{ "SetInstallLevel",ControlEvent_SetInstallLevel },
|
||||||
{ NULL,NULL },
|
{ NULL,NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue