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

Platform Support of Advertisement

· 52CE 我爱测

The Windows Installer supports advertisement of applications and features.

The Windows Installer supports advertisement of applications and features.

The following advertisement capabilities are available.

  • Shortcuts and their icons.

  • Extensions and their icons specified in the ProgId Table.

  • Shell and command Verbs registered underneath the ProgId key.

  • CLSID contexts and InProcHandler.

  • Install-On-Demand through OLE is only available programmatically through CoCreateInstance (C/C++), and CreateObject Function (Visual Basic) or GetObject Function (Visual Basic).

Note: AppId and Typelib information is only written when an advertised component is installed.

To support file name extensions, the application must be published to Active Directory by an administrator using Group Policy.

Remarks

The installation of the product may not require a restart, but any advertised shortcuts do not work until the machine is restarted. The advertised shortcuts of subsequent installations work without a restart.

To ensure that advertised shortcuts work correctly, the package author should schedule a forced restart at the end of the installation.

To avoid unnecessary restarts of the system, schedule a restart to run only if no version of the Windows Installer is installed.

Conditional statements can check the ShellAdvtSupport property and Version9X property. For more information about scheduling a conditional forced restarts, see System Reboots and Using Properties in Conditional Statements.

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 03/18/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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