How to detect if system is 32bit or 64bit
How to detect in NSIS in a simple way if system is 32bit or 64bit? Thanks for any hints.
6 posts
!include x64.nsh
outfile test.exe
Section Test
${If} ${RunningX64}
MessageBox MB_OK "running on x64"
${Else}
MessageBox MB_OK "running on x86"
${EndIf}
SectionEnd
GetVersion::WindowsPlatformArchitecture
Pop $R1
${If} $R1 == "32"
MessageBox MB_OK "32 bits"
${ElseIf} $R1 == "64"
MessageBox MB_OK "64 bits"
${Endif}