I'm using Inno Setup with two components: one for 32-bit machines and one for 64-bit. These will run on XP/Vista/Win7.
[Components]
Name: Bin/32; Description: 32-bit; Types: full; Flags: dontinheritcheck
Name: Bin/64; Description: 64-bit; Types: full; Flags: dontinheritcheck
Currently:
- Both Components are ticked by default when running the installer.
What I want is:
- An appropriate default (i.e. either 32-bit or 64-bit ticked) depending on the user's machine.
- Greying out the inappropriate Component would be a bonus too.
What I've found so far is:
- That I probably want to use Pascal in the [Code] section.
- The IsWin64 function
- That I might want to use an Event for this, but I can't find anything related to my needs yet.
P.S. Unfortunately I'm not able to have separate installers per architecture.