64BitTwoArch.iss 1.7 KB

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