创建一个自动增加版本号

 

; read a previuos Build Number, if not found get 0
#define BuildNum Int(ReadIni(SourcePath + " \\BuildInfo.ini","Info","Build","0"))
; add 1 to Build Number
#expr BuildNum = BuildNum + 1
; Store the number in the ini file for the next build
#expr WriteIni( SourcePath + " \\BuildInfo.ini","Info","Build", BuildNum )
[Setup]
AppName=AutoIncrBuild
AppVerName=AutoIncrBuild
DisableStartupPrompt=true
Uninstallable=false
CreateAppDir=false
OutputBaseFilename=setup_{#BuildNum}

你可能感兴趣的:(职场,休闲,创建一个自动增加版本号)