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

Sample .cub File

· 52CE 我爱测

This sample illustrates the layout of a .cub file containing two ICEs. The installer executes the custom actions in the sequence: ICE01 and ICE08.

This sample illustrates the layout of a .cub file containing two ICEs. The installer executes the custom actions in the sequence: ICE01 and ICE08.

The custom action ICE01 is a Custom Action Type 1. It is an entry point to a DLL that is stored as a stream in the .cub file. This stream is listed in the Binary Table ice.dll.

The custom action ICE08 is a Custom Action Type 6. It is an entry point to a function in VBScript that is stored as a stream in the .cub file. This stream is listed in the Binary Table as ice.vbs.

Binary Table

Name Data
ice.vbs Unformatted binary data of ice.vbs
ice.dll Unformatted binary data of ice.dll

CustomAction Table

Action Type Source Target
ICE01 1 ice.dll ICE01
ICE08 6 ice.vbs ICE02

_ICESequence Table

Action Condition Sequence
ICE01 10
ICE08 20

_Special Table

ICE01 and ICE08 do not require the inclusion of special processing tables. When the .cub file contains special tables they must also be included in the _Validation Table.

_Validation Table

Table Column Nullable MinValue MaxValue KeyTable KeyColumn Category Set Description
Binary Name N Identifier
Binary Data N Binary
CustomAction Action N Identifier
CustomAction Type N Integer
CustomAction Source Y CustomSource
CustomAction Target Y Formatted
_ICESequence Action N Identifier
_ICESequence Condition Y Condition
_ICESequence Sequence Y Integer

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)

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

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