This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to detect if the computer is a x64 machine ?!
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2007
06:41 AM
How to detect if the computer is a x64 machine ?!
Hi,
I have a basic msi project.
Is it possible during the install to know if the machine is on x64 or not !?
create a launch condition but how i can detect the x64 !?
Have you got any idea ?!
thanks for all
Christophe
I have a basic msi project.
Is it possible during the install to know if the machine is on x64 or not !?
create a launch condition but how i can detect the x64 !?
Have you got any idea ?!
thanks for all
Christophe
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2007
07:02 AM
Hi,
Though I'm a new user, I've been paying a lot with setup prerequisites and system search.
If you go for a setup prerequisite, in the Prerequisite condition, when you select "Setup is running on a specified platform", there already are a number of entries for X64 processor architectures you may choose from.
If you go for a system search, according to Microsoft, you may check the processor architecture from this registry key and its value:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE.
I hope this helps.
Though I'm a new user, I've been paying a lot with setup prerequisites and system search.
If you go for a setup prerequisite, in the Prerequisite condition, when you select "Setup is running on a specified platform", there already are a number of entries for X64 processor architectures you may choose from.
If you go for a system search, according to Microsoft, you may check the processor architecture from this registry key and its value:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE.
I hope this helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2007
07:27 AM
You can use the 'VersionNT64' property as a condition.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 11, 2007
03:48 AM
Hi both,
thanks for your information.
On the registry i can check if the computer is a x64 or not !
I have a virtual machine vlm who is a windows xp sp2 x64 !
If i go to the registry i can see that's there is a x64 bits.
but there is a one thing i can't understand !
if i execute this custom action on the next button on my basic msi :
this custom action gets the property versionnt64
i obtain it's win 2003 !!! then the pc it's a windows xp !!!
Someone can tell me what's happens ?
Thanks for all
Christophe
thanks for your information.
On the registry i can check if the computer is a x64 or not !
I have a virtual machine vlm who is a windows xp sp2 x64 !
If i go to the registry i can see that's there is a x64 bits.
but there is a one thing i can't understand !
if i execute this custom action on the next button on my basic msi :
this custom action gets the property versionnt64
function IsItX64(hMSI)
string szVal, szMsg;
NUMBER cchValueBuf;
begin
cchValueBuf = 512;
MsiGetProperty(hMSI, "VersionNT64", szVal, cchValueBuf);
if(szVal != "") then
switch(szVal)
case "501" :
szMsg = "_ WINDOWS XP _";
case "502" :
szMsg = "_ WIN 2003 _";
case "600" :
szMsg = "_ WIN VISTA _";
default :
szMsg = "_ UNKNOW TYPED _";
endswitch;
//Display the result
MessageBox("Valeur : " + szVal + "Identification : " + szMsg, INFORMATION);
else
MessageBox("Computer is runing under x86.", INFORMATION);
endif;
end;
i obtain it's win 2003 !!! then the pc it's a windows xp !!!
Someone can tell me what's happens ?
Thanks for all
Christophe
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 11, 2007
10:59 AM
Windows XP for x64 has the same version number as Windows Server 2003. To tell which you are on you will need to also examine the MsiNTProductType Property - look for the non-server value.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 12, 2007
01:36 AM
Hi Mickael,
that's correct, i've read this yesturday evening on the site microsoft !
Thanks for all
Christophe
that's correct, i've read this yesturday evening on the site microsoft !
Thanks for all
Christophe