GetTargetPath Method (directory)

Microsoft Deployment Compression & Installer

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++
public string GetTargetPath(
	string directory
)
Public Function GetTargetPath ( 
	directory As String
) As String
public:
String^ GetTargetPath(
	String^ directory
)
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.9.1006.0)