GetTargetPath Method (directory)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetTargetPath Method (directory)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionGetTargetPath(String)
Gets the full path to the designated folder on the installation target drive.
Declaration Syntax
C# Visual Basic Visual C++ F#
public string GetTargetPath(
	string directory
)
Public Function GetTargetPath ( 
	directory As String
) As String
public:
String^ GetTargetPath(
	String^ directory
)
member GetTargetPath : 
        directory : string -> string 
Parameters
directory (String)
Return Value
Remarks

Win32 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.11.1.2318)