2
0

ISPPExample1.iss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // -- ISPPExample1.iss --
  2. //
  3. // This script shows various basic things you can achieve using Inno Setup Preprocessor (ISPP).
  4. // To enable commented #define's, either remove the '//' or use ISCC with the /D switch.
  5. //
  6. #pragma verboselevel 9
  7. //
  8. //#define AppEnterprise
  9. //
  10. #ifdef AppEnterprise
  11. #define AppName "My Program Enterprise Edition"
  12. #else
  13. #define AppName "My Program"
  14. #endif
  15. //
  16. #define AppVersion GetVersionNumbersString(AddBackslash(SourcePath) + "MyProg.exe")
  17. //
  18. [Setup]
  19. AppName={#AppName}
  20. AppVersion={#AppVersion}
  21. WizardStyle=modern
  22. DefaultDirName={autopf}\{#AppName}
  23. DefaultGroupName={#AppName}
  24. UninstallDisplayIcon={app}\MyProg.exe
  25. LicenseFile={#file AddBackslash(SourcePath) + "ISPPExample1License.txt"}
  26. VersionInfoVersion={#AppVersion}
  27. OutputDir=userdocs:Inno Setup Examples Output
  28. [Files]
  29. Source: "MyProg.exe"; DestDir: "{app}"
  30. #ifdef AppEnterprise
  31. Source: "MyProg.chm"; DestDir: "{app}"
  32. #endif
  33. Source: "Readme.txt"; DestDir: "{app}"; \
  34. Flags: isreadme
  35. [Icons]
  36. Name: "{group}\{#AppName}"; Filename: "{app}\MyProg.exe"