I have a simple inno-setup script that allows my setup to install either the 32bit or 64bit version of my program based on the Is64BitInstallMode value. This works great, but I’d like to give users the option to install the 32bit version even if they are on 64bit Windows. I’d like the choice to be made before choosing the application install path so that it can default to either the 32bit or 64bit program files folder based on their choice. I’d also like to avoid the question entirely if they are on 32bit windows. I’ve been playing with the various features, but haven’t figured a way to do it yet. If I can’t do it easily I’ll just do two separate installs (and I’m trying to decide what makes the most sense!) Any suggestions are greatly appreciated!
Share
I haven’t actually done the following yet, but this is what I’d try:
Is64BitInstallMode.trueif the 64bit version should be installed (e.g.Install64BitVersion)trueif the 32bit version should be installed (e.g.Install32BitVersion)Fileentries in theFilessection to be installed conditionally:This is an example for the
Filessection: