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

Updating Components for an Upgrade

· 52CE 我爱测

By design, users of the fictitious MNP2000 product should never use upgraded files such as Baseba01.txt.

By design, users of the fictitious MNP2000 product should never use upgraded files such as Baseba01.txt. Therefore the updated files are by definition incompatible with the original product and Windows Installer components, such as Baseball, containing these files must be assigned new component codes. New files, such as Opera01.txt, are introduced as a part of a new component with a unique component code. Because the original product and upgrade use the same Notepad component, the component code of this component is unchanged. For more information about when component code must be changed, see Changing the Component Code.

Use Orca or another database editor to enter the following data into the Component table of MNP2001.msi. Do not reuse the GUIDs shown below in the ComponentId column in your sample.

Component Table

Component ComponentId Directory_ Attributes Condition Keypath
Baseball {2951190A-6AF8-4D7F-AA16-D256405C277A} SPORTDIR 2 Baseba01.txt
Basketball {E1AAB6B0-FEC6-4F18-B765-3B05A81CEACB} SPORTDIR 2 Basket01.txt
Concert {C28C5064-AA84-4431-AC69-FC1321DF18AF} ARTSDIR 2 Concer01.txt
Dance {1AC2B14D-D5F4-4642-9F7A-EE81BF59B3E2} ARTSDIR 2 Dance01.txt
Opera {C2DABF7E-1EF6-458D-84B1-AAC1127CED26} ARTSDIR 2 Opera01.txt
Football {92AA30F4-7AC5-4DFA-801E-988CF3DAA4DC} SPORTDIR 2 Footba01.txt
Help {AD10EB50-33C1-11D3-91D6-00C04FD70856} NOTEPADDIR 2 Help.txt
January {E90CD0E6-ED8D-4F88-B000-27BD2B482C6C} MONDIR 2 Janua01.txt
NewYears {1EEF8C53-F7C0-405C-8FE3-2B0FE54B0114} HOLDIR 2 NewYea01.txt
Memorial {BA81ACF7-4D43-424F-93B0-8845A2DF1C02} HOLDIR 2 Memori01.txt
Notepad {19BED232-30AB-11D3-91D3-00C04FD70856} NOTEPADDIR 2 Redpark.exe

Continue

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)

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

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