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
- :
- Re: GetSystemInfo API Failed on Windows 7 64 bit OS
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
‎Jul 24, 2013
07:44 AM
GetSystemInfo API Failed on Windows 7 64 bit OS
hi All,
I have dual OS on my Laptop which are Windows 7 32 bit and 64 bit. Whenever i am going to run my installer on 32 bit machine the API GetSystemInfo() return right CPU type but same code failed to get CPU on 64 bit OS.
Could you please help me out for the same.
if(GetSystemInfo (CPU, nvResult, svResult) < 0) then
RecordInLogFile("ERROR:: Could not get CPU info ");
else
NumToStr(tempStr, nvResult);
if(nvResult = IS_PENTIUM) then
g_CPUType = tempStr;
I have dual OS on my Laptop which are Windows 7 32 bit and 64 bit. Whenever i am going to run my installer on 32 bit machine the API GetSystemInfo() return right CPU type but same code failed to get CPU on 64 bit OS.
Could you please help me out for the same.
if(GetSystemInfo (CPU, nvResult, svResult) < 0) then
RecordInLogFile("ERROR:: Could not get CPU info ");
else
NumToStr(tempStr, nvResult);
if(nvResult = IS_PENTIUM) then
g_CPUType = tempStr;
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 25, 2013
05:38 AM
try with this "SYSPROCESSORINFO"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 26, 2013
01:52 AM
mano.n.s75 wrote:
try with this "SYSPROCESSORINFO"
Thanks for your response.
I have used same previously it is giving same result.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2013
04:33 AM
InstallShield Custom Actions are embodied within a 32bit DLL during execution, when you are reading the 64bit section of the registry, you will need to shut off Registry Redirection – otherwise you would be reading the Wow6432Node section. You might need to write script to traverse through the registry and get the processor information.
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)