![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
GetSourcePath Method (directory)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► GetSourcePath(String)
Gets the full path to the designated folder on the source media or server image.
![](collapse_all.gif)
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
![](collapse_all.gif)
- directory (String)
![](collapse_all.gif)
![](collapse_all.gif)
Win32 MSI API: MsiGetSourcePath
![](collapse_all.gif)
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)