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

MsiShortcutProperty Table

· 52CE 我爱测

The MsiShortcutProperty table enables Window Installer to set properties for shortcuts that are also Windows Shell objects.

The MsiShortcutProperty table enables Window Installer to set properties for shortcuts that are also Windows Shell objects. Beginning with Windows Vista and Windows Server 2008 the Windows Shell provides an IPropertyStore Interface for shell objects such as shortcuts. A Windows Installer 5.0 package running on Windows Server 2008 R2 or Windows 7 can set these properties when the shortcut is installed.

Windows Installer 4.5 or earlier: Not supported. This table is available beginning with Windows Installer 5.0.

The MsiShortcutProperty table has the following columns.

Column Type Key Nullable
MsiShortcutProperty Identifier Y N
Shortcut_ Identifier N N
PropertyKey Formatted N N
PropVariantValue Formatted N N

Columns

MsiShortcutProperty

Unique identifier for this row of the MsiShortcutProperty table.

Shortcut_

A key into the Shortcut table that identifies the shortcut having a property set.

PropertyKey

A string value that provides information for the PROPERTYKEY structure. The information in this field must refer to the canonical name of a property registered with the Windows property system. For more information about the Windows property system, see the Property System Overview.

PropVariantValue

A string value that provides information for the PROPVARIANT structure.

Multiple properties can be set on a shortcut. If the same property is set multiple times on the same shortcut the value is set in an unspecified order.

Windows Installer can set shortcut properties only when the shortcut is installed or reinstalled. A patch that does not reinstall a shortcut that has already been installed does not update the shortcut's properties. A patch can update the properties by including a Shortcut table in the patch package and reinstalling the shortcut.

Remarks

Windows Installer Error Message 1946 is returned as a warning, and the installation continues, if Windows Installer is unable to set a shortcut property specified in the MsiShortcutProperty table.

Validation

ICE03

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)

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

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