This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Delete MSI file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Dec 17, 2012
12:59 PM
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;
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;
(3) Replies
‎Dec 17, 2012
07:39 PM
function RemoveMSI_TempFiles (hMSI)
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;
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;