ISPPExample1.iss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #pragma option -v+
  6. #pragma verboselevel 9
  7. ;#define Debug
  8. ;#define AppEnterprise
  9. #ifdef AppEnterprise
  10. #define AppName "My Program Enterprise Edition"
  11. #else
  12. #define AppName "My Program"
  13. #endif
  14. #define AppVersion GetFileVersion(AddBackslash(SourcePath) + "MyProg.exe")
  15. [Setup]
  16. AppName={#AppName}
  17. AppVersion={#AppVersion}
  18. WizardStyle=modern
  19. DefaultDirName={autopf}\{#AppName}
  20. DefaultGroupName={#AppName}
  21. UninstallDisplayIcon={app}\MyProg.exe
  22. LicenseFile={#file AddBackslash(SourcePath) + "ISPPExample1License.txt"}
  23. VersionInfoVersion={#AppVersion}
  24. OutputDir=userdocs:Inno Setup Examples Output
  25. [Files]
  26. Source: "MyProg.exe"; DestDir: "{app}"
  27. #ifdef AppEnterprise
  28. Source: "MyProg.chm"; DestDir: "{app}"
  29. #endif
  30. Source: "Readme.txt"; DestDir: "{app}"; \
  31. Flags: isreadme
  32. [Icons]
  33. Name: "{group}\{#AppName}"; Filename: "{app}\MyProg.exe"
  34. #ifdef Debug
  35. #expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss"), \
  36. Exec(AddBackslash(CompilerPath) + "Compil32.exe", """" + AddBackslash(SourcePath) + "Preprocessed.iss""")
  37. #endif