msi: Define the property "Intel" if we're running on an Intel processor.

This commit is contained in:
Mike McCormack 2005-12-31 13:14:34 +01:00 committed by Alexandre Julliard
parent f24a9e2a24
commit 04a086ad65
1 changed files with 9 additions and 0 deletions

View File

@ -228,6 +228,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
static const WCHAR szScreenY[] = {'S','c','r','e','e','n','Y',0};
static const WCHAR szColorBits[] = {'C','o','l','o','r','B','i','t','s',0};
static const WCHAR szScreenFormat[] = {'%','d',0};
static const WCHAR szIntel[] = { 'I','n','t','e','l',0 };
SYSTEM_INFO sys_info;
/*
* Other things that probably should be set:
@ -353,6 +355,13 @@ static VOID set_installer_properties(MSIPACKAGE *package)
sprintfW( bufstr, szFormat2, MSI_MAJORVERSION, MSI_MINORVERSION);
MSI_SetPropertyW( package, szVersionMsi, bufstr );
GetSystemInfo( &sys_info );
if (sys_info.u.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL)
{
sprintfW( bufstr, szScreenFormat, sys_info.wProcessorLevel );
MSI_SetPropertyW( package, szIntel, bufstr );
}
/* Screen properties. */
dc = GetDC(0);
sprintfW( bufstr, szScreenFormat, GetDeviceCaps( dc, HORZRES ) );