Commit cbf32ff2 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Set the ALLUSERS property for the machine context.

parent 0b240c7a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment