Hi,
I'm getting the following error. Kindly if some one knows let me know.
$Installer = Win32::OLE->new('WindowsInstaller.Installer');
$rep = $Installer->ApplyPatch($patchID, '', 0, '');
if (Win32::OLE->LastError) {
# print 'Error : Error code = ' . (0 +
Win32::OLE::LastError()) . 'description = ' . ('' .
Win32::OLE::LastError()) . ' from ' , "\n";
print "\n",'Failed to apply patch ',$patchID, "\n\n";
print 'Error code is ', Win32::OLE->LastError, "\n";
}
else
{
print "\n",'Successfully applied the Patch ',$patchID, "\n\n";
}
if I give a wrong input to ApplyPatch function, it gives me the following error,
Error code is OLE exception from "Msi API Error":
ApplyPatch,PatchPackage,InstallPackage,InstallType,CommandLine
Win32::OLE(0.1701) error 0x80004005: "Unspecified error"
in METHOD/PROPERTYGET "ApplyPatch"
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs