Convert Public Property in Restricted Public Property
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.
- Login or register to post comments
- 2039 reads
- Printer-friendly version
















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
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.