MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Setting version number for Control Panel

Hello,

I would like to know how to set the version number that is displayed in the control panel add/remove programs dialog (see Programs and features .PNG)

Additionally, can this value be set with the TeamCity build agent (see AdvancedInstaller_TeamCityBuildAgent.PNG)

Thanks
Mie
Attachments
Version number in control panel
Version number in control panel
Programs and features .PNG (119.07 KiB) Viewed 12777 times
Team City Build Agent that uses Advanced installer
Team City Build Agent that uses Advanced installer
AdvancedInstaller_TeamCityBuildAgent.PNG (30.33 KiB) Viewed 12777 times
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Setting version number for Control Panel

Hi Mie,

To set the ProductVersion you can use the Set Version Command Option,

Let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Hello,

I have tried :

SetVersion 9.9.9.9

and

SetVersion %dep.Pm30_Agent.system.MM%.%dep.Pm30_Agent.system.mm%.%dep.Pm30_Agent.system.build.number%.%dep.Pm30_Agent.system.RR%


Both of which do not change the version
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Here is the build log:

[08:16:42]Step 1/2: Agent Installer (Advanced Installer) (2s)
[08:16:42][Step 1/2] Running Advanced Installer
[08:16:42][Step 1/2] Starting: "C:\Program Files (x86)\Caphyon\Advanced Installer 12.8\bin\x86\AdvancedInstaller.com" /execute C:\TeamCity\buildAgent\work\563127aed708220b\AgentSetup.aip C:\TeamCity\buildAgent\temp\globalTmp\aic1692601721856072638.tmp
[08:16:42][Step 1/2] in directory: C:\TeamCity\buildAgent\work\563127aed708220b
[08:16:43][Step 1/2] SetVersion 3.0.195.0
[08:16:43][Step 1/2] Property value "3.0.195.0" is disallowed.
[08:16:43][Step 1/2] Reason:
[08:16:43][Step 1/2] Invalid internal name. Referred from:
[08:16:43][Step 1/2] Directory
[08:16:43][Step 1/2] ProductVersion_1_Dir
[08:16:43][Step 1/2] ProductVersion_Dir
[08:16:44][Step 1/2] Process exited with code -536805276
[08:16:44][Step 1/2] Step Agent Installer (Advanced Installer) failed
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

So I fixed this error

[08:16:43][Step 1/2] ProductVersion_1_Dir
[08:16:43][Step 1/2] ProductVersion_Dir
[08:16:44][Step 1/2] Process exited with code -536805276

by hard coding the version number in my directories that I create instead of using [|ProductVersion]

But the version number is still not updating in the control panel?
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

I have attached a screen snapshot of the control panel that shows the incorrect (3.0) version number... however it seems the build was successful in setting the correct (3.0.198.0) version number ? ( I assume that the call to "SetVersion" is the ProductVersion number, and ProductVersion number is the value shown in the control panel version column? )


Here is the build log:

[12:15:12]Step 1/2: Agent Installer (Advanced Installer) (3s)
[12:15:13][Step 1/2] Running Advanced Installer
[12:15:13][Step 1/2] Starting: "C:\Program Files (x86)\Caphyon\Advanced Installer 12.8\bin\x86\AdvancedInstaller.com" /execute C:\TeamCity\buildAgent\work\563127aed708220b\AgentSetup.aip C:\TeamCity\buildAgent\temp\globalTmp\aic1189549788595429408.tmp
[12:15:13][Step 1/2] in directory: C:\TeamCity\buildAgent\work\563127aed708220b
[12:15:13][Step 1/2] SetVersion 3.0.198.0
[12:15:13][Step 1/2] Build
[12:15:13][Step 1/2]
[12:15:13][Step 1/2] Checking builds status
[12:15:13][Step 1/2] Build required.
[12:15:13][Step 1/2]
[12:15:13][Step 1/2] [ DefaultBuild ]
[12:15:13][Step 1/2] Building package (en): C:\TeamCity\buildAgent\work\563127aed708220b\Setup Files\AgentSetup3.0.198.0.msi
[12:15:14][Step 1/2] Creating CAB file(s)
[12:15:15][Step 1/2] Creating MSI database
[12:15:15][Step 1/2] Inserting CAB file(s) into MSI
[12:15:15][Step 1/2] Writing Summary Information
[12:15:15][Step 1/2] Build time: 2 sec.
[12:15:15][Step 1/2]
[12:15:15][Step 1/2] Total build time: 2 sec.
[12:15:15][Step 1/2]
[12:15:15][Step 1/2] Build finished successfully.
[12:15:15][Step 1/2] Process exited with code 0



Here is the control panel snapshot:
Control panel snapshot
Control panel snapshot
ControlPanelVersion.PNG (23.59 KiB) Viewed 12765 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Any advice on this?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting version number for Control Panel

Hello Mike,

We apologize for our delayed reply.

Can you please send us to support at advancedinstaller dot com the AIP (project file) exactly as it is saved after your Jenkins build is done? Also, can you please install the latest built setup on a clean machine and see ifthe behavior still persists?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Here is the aip file from the build I just did this morning and the build log
Attachments
AgentSetup.zip
aip file and build log
(8.61 KiB) Downloaded 329 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Daniel,

ALL of my testing installs are done on clean machines.

I have a program that rolls back the OS to the initial install state( no service packs, no SQL server, no updates etc...)

Thanks
Mike
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting version number for Control Panel

Hello Mike,

We tested your scenario and indeed replicated the issue. It seems when used from our TeamCity plugin, the "SetVersion" command is ineffective.
screen1.jpg
screen1.jpg (259.95 KiB) Viewed 12735 times
This is an issue in our TeamCity plugin. A fix will be available in a future version of our plugin. Thank you for bringing this to our attention. We will notify you when the fix will be out.

Until then, as a workaround, you can create an additional build step in your TeamCity build project which will run a command line -> build script like this:

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 12.8\bin\x86\AdvancedInstaller.com" /edit "C:\Users\caphyon\Desktop\test\sample.aip" /SetVersion 3.0.198.0
screen2.jpg
screen2.jpg (172.44 KiB) Viewed 12735 times
Also, as a side note, please be aware that you can use only a ProductVersion with three fields (i.e. 3.0.198). Any fourth field of the ProductVersion will be ignored. This is a Windows Installer rule.
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Daniel,

Thank you for the reply... the only question I have now is when do I get the check for being on your QA team ? :D

Thanks again
Have a good one.

Mike
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting version number for Control Panel

You're always welcome Mike.

Thank you for your continuous help in isolating Advanced Installer issues, :)

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Setting version number for Control Panel

Has there been an update to the plugin that fixes this?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting version number for Control Panel

Hello Mike,

I'm afraid not. This is still on our todo list.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”