Dmitry Timoshkov : msi: Also set "MsiRunningElevated" installer property.

Alexandre Julliard julliard at winehq.org
Thu Jan 21 16:19:15 CST 2021


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Dec 22 16:36:11 2020 +0300

msi: Also set "MsiRunningElevated" installer property.

This property is supposed to be set starting from Windows Installer
4.0 targeting Windows Vista. This patch fixes the installer that
checks this property in addition to VersionNT and ALLUSERS.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/package.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index 2483d99e2b5..25e22f040a4 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -737,6 +737,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
     /* in a wine environment the user is always admin and privileged */
     msi_set_property( package->db, L"AdminUser", L"1", -1 );
     msi_set_property( package->db, L"Privileged", L"1", -1 );
+    msi_set_property( package->db, L"MsiRunningElevated", L"1", -1 );
 
     /* set the os things */
     OSVersion.dwOSVersionInfoSize = sizeof(OSVersion);
@@ -963,6 +964,8 @@ void msi_adjust_privilege_properties( MSIPACKAGE *package )
         msi_set_property( package->db, L"ALLUSERS", L"1", -1 );
     }
     msi_set_property( package->db, L"AdminUser", L"1", -1 );
+    msi_set_property( package->db, L"Privileged", L"1", -1 );
+    msi_set_property( package->db, L"MsiRunningElevated", L"1", -1 );
 }
 
 MSIPACKAGE *MSI_CreatePackage( MSIDATABASE *db )




More information about the wine-cvs mailing list