How do I automatically set the version of my Inno Setup installer according to my application version?

前端 未结 6 1370
清歌不尽
清歌不尽 2020-12-02 08:43

I am using Inno Setup to generate the installer of my application. How can set the version number of the setup.exe (VersionInfoVersion) generated by Inno to mat

6条回答
  •  独厮守ぢ
    2020-12-02 09:29

    In case you have a pure webinstaller, the accepted solution won't work, because you simply won't have an application.exe to get the version number from.

    I'm using Nant and a build.xml file with version number properties, which i manually bump, before i'm rebuilding the innosetup installers.

    My *.iss files contain a special token @APPVERSION@, which is replaced with the version number during the build process. This is done via a copy operation with an applied filterchain, see below.

    InnoSetup Script (*.iss)

    // the -APPVERSION- token is replaced during the nant build process
    #define AppVersion "@APPVERSION@"
    

    nant build.xml:

    
    
    
    
    
    
    
    
    
            
                
                    
                    
                
                
                    
                        
                    
                
            
    
    

提交回复
热议问题