大网数据广告活动
安装更新与部署

Public Properties

· 52CE 我爱测

Public properties can be authored into the installation database in the same way as private 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.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。