Sample .cub File
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.
Name | Data |
---|---|
ice.vbs | Unformatted binary data of ice.vbs |
ice.dll | Unformatted binary data of ice.dll |
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.
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 |