JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

SetVersion command question

Hello all, I have a quick question. We use command files to build daily installation packages. In this command file I use the /SetVersion command. Our usual version number is not a valid AI version number, when I change it using the UI it will automatically change it to a format that is supported. This doesn't seem to be happening when I use the /SetVersion command, can anybody confirm if the /SetVersion command should change to a valid number or not? If it doesn't I will change my code that writes the command script to write supported version numbers.

Thanks
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: SetVersion command question

Hello,

You should use a valid AI version number with "/SetVersion" command too.
Please note that a version string has the format "x.y.z" where x, y and z are numbers. Windows Installer actually allows 4 numbers in the string, but the last one is ignored when comparing versions. The maximum acceptable version string is "255.255.65535.65535". The following are examples of valid version strings: "3", "2.0", "2.11", "5.10.5".
You could find more information regarding ProductVersion property in this article : ProductVersion property

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”