RandomName
Posts: 8
Joined: Thu Aug 20, 2009 7:23 am

setting productcode from the command line

We're using a base .aip file and some command line scripts to batch generate installers for a number of products. Setting the version will auto-magically generate a new GUID, but we need a way to set a specific product code.

Currently the only way to do this is by editing the .aip file directly.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: setting productcode from the command line

Hi,
We're using a base .aip file and some command line scripts to batch generate installers for a number of products
This is not the recommended way to create new packages based on an existing .aip file. For this you could use templates. Just save your base .aip as a template from File -> Save as in Advanced Installer and then create a new project in Advanced Installer by selecting the saved template from the Custom Template tab in the New Project dialog.
but we need a way to set a specific product code.
There is no command line that allows you to set a specific Product Code.

If you want keep the version that you have in your base .aip then you can use SetVersion command line to change it, this generating a new Product Code. After that run SetVersion again to set it back to the one in the base .aip file.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RandomName
Posts: 8
Joined: Thu Aug 20, 2009 7:23 am

Re: setting productcode from the command line

Hi,
Bogdan wrote:This is not the recommended way to create new packages based on an existing .aip file. For this you could use templates. Just save your base .aip as a template from File -> Save as in Advanced Installer and then create a new project in Advanced Installer by selecting the saved template from the Custom Template tab in the New Project dialog.
We are batch converting a large number of projects to Advanced Installer, a manual process such as that is really out of the question.
Bogdan wrote:There is no command line that allows you to set a specific Product Code.
Yes, that is why I am making a feature request.
Bogdan wrote: If you want keep the version that you have in your base .aip then you can use SetVersion command line to change it, this generating a new Product Code. After that run SetVersion again to set it back to the one in the base .aip file.
We have existing uninstall guids, and we would like to reuse them.

Thanks,
Tony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: setting productcode from the command line

Hi Tony,

I added this improvement on our TODO list and it will be available in a future version. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RandomName
Posts: 8
Joined: Thu Aug 20, 2009 7:23 am

Re: setting productcode from the command line

Fantastic! Thanks for the follow-up.

Return to “Feature Requests”