Convert Public Property in Restricted Public Property

Convert Public Property in Restricted Public Property
piyushnasa's picture

There are 3 types of properties in Windows Installer; namely: Public Property, Private Property and Restricted Public Property.

Here's what you need to include Public Properties in Restricted Public Properties.

Public property can be changed from command line while installing the package whereas private properties cannot be changed from command line.

Restricted public properties can be only changed by a system administrator or by a user who has elevated privileges.

To include public properties in Restricted public properties, add them to the SecureCustomProperties property.

Generally we add INSTALLDIR and UPGRADE_1 properties as Restricted public property.

Here UPGRADE_1 refers to the Upgrade action name which is there in your package.

3.473685
Average: 3.5 (57 votes)

Piyush can you please give

Piyush can you please give collection of Public properties which suppose to be Restricted.
Sachin

It depends on company to

piyushnasa's picture

It depends on company to company and your requirements. We generally keep INSTALLDIR and UPGRADE_1 property restricted. But if your need is to change INSTALLDIR on commandline then you cannot give INSTALLDIR as restricted property. You can also restrict PIDKEY, which is generally the serial number for the software. It all depends on your requirement and not a rule.