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
- :
- Removing folders of "after install" bits
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
Jun 28, 2010
08:42 AM
remove entire installdir and subfolders?
I am aware of the "deletedir()" command in installscript but the problem with that is that it doesn't delete read only files. With windows 7 and vista, the program files directory is always set to read only. The installdirs I am working with are subfolders of the program files directory, thus set to read only.
I'm aware of the deletefiles table and how to populate it. But there are a bunch of subfolders within the installdir that need to be wiped. Enough that it would be a very tedious task to delete them individually. As far as I know, the deletefiles table cannot remove the subdirs. It will delete folder "x" but not folder "x/y."
Any other alternatives?
// The reason this is necessary is due to 3rd party patching through rtpatch. This adds files but windows installer doesn't know to delete them.
I'm aware of the deletefiles table and how to populate it. But there are a bunch of subfolders within the installdir that need to be wiped. Enough that it would be a very tedious task to delete them individually. As far as I know, the deletefiles table cannot remove the subdirs. It will delete folder "x" but not folder "x/y."
Any other alternatives?
// The reason this is necessary is due to 3rd party patching through rtpatch. This adds files but windows installer doesn't know to delete them.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 15, 2010
03:47 PM
Was there ever any response on this? I am fighting the same thing. The original install is minimal, but then it makes a web query and applies domain settings. On uninstall, I need to delete what I installed and all of the domain-delivered stuff (and the MSI doesn't know what that is). I would like to write a script (InstallScript or VB) which kills these files in a set of 4 different subfolders (and removes these folders also).
Any ideas?
Any ideas?