64BitTwoArch.iss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 or Windows 11 on Arm
  6. ; the x64 version will 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 dynamic
  15. Compression=lzma2
  16. SolidCompression=yes
  17. OutputDir=userdocs:Inno Setup Examples Output
  18. ; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
  19. ; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
  20. ; meaning it should use the native 64-bit Program Files directory and
  21. ; the 64-bit view of the registry.
  22. ; On all other architectures it will install in "32-bit mode".
  23. ArchitecturesInstallIn64BitMode=x64compatible
  24. ; Note: We don't set ArchitecturesAllowed because we want this
  25. ; installation to run on all architectures.
  26. [Files]
  27. ; Install MyProg-x64.exe if running in 64-bit mode (see above), and
  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"