Changing ProductName from Command Line - 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!

wwong
Posts: 7
Joined: Fri Feb 09, 2007 2:16 am

Changing ProductName from Command Line

I am currently using the command line to change the version number and build the installer project - this works fine.

I would also like to change the Product Name from the command line to include the new version number, so that the product name + version shows up in the Installed SW list.

I have tried various combinations but have not gotten this to work. For example:

AdvancedInstaller.com /edit MyProject.aip /SetProperty ProductName="MyProduct v1.0.15.0"

Does not work. This there a way to do this? It would be nice to automate this step, rather than change it manually through the GUI.

Thanks in advance for your help,
Wesley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Wesley,

The command line to set a property value from command line is /SetProperty. I test this and it works fine. What error you get when you execute this command line? Make sure the path to the AIP file is correct.

To automate this process you can type MyProduct [|ProductVersion] in the "Product Name" field. This filed is of "Pseudo Formatted" type and will be translated at build time to MyProduct 1.0.0 (where 1.0.0 is the current value of the ProductVersion property).

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
wwong
Posts: 7
Joined: Fri Feb 09, 2007 2:16 am

Hi Gigi,

The command line to set the property value of the ProductName did not generate any errors. It just did not change the value of the product name.

I did use your suggestion by setting the Product Name field to: MyProduct [|ProductVersion]. That worked exactly like I needed.

Thanks for the quick response,
Wesley

Return to “Common Problems”