Convert Public Property in Restricted Public Property
Updated: 03 Jun 2008 | 2 comments
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.
blog entry Filed Under:

The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments
Piyush can you please give
Piyush can you please give collection of Public properties which suppose to be Restricted.
Sachin
With Regards
Sachin
wise.sachin@gmail.com
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.
Piyush Nasa Altiris Certified Professional (ACP)
http://msiworld.blogspot.com/
Would you like to reply?
Login or Register to post your comment.