Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "settings.txt"
- #define myver=xxx.xxx
- #define tags
- <exec dir="." executable="cmd" os="Windows NT">
- <arg line="/c build.bat"/>
- </exec>
- set isxpath="c:program filesinno setup 5"
- set isx=%isxpath%iscc.exe
- set iwz=myproj.iss
- if not exist %isx% set errormsg=%isx% not found && goto errorhandler
- %isx% "%iwz%" /O"%buildpath%" /F"MySetupper.exe" >>%logfile%
- goto :eof
- #define AppName "My App"
- #define SrcApp "MyApp.exe"
- #define FileVerStr GetFileVersion(SrcApp)
- #define StripBuild(str VerStr) Copy(VerStr, 1, RPos(".", VerStr)-1)
- #define AppVerStr StripBuild(FileVerStr)
- [Setup]
- AppName={#AppName}
- AppVersion={#AppVerStr}
- AppVerName={#AppName} {#AppVerStr}
- UninstallDisplayName={#AppName} {#AppVerStr}
- VersionInfoVersion={#FileVerStr}
- VersionInfoTextVersion={#AppVerStr}
- OutputBaseFilename=MyApp-{#FileVerStr}-setup
- iscc.exe /dSpecialEdition ...
- [Registry]
- #ifdef SpecialEdition
- Root: HKLM; Subkey: SoftwareMyCompanyMyApp; ValueName: SpecialEdition; ValueType: dword; ValueData: 1 ...
- #endif
Add Comment
Please, Sign In to add comment