64BitTwoArch.iss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ; -- 64BitTwoArch.iss --
  2. ; Demonstrates how to install a program built for two different
  3. ; architectures (x86 and x64) using a single installer.
  4. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
  5. [Setup]
  6. AppName=My Program
  7. AppVersion=1.5
  8. DefaultDirName={pf}\My Program
  9. DefaultGroupName=My Program
  10. UninstallDisplayIcon={app}\MyProg.exe
  11. Compression=lzma2
  12. SolidCompression=yes
  13. OutputDir=userdocs:Inno Setup Examples Output
  14. ; "ArchitecturesInstallIn64BitMode=x64" requests that the install be
  15. ; done in "64-bit mode" on x64, meaning it should use the native
  16. ; 64-bit Program Files directory and the 64-bit view of the registry.
  17. ; On all other architectures it will install in "32-bit mode".
  18. ArchitecturesInstallIn64BitMode=x64
  19. ; Note: We don't set ProcessorsAllowed because we want this
  20. ; installation to run on all architectures (including Itanium,
  21. ; since it's capable of running 32-bit code too).
  22. [Files]
  23. ; Install MyProg-x64.exe if running in 64-bit mode (x64; see above),
  24. ; MyProg.exe otherwise.
  25. ; Place all x64 files here
  26. Source: "MyProg-x64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: Is64BitInstallMode
  27. ; Place all x86 files here, first one should be marked 'solidbreak'
  28. Source: "MyProg.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Flags: solidbreak
  29. ; Place all common files here, first one should be marked 'solidbreak'
  30. Source: "MyProg.chm"; DestDir: "{app}"; Flags: solidbreak
  31. Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
  32. [Icons]
  33. Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"