code_junkie

Is it possible to automate the creation of a inno setup package with ant?

Nov 11th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #include "settings.txt"
  2.  
  3. #define myver=xxx.xxx
  4. #define tags
  5.  
  6. <exec dir="." executable="cmd" os="Windows NT">
  7. <arg line="/c build.bat"/>
  8. </exec>
  9.  
  10. set isxpath="c:program filesinno setup 5"
  11. set isx=%isxpath%iscc.exe
  12. set iwz=myproj.iss
  13. if not exist %isx% set errormsg=%isx% not found && goto errorhandler
  14. %isx% "%iwz%" /O"%buildpath%" /F"MySetupper.exe" >>%logfile%
  15. goto :eof
  16.  
  17. #define AppName "My App"
  18. #define SrcApp "MyApp.exe"
  19. #define FileVerStr GetFileVersion(SrcApp)
  20. #define StripBuild(str VerStr) Copy(VerStr, 1, RPos(".", VerStr)-1)
  21. #define AppVerStr StripBuild(FileVerStr)
  22.  
  23. [Setup]
  24. AppName={#AppName}
  25. AppVersion={#AppVerStr}
  26. AppVerName={#AppName} {#AppVerStr}
  27. UninstallDisplayName={#AppName} {#AppVerStr}
  28. VersionInfoVersion={#FileVerStr}
  29. VersionInfoTextVersion={#AppVerStr}
  30. OutputBaseFilename=MyApp-{#FileVerStr}-setup
  31.  
  32. iscc.exe /dSpecialEdition ...
  33.  
  34. [Registry]
  35. #ifdef SpecialEdition
  36. Root: HKLM; Subkey: SoftwareMyCompanyMyApp; ValueName: SpecialEdition; ValueType: dword; ValueData: 1 ...
  37. #endif
Add Comment
Please, Sign In to add comment