msi: Set the ALLUSERS property for the machine context.

This commit is contained in:
James Hawkins 2008-07-28 18:49:47 -05:00 committed by Alexandre Julliard
parent 0b240c7aa3
commit cbf32ff28a
1 changed files with 8 additions and 0 deletions

View File

@ -379,6 +379,8 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
' ','I','n','s','t','a','l','l','e','d','=','1',0};
static const WCHAR szRemoveAll[] = {
' ','R','E','M','O','V','E','=','A','L','L',0};
static const WCHAR szMachine[] = {
' ','A','L','L','U','S','E','R','S','=','1',0};
TRACE("%s %d %d %s\n",debugstr_w(szProduct), iInstallLevel, eInstallState,
debugstr_w(szCommandLine));
@ -421,6 +423,9 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
if (eInstallState == INSTALLSTATE_ABSENT)
sz += lstrlenW(szRemoveAll);
if (context == MSIINSTALLCONTEXT_MACHINE)
sz += lstrlenW(szMachine);
commandline = msi_alloc(sz * sizeof(WCHAR));
if (!commandline)
{
@ -438,6 +443,9 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
if (eInstallState == INSTALLSTATE_ABSENT)
lstrcatW(commandline, szRemoveAll);
if (context == MSIINSTALLCONTEXT_MACHINE)
lstrcatW(commandline, szMachine);
r = MSI_InstallPackage( package, sourcepath, commandline );
msi_free(commandline);