cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shivendra
Level 3

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;
Labels (1)
0 Kudos
(3) Replies
manomatt
Level 8

try with this "SYSPROCESSORINFO"
0 Kudos
shivendra
Level 3

mano.n.s75 wrote:
try with this "SYSPROCESSORINFO"


Thanks for your response.
I have used same previously it is giving same result.
0 Kudos
manomatt
Level 8

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
0 Kudos