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
- :
- Re: Delete MSI file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎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
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎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;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 18, 2012
01:43 PM
Still not working properly
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 02, 2013
01:13 PM
Also, when you right-click the function, the 'goto definition' portion is grayed out.
(fixed this issue) still unable to remove the msi.
(fixed this issue) still unable to remove the msi.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)