Deployment Tools Foundation
GetTargetPath Method (directory)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► GetTargetPath(String)
Gets the full path to the designated folder on the installation target drive.
Declaration Syntax| C# | Visual Basic | Visual C++ |
public string GetTargetPath( string directory )
Public Function GetTargetPath ( directory As String ) As String
public: String^ GetTargetPath( String^ directory )
Parameters- directory (String)
Return Value
RemarksWin32 MSI API: MsiGetTargetPath
Exceptions| Exception | Condition |
|---|---|
| ArgumentException | the folder was not found in the Directory table |
| InvalidHandleException | the Session handle is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)