Loading
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;

Loading
Delete MSI file