MSI.GetSourcePath

string MSI.GetSourcePath ( 

number hInstall,

string Folder )

Description

Calls the MsiGetSourcePath function that returns the full source path for a folder in the Directory table.

Parameters

hInstall

(number) The handle to the install.

Note:  _hInstall is the default for this parameter. See Global Variables for more information.

Folder

(string) Specifies a record of the Directory table. If the directory is a root directory, this can be a value from the DefaultDir column. Otherwise it must be a value from the Directory column.

Returns

(string)   The source path. You can use Application.GetLastError to determine whether this action failed, and why. You can also retrieve extended error information using the MSI.GetLastErrorRecord action.

See also:  Related Actions