From cbf32ff28a29fcaaf74064eee6bbc24bcd58045a Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 28 Jul 2008 18:49:47 -0500 Subject: [PATCH] msi: Set the ALLUSERS property for the machine context. --- dlls/msi/msi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index c7b111bb49a..359698abba4 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -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);