Archive: How to detect if x86 or x64?


How to detect if x86 or x64?
Any idea how to find out within the installation routine?

Background: I want to pre-install a driver, but there are different drivers required for these architectures.


You can call IsWow64Process using the System plug-in.

StrCpy $0 0
System::Call "kernel32::GetCurrentProcess()i.s"
System::Call "kernel32::IsWow64Process(is,*ir0)"