Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno-setup 32bit and 64bit in one

Tags:

inno-setup

Is it possible to add a file say "x64.dll" when it is a 64bit installation and "x86.dll" when it is a 32bit installation?

like image 508
Revvion Avatar asked Jan 28 '11 22:01

Revvion


People also ask

Can I run a 64bit app on a 32bit OS?

Summary. The 64-bit versions of Windows use the Microsoft Windows-32-on-Windows-64 (WOW64) subsystem to run 32-bit programs without modifications. The 64-bit versions of Windows don't provide support for 16-bit binaries or 32-bit drivers.

Is Inno Setup free?

Inno Setup is a free installer for Windows programs by Jordan Russell and Martijn Laan. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability.

How do I Setup an Inno Setup?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly.


1 Answers

It is possible. Take a look at the 64BitTwoArch.iss sample (especially the Is64BitInstallMode boolean):

; -- 64BitTwoArch.iss -- ; Demonstrates how to install a program built for two different ; architectures (x86 and x64) using a single installer.  ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!  [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program DefaultGroupName=My Program UninstallDisplayIcon={app}\MyProg.exe Compression=lzma2 SolidCompression=yes OutputDir=userdocs:Inno Setup Examples Output ; "ArchitecturesInstallIn64BitMode=x64" requests that the install be ; done in "64-bit mode" on x64, meaning it should use the native ; 64-bit Program Files directory and the 64-bit view of the registry. ; On all other architectures it will install in "32-bit mode". ArchitecturesInstallIn64BitMode=x64 ; Note: We don't set ProcessorsAllowed because we want this ; installation to run on all architectures (including Itanium, ; since it's capable of running 32-bit code too).  [Files] ; Install MyProg-x64.exe if running in 64-bit mode (x64; see above), ; MyProg.exe otherwise. Source: "MyProg-x64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: Is64BitInstallMode Source: "MyProg.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode Source: "MyProg.chm"; DestDir: "{app}" Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme  [Icons] Name: "{group}\My Program"; Filename: "{app}\MyProg.exe" 
like image 113
mirtheil Avatar answered Sep 26 '22 08:09

mirtheil