MSI Factory 2.3

MSI.GetTargetPath

MSI.GetTargetPath

This is the first topic This is the last topic  

MSI.GetTargetPath

This is the first topic This is the last topic  

OverviewExamples

string MSI.GetTargetPath (

number hInstall,

string Folder )

Example 1

strInstallDirTarget = MSI.GetTargetPath(_hInstall, "INSTALLDIR");

strInstallDirSource = MSI.GetSourcePath(_hInstall, "INSTALLDIR");

 

if (strInstallDir == "C:\\Program Files\\AppABC") and (strInstallDirSource == "D:\\") then

   bSetTrg = MSI.SetTargetPath(_hInstall, "INSTALLDIR", "C:\\");

end

Sets the target path to the root of the C: drive if it is being installed to the Program Files folder and it is run from the D: drive.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us