James Hawkins : msi: Set the ALLUSERS property for the machine context.

Alexandre Julliard julliard at winehq.org
Tue Jul 29 07:16:34 CDT 2008


Module: wine
Branch: master
Commit: cbf32ff28a29fcaaf74064eee6bbc24bcd58045a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cbf32ff28a29fcaaf74064eee6bbc24bcd58045a

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Mon Jul 28 18:49:47 2008 -0500

msi: Set the ALLUSERS property for the machine context.

---

 dlls/msi/msi.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index c7b111b..359698a 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);




More information about the wine-cvs mailing list