UpgradeCode - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

UpgradeCode

Hi,

I am using Advanced Installer from the command-line to manage mulitple installers within a CCNet environment. I have four AI projects which contain all the basic settings required to build my installers. From these four, I spawn many AI projects that are specific to a particular installer. This works fine until I have to roll out a change to the AIP files. At the moment, I have to update both the original four as well as the individual project specific files manually using a text file that contains all my upgrade codes. The reason for this is because I need to maintain the UpgradeCode value (otherwise anyone installing an upgrade will end up installing multiple versions of the application). In this situation, it would be great to be able to set the UpgradeCode from the command-line. I am using version 7.7 of AI which doesn't appear to have this feature. Is there a workaround to this? Or are there plans to include the ability to change the UpgradeCode from the command-line in future versions of AI?

Glenn
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: UpgradeCode

Hi Glenn,

ProductCode and UpgradeCode are Windows Installer properties that are written in the Property Table when the package is built. They can be set from the command line just like any other property:

Code: Select all

C:\Program Files (x86)\Caphyon\Advanced Installer 8.0.1\bin\x86>advancedinstaller.com /edit test.aip /SetProperty UpgradeCode="<YOUR UPGRADE CODE GUID HERE>"
Please see SetProperty for the syntax.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”