Increment version number in advanced installer
Asked Answered
F

5

7

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.

Ferry answered 11/11, 2008 at 8:56 Comment(0)
F
6

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-

Folacin answered 16/1, 2010 at 3:13 Comment(2)
thanks! and amazingly they still did not develope "increase version" cli method.Misalliance
Incrementing should probably be done by your build system, but as far as AI, looks like you can now set the version with a version string advancedinstaller.com/user-guide/set-version.html rather than needing to use a compiled binaryFolacin
G
5

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

Gdynia answered 9/9, 2011 at 11:16 Comment(0)
D
1

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.

Dymoke answered 11/11, 2008 at 9:47 Comment(0)
H
1

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

Horrific answered 4/10, 2013 at 6:55 Comment(0)
S
0

Advanced Installer provides several options for synchronizing the ProductVersion of your installation package. These options include:

  • File Version: Extract the version from a DLL or EXE, either from the package itself or directly from the disk.
  • Assembly Version: Retrieve the version from a .NET assembly (DLL or EXE), again from either the package or the disk.
  • INI File Content: Use specific content within an INI file to set the ProductVersion.
  • JSON Content: Extract the version information from a JSON file.

Additionally, Advanced Installer allows you to define policies for when the ProductVersion should be updated, such as automatically generating a new ProductCode when the ProductVersion changes.

Product vrsion

Subgenus answered 25/8, 2024 at 12:56 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.