Click here to Skip to main content
15,895,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two dongle driver one for 32 bit os and another for 64 bit. i made a setup using install sheild.and my question is that when i installed that setup on 32 bit os then 32 bit dongle driver should install on that machine and when installed on 64 bit machine then 64 bit dongle driver should be install.how to differentiate 32 and 64 bit os in install sheild
Posted

1 solution

Hello,

You can use SYSPROCESSORINFO structure to retrieve this information. The setup populates this structure during the initialization stage. The memeber which will be of your interest is SYSPROCESSORINFO.nProcessorArchitecture. The possible values are

  • PROCESSOR_ARCHITECTURE_INTEL
  • PROCESSOR_ARCHITECTURE_IA64
  • PROCESSOR_ARCHITECTURE_AMD64
  • PROCESSOR_ARCHITECTURE_UNKNOWN

Regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900