简体   繁体   中英

Increment version number in advanced installer

我阅读了一些有关我的高级安装程序6.5.1的帮助,但无法找到更改版本字符串的方法。

Here is a snippet from one of our push scripts. Rob, maybe you'll find this useful too- Advanced installer provides the ability to set the ProductVersion of your installation package based on an existing compiled EXE. We use a custom build task in TFS to increment our build number and set our AssemblyInfo.cs files, then with the resulting main app EXE, we can do this:

:COMPILE_AIP

SET AIP_DIR="C:\Program Files\Caphyon\Advanced Installer 7.1.3"

ECHO Advanced Installer Directiry: %AIP_DIR%

ECHO.
ECHO //////////////////////////
ECHO //Compiling AIP Files...//
ECHO //////////////////////////
ECHO.

ECHO Setting version on all installers...
ECHO Setting version on all installers... >> %DESTINATION_APP_DIR%_push_script_output.txt
%AIP_DIR%\advancedinstaller /edit "<pathtoaipfile>\installproject.aip" /SetVersion -fromfile <path to exe defining app version>
    IF NOT ERRORLEVEL 0 GOTO ERROR_HANDLER

Hope this helps-

You can use the /SetVersion switch to set the product version from the command line. Useful in automatic builds.

Starting with Advanced Installer v9.8 it is much easier to retrieve the Product Version from a file: right-click in the edit box and select the “Set version from file...” menu item on the Product Details tab. This will keep in sync the product version of the package with the version of the selected file, which can be for example your main application executable.

Cheers

The files for creating an MSI are usually in XML format, we've created a little tool that runs as part of our build process that goes and changes the build number manually, try openning the advanced installer file in notepad and look for the "ProductVersion" string.

Cheers, Rob.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM