GetShortcutTarget Method (shortcut)

Microsoft Deployment Tools

Deployment Tools Foundation GetShortcutTarget Method (shortcut)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerGetShortcutTarget(String)
Examines a shortcut and returns its product, feature name, and component if available.
Declaration Syntax
C# Visual Basic Visual C++
public static ShortcutTarget GetShortcutTarget(
	string shortcut
)
Public Shared Function GetShortcutTarget ( _
	shortcut As String _
) As ShortcutTarget
public:
static ShortcutTarget GetShortcutTarget(
	String^ shortcut
)
Parameters
shortcut (String)
Full path to a shortcut
Return Value
ShortcutTarget structure containing target product code, feature, and component code
Remarks

Win32 MSI API: MsiGetShortcutTarget

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)