cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Differences Between A Public And Private Property

Differences Between A Public And Private Property

Summary

This article discusses the differences between public and private properties.

Synopsis

This article discusses the differences between public and private Windows Installer MSI properties.


Discussion

Public properties are accessible throughout the Setup (command line), Dialog Editor, custom actions, InstallScript, etc., while private properties are only accessible within the interface. Public properties are defined in all capital letters in the Property Manager, while private properties can be either case.

  1. If you are using a property to conditionally install a component or feature or you are trying to access it via MsiSetProperty or MsiGetProperty, you may want to declare this property as a public property.

  2. There are many public properties, such as ALLUSERS, REINSTALL, and REMOVE, which are predefined Windows Installer properties that you can use within your project and call via command-line arguments.

  3. Public properties can be accessed and modified by the end user running your setup, via command line, or transforms.

Additional Information

For more information, see the Windows Installer Help Library topics Public Properties and Private Properties.

Was this article helpful? Yes No
No ratings
Comments

May you please show us an example how to set and get the value of a public property in InstallScript's event in InstallScript MSI project?

Version history
Last update:
‎Dec 03, 2007 01:50 PM
Updated by: