https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8585445613422f219b52cc7fb5f726672a9f0186
commit 8585445613422f219b52cc7fb5f726672a9f0186 Author: winesync <[email protected]> AuthorDate: Sun Mar 13 21:40:17 2022 +0100 Commit: Mark Jansen <[email protected]> CommitDate: Sun Mar 20 19:28:36 2022 +0100 [WINESYNC] 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 <[email protected]> Signed-off-by: Hans Leidekker <[email protected]> Signed-off-by: Alexandre Julliard <[email protected]> wine commit id dac655abce0397b3c1accec64039b8cd75beb561 by Dmitry Timoshkov <[email protected]> --- dll/win32/msi/package.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dll/win32/msi/package.c b/dll/win32/msi/package.c index e3060507b73..2af8c7b6b51 100644 --- a/dll/win32/msi/package.c +++ b/dll/win32/msi/package.c @@ -744,6 +744,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); @@ -970,6 +971,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 )
