Set full UI mode by default.

This commit is contained in:
Mike McCormack 2005-02-10 20:26:30 +00:00 committed by Alexandre Julliard
parent 50dc513b0f
commit 47f8c9a50b

View file

@ -462,7 +462,7 @@ int main(int argc, char **argv)
LPWSTR PatchFileName = NULL;
INSTALLTYPE InstallType = INSTALLTYPE_DEFAULT;
INSTALLUILEVEL InstallUILevel = 0, retInstallUILevel;
INSTALLUILEVEL InstallUILevel = INSTALLUILEVEL_FULL;
LPWSTR DllName = NULL;
DWORD ReturnCode;
@ -483,9 +483,6 @@ int main(int argc, char **argv)
return 1;
}
for(i=0; i<argc; i++)
WINE_ERR("argv[%d]=%s\n",i,argv[i]);
for(i = 1; i < argc; i++)
{
WINE_TRACE("argvW[%d] = %s\n", i, wine_dbgstr_w(argvW[i]));
@ -812,12 +809,6 @@ int main(int argc, char **argv)
fprintf(stderr, "Unknown option \"%s\" for UI level\n",
wine_dbgstr_w(argvW[i]+2));
}
retInstallUILevel = MsiSetInternalUI(InstallUILevel, NULL);
if(retInstallUILevel == INSTALLUILEVEL_NOCHANGE)
{
fprintf(stderr, "Setting the UI level to 0x%x failed.\n", InstallUILevel);
ExitProcess(1);
}
}
else if(!msi_strequal(argvW[i], "/y"))
{
@ -862,6 +853,9 @@ int main(int argc, char **argv)
}
}
/* start the GUI */
MsiSetInternalUI(InstallUILevel, NULL);
Properties = build_properties( property_list );
Transforms = build_transforms( transform_list );