
action_jackson_p1.552490543234642E12 asked a question.
Delete MSI file
Have the following function in the 'script.url' portion of the installer. Trying to uninstall files in the specified installs folder that have a particular name. Was trying to use wildcards, but not even using the full path has been working.
Please advise.
function RemoveMSI_TempFiles (hMSI)
STRING sFile, sInstallDir;
begin
OpenLogFile();
Log("Removing Lathe MSI files");
//Removing Lathe MSI files from HWLInstalls
sFile = sInstallDir^"C:\\HWLInstalls";
if (Is(FILE_EXISTS, sFile)) then
DeleteFile(sInstallDir^"C:\\HWLInstalls\HWLInstalls\HWL Machine*.msi");
Log("Removed HWL files MSI");
CloseFile(g_nLog); //close that log file
endif;
end;
STRING sFile;
begin
OpenLogFile();
Log("Removing Lathe MSI files");
//Removing Lathe MSI files from HWLInstalls
sFile = "C:\\HWLInstalls\\HWLInstalls\\HWL Machine*.msi"";
if ( DeleteFile(sFile) = 0 ) then
Log("Removed HWL files MSI");
endif;
CloseFile(g_nLog); //close that log file
end;
(fixed this issue) still unable to remove the msi.