Commit dac655ab authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e1370633
......@@ -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 )
......
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