msi: Set the MsiAMD64 and Msix64 properties on 64-bit.
This commit is contained in:
parent
18ebf2c576
commit
3730300a29
|
@ -684,6 +684,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
|
|||
static const WCHAR szColorBits[] = {'C','o','l','o','r','B','i','t','s',0};
|
||||
static const WCHAR szIntFormat[] = {'%','d',0};
|
||||
static const WCHAR szIntel[] = { 'I','n','t','e','l',0 };
|
||||
static const WCHAR szMsiAMD64[] = { 'M','s','i','A','M','D','6','4',0 };
|
||||
static const WCHAR szMsix64[] = { 'M','s','i','x','6','4',0 };
|
||||
static const WCHAR szUserInfo[] = {
|
||||
'S','O','F','T','W','A','R','E','\\',
|
||||
'M','i','c','r','o','s','o','f','t','\\',
|
||||
|
@ -845,6 +847,12 @@ static VOID set_installer_properties(MSIPACKAGE *package)
|
|||
sprintfW( bufstr, szIntFormat, sys_info.wProcessorLevel );
|
||||
msi_set_property( package->db, szIntel, bufstr );
|
||||
}
|
||||
else if (sys_info.u.s.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
|
||||
{
|
||||
sprintfW( bufstr, szIntFormat, sys_info.wProcessorLevel );
|
||||
msi_set_property( package->db, szMsiAMD64, bufstr );
|
||||
msi_set_property( package->db, szMsix64, bufstr );
|
||||
}
|
||||
|
||||
/* Screen properties. */
|
||||
dc = GetDC(0);
|
||||
|
|
Loading…
Reference in New Issue