MSI.SetTargetPath

boolean MSI.SetTargetPath ( 

number hInstall,

string Folder,

string FolderPath )

Description

Calls the MsiSetTargetPath function that sets the full target 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 the folder identifier. This is a primary key in the Directory table.

FolderPath

(string) Specifies the full path for the folder, ending in a directory separator.

Returns

(boolean)  Returns true if the target path is set properly. 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