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

About the User Interface

· 52CE 我爱测

Windows Installer contains functionality that enables installation package developers to author a graphical user interface (GUI) that is displayed to the end-user during installation.

Windows Installer contains functionality that enables installation package developers to author a graphical user interface (GUI) that is displayed to the end-user during installation. This user interface can exhibit user interface wizard behavior, display dialog boxes and billboards, and present interactive controls to users during the installation.

The installer internal UI is managed and controlled through a set of database tables within Windows Installer itself. The installer provides only a small set of default dialog boxes that are intended to handle error and information messages. All custom dialog boxes must be created by the package author.

There is no specific Windows Installer API to allow a package author to create a UI programmatically. It is possible to use the Microsoft Windows API to create a UI programmatically; however, it is recommended that package authors use the internal UI provided.

Installer package authors create custom dialog boxes by entering the name of their custom dialog into the "_Dialog" column of the dialog table and specifying the size, position, and other attributes using the remaining columns.

Windows Installer also implements a number of standard controls that a package author can place onto dialog boxes. Not all standard Microsoft Windows controls are available, and custom controls cannot be created for use with the installer UI.

Controls are created on a specific dialog box by entering the name of the dialog box, the primary key to the dialog box's entry in the dialog table, into the second field of the control table and specifying the control's size, position, and other attributes using the remaining columns.

Active controls must be linked to a ControlEvent in the ControlEvent table to allow user interaction with the installation. Passive controls that receive and display information must be subscribed to an appropriate ControlEvent in the EventMapping table.

For more information about ControlEvents, see ControlEvent Overview. Note that a control publishes a ControlEvent if listed in the ControlEvent table and subscribes to an event if listed in the EventMapping table.

The installer UI display during installation is managed through the UI sequence tables: InstallUISequence Table, and AdminUISequence Table. One of these sequence tables is executed depending on the top-level action that initiated the installation: INSTALL, ADMIN, or ADVERTISE.

For more information about implementing a UI in Windows Installer, please see Using the User Interface, User Interface Schema, as well as the individual topics for dialog boxes and controls.

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)

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

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