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

MsiAssemblyName Table

· 52CE 我爱测

The MsiAssembly Table and MsiAssemblyName Table specify Windows Installer settings for common language runtime assemblies and Win32 assemblies.

The MsiAssembly Table and MsiAssemblyName Table specify Windows Installer settings for common language runtime assemblies and Win32 assemblies. For information see, Installation of Assemblies to the Global Assembly Cache and Installation of Win32 Assemblies.

The MsiAssemblyName Table specifies the schema for the elements of a strong assembly cache name for a .NET Framework or Win32 assembly. The name is constructed by appending all elements with the same Component_ key. See the following example.

Windows Installer can install Win32 assemblies as side-by-side assemblies. For more information, see the Side-by-Side Assembly API.

The MsiAssemblyName Table has the following columns.

Column Type Key Nullable
Component_ Identifier Y N
Name Text Y N
Value Text N N

Columns

Component_

Key into the Component Table that specifies the Windows Installer component that contains this assembly.

Name

Name of the attribute associated with the value specified in the Value column.

Value

Value associated with the name specified in the Name column.

Remarks

The information authored into the MsiAssemblyName Table must match the information in the manifest file of the assembly. If the information in the manifest and MsiAssemblyName Table do not match, removal of the application can leave the assembly on the computer.

For Win32 assemblies there must be a row in the MsiAssemblyName Table for each of the following entries in the Name field: type, name, version, language, publicKeyToken and processorArchitecture. The corresponding value for each name can be entered into the Value field. The name-value pairs in MsiAssemblyName Table must match the type, name, version, language, publicKeyToken and processorArchitecture attributes in the manifest of the assembly.

For private common language runtime assemblies (.NET Frameworkversions 1.0 and 1.1), the MsiAssemblyName Table must include a row for each of the following entries in the Name field: Name, Version, and Culture. The corresponding value for each Name can be entered into the Value field.

For global common language runtime assemblies (.NET Framework versions 1.0 and 1.1), the MsiAssemblyName Table must include a row for each of the following entries in the Name field: Name, Version, Culture, and PublicKeyToken. The corresponding value for each Name can be entered into the Value field.

The .NET Framework version 1.1 is the minimum version that can be used to perform an in-place update of a global common language runtime assembly. You can check the MsiNetAssemblySupport property for the version. The MsiAssemblyName Table must also have a FileVersion field because this type of assembly update only changes the FileVersion. For more information, see Updating Assemblies.

For example, the assembly manifest for ComponentA might have an assemblyIdentity section as follows for a Win32 assembly.

<assemblyIdentity type="win32" name="ms-sxstest-simple" version="1.0.0.0" language="en" publicKeyToken="1111111111222222" processorArchitecture="x86"/>

In this case, populate the MsiAssemblyName Table as follows.

Component Name Value
ComponentA type win32
ComponentA name ms-sxstest-simple
ComponentA version 1.0.0.0
ComponentA language en
ComponentA publicKeyToken 1111111111222222
ComponentA processorArchitecture x86

Validation

ICE03
ICE06
ICE32
ICE66
ICE83

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)

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

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