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

ICE35

· 52CE 我爱测

ICE35 validates that components containing compressed files stored in a cabinet file are not set to run from source. With Windows Installer 2.0 or later, this restriction has been removed.

ICE35 validates that components containing compressed files stored in a cabinet file are not set to run from source. With Windows Installer 2.0 or later, this restriction has been removed.

ICE35 queries the Cabinet column of the Media table to determine which files are compressed and stored in a cabinet file. It queries the File table to determine which components contain these files. Finally, it checks the Component table to determine whether the run-from-source bits are set in the Attributes column.

Result

ICE35 posts an error message if there is a compressed file stored in a cabinet file belonging to a component with the msidbComponentAttributesSourceOnly bit set in the Attributes column of the Component table. With Windows Installer 2.0 or later, this is changed from an error to a warning message. A package that supports only Windows Installer 2.0 and later has the PID_PAGECOUNT property of the Summary Information Stream set to a value of at least 200.

ICE35 posts warning message if there is a compressed file stored in a cabinet file belonging to a component with the msidbComponentAttributesOptional bit set in the Attributes column of the Component table. This warning message has been removed with Windows Installer 2.0 and later.

If multiple files in a component are in a cabinet file, ICE35 reports errors for each file that has the run from source bit set.

Example

ICE35 reports the following errors and warnings for the example shown using a version earlier than Windows Installer version 2.0.

ICE35 Error Description
ERROR: Component Component3 cannot be Run From Source only, because its member file 'File3' is compressed. There is a compressed file stored in a cabinet file and this file belongs to a component with the SourceOnly bit set in the Attributes column of the Component table. To fix this error change the lower 2 bits of Component2's Attributes value to "00", meaning Local only, or remove File4 from the CAB file.
ERROR: Component Component3 cannot be Run From Source only, because its member file 'File3' is compressed. There is a compressed file stored in a cabinet file and this file belongs to a component with the SourceOnly bit set in the Attributes column of the Component table. Because the files in a component do not all have to originate from the same media, ICE35 reports errors for each file in the component that is in a cabinet. To fix this error change the lower 2 bits of Component2's Attributes value to "00", meaning Local only, or remove File4 from the CAB file.

Media Table (partial)

DiskID LastSequence Cabinet
1 2
2 4 One.cab
3 5 #Two.cab

File Table (partial)

File Component_ Sequence
File1 Component1 1
File2 Component2 2
File3 Component2 3
File4 Component3 4
File5 Component3 5

Component Table (partial)

Component Attributes
Component1 0
Component2 2
Component3 1

Shortcut Table (partial)

Shortcut Icon_
Shortcut1 Icon2

Note that files can also be marked as compressed using the Word Count Summary Property of the Summary Information stream.

Related topics

ICE Reference

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)

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

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