Upravit

Sdílet prostřednictvím


Public Properties

Public properties can be authored into the installation database in the same way as private properties. In addition, the values of public properties can be changed by a user or system administrator by setting the property on the command line, by applying a transform, or by interacting with an authored user interface. Public property names cannot contain lowercase letters. See Restrictions on Property Names.

Public properties are commonly set by users during the installation. For example, the public property INSTALLLEVEL property can be specified at the command line used to launch the installation or chosen by using an authored user interface.

Public property values can be overridden either at a command line, by using a standard or custom action, by applying a transform, or by having the user interact with an authored user interface. To clear a public property in the property table, leave it out of the table. Properties that are to be set by the user interface during the installation and then passed to the execution phase of the installation must be public.

For a list of the standard public properties used by the installer see Property Reference. An author can also define a custom public property by entering the property's name and an initial value into the Property table. All public properties can be overridden by all users if any of the following conditions are true.

  • The user is a system administrator.
  • The per-machine EnableUserControl policy is set to 1. See System Policy.
  • The EnableUserControl property is set to 1.
  • This is an unmanaged installation that is not being done with elevated privileges.

If none of the above conditions are true, the installer defaults to limiting which public properties can be overridden by a user that is not a system administrator. See Restricted Public Properties.