Setup Factory 10

MSI.ApplyPatch

MSI.ApplyPatch

This is the first topic This is the last topic  

MSI.ApplyPatch

This is the first topic This is the last topic  

OverviewExamples

boolean MSI.ApplyPatch (

string PatchPath,

string InstallPackage,

number InstallType,

string CommandLine = "" )

Example 1

bPatchSuccess = MSI.ApplyPatch(_TempFolder.."\\patch.msp", "", INSTALLTYPE_DEFAULT, "REINSTALL=ALL");

 

if (bPatchSuccess) then

   Dialog.Message("Patch Success", "The patch was applied successfully.");

else

   nError = Application.GetLastError();

   Dialog.Message("Error", _tblErrorMessages[nError], MB_OK, MB_ICONEXCLAMATION);

end

Uses the MSI.ApplyPatch action to search for all products on the system to apply the "patch.msp" to, and shows either a success, or error message.

See also: Related Actions


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