mbevins
Posts: 9
Joined: Thu Nov 03, 2011 12:46 pm

Set Product Name On Install

I need to set the product name with command line parameters during the install. I have tried creating a property using all upper case letters and also tried ProductName=%SITENAME%. How do I go about setting the product name with a parameter passed during the install?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set Product Name On Install

Hello,

Only public properies( all uppercase letters ) can be set through the msiexec command line:
http://www.advancedinstaller.com/user-g ... iexec.html ( see "Set Public Properties" section )

The ProductName property is a private property thus can only be set at build time.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mbevins
Posts: 9
Joined: Thu Nov 03, 2011 12:46 pm

Re: Set Product Name On Install

I also tried setting the product name to a public property [MYSITENAME] however that doesn't work either?

Product Details Tab - Product Name [|MYSITENAME]
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Set Product Name On Install

Hi,

You misunderstood my colleague's explanation. What Mihai was trying to say was that you can only set the product name at build time, not at install time.

The field "Product Name" from Product Details page is pseudo-formatted, this means, it resolves the values of the properties used in it at build-time. This is exactly what happened with your property "MYSITENAME".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”