GetSourcePath Method (directory)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetSourcePath Method (directory)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionGetSourcePath(String)
Gets the full path to the designated folder on the source media or server image.
Declaration Syntax
C# Visual Basic Visual C++ F#
public string GetSourcePath(
	string directory
)
Public Function GetSourcePath ( 
	directory As String
) As String
public:
String^ GetSourcePath(
	String^ directory
)
member GetSourcePath : 
        directory : string -> string 
Parameters
directory (String)
Return Value
Remarks

Win32 MSI API: MsiGetSourcePath

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)