philh
Posts: 5
Joined: Sun Jan 18, 2009 10:09 pm

How to generate a new product code via the command line

Currently we automate our installation creation via a command line build. Before building we manually upgrade the product version within the aip file. However when it builds it does not update the product code which means when the install runs it thinks it is the same version as a previous product installed on the target machine.

How can we force it to generate a new product code during a build?

Or, how can I make the installation force an uninstall of a version it thinks is the same on the target machine before installing itself?

Note: I tried using the standard action "RemoveExistingProducts" but this presents me with the Edit/Repair/Remove dialog when I just want to "Replace" without giving the user an option.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to generate a new product code via the command line

Hi,

Please note that you can use the /SetVersion command line parameter to modify the version of your project. This way a new Product Code will be generated automatically.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
philh
Posts: 5
Joined: Sun Jan 18, 2009 10:09 pm

Re: How to generate a new product code via the command line

Perfect - thanks!

Return to “Common Problems”