Path Property

DTF API

Copy image CopyHover image
Deployment Tools Foundation Path Property
Gets the full path to an installed component. If the key path for the component is a registry key then the registry key is returned.
Declaration Syntax
C# Visual Basic Visual C++ F#
public string Path { get; }
Public ReadOnly Property Path As String
	Get
public:
property String^ Path {
	String^ get ();
}
member Path : string with get
Return Value
String
The file or registry keypath to the component, or null if the component is not available.
Remarks

If the component is a registry key, the registry roots are represented numerically. For example, a registry path of "HKEY_CURRENT_USER\SOFTWARE\Microsoft" would be returned as "01:\SOFTWARE\Microsoft". The registry roots returned are defined as follows: HKEY_CLASSES_ROOT=00, HKEY_CURRENT_USER=01, HKEY_LOCAL_MACHINE=02, HKEY_USERS=03, HKEY_PERFORMANCE_DATA=04

Win32 MSI APIs: MsiGetComponentPath, MsiGetComponentPathEx, MsiLocateComponent

Exceptions
Exception Condition
ArgumentException An unknown product or component was specified
InstallerException The installer configuration data is corrupt

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)