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

Authoring the Launch Custom Action

· 52CE 我爱测

The source code for a sample custom action named Launch, which meets the sample specifications, is provided by the Windows Installer SDK as the file Tutorial.cpp.

The source code for a sample custom action named Launch, which meets the sample specifications, is provided by the Windows Installer SDK as the file Tutorial.cpp. This custom action makes use of MsiFormatRecord to format a string containing properties. The property [#FileKey] resolves to the full path of the HTML file. Use the source file to create the file Tutorial.dll. The entry point to this DLL is LaunchTutorial.

The sample custom action Launch calls a DLL written in C++ and is generated from a temporary binary stream. Custom actions of this type include the base type constants msidbCustomActionTypeDll and msidbCustomActionTypeBinaryData, which give a base numeric type equal to 1. See Custom Action Type 1. Because the specifications require that the installation continue if the custom action fails, Launch also includes the optional constant msidbCustomActionTypeContinue, which is 64. See Custom Action Return Processing Options. The total numeric type of Launch is 65.

Continue to Adding Launch to the CustomAction and Binary Tables.

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)

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

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