Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increment version number in advanced installer

I read a little of the help for my advanced installer 6.5.1 and couldn't find a way to change the version string except by hand.

like image 591
Hanan Avatar asked Nov 11 '08 08:11

Hanan


2 Answers

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-

like image 102
Fred Avatar answered Sep 20 '22 23:09

Fred


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

like image 42
EddieBytes Avatar answered Sep 17 '22 23:09

EddieBytes