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 folders
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 19, 2007
04:53 AM
Delete folders
Can anyone advise a simple way of ensuring folders are deleted in the event of an uninstall? I may need to delete sub folders of the install dir and the installdir itself
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 19, 2007
07:07 AM
Hi,
A fairly simple way to do that is to go in the Direct Editor view, display the RemoveFile table and make additional entries.
To delete the main folder and all subfolders, enter in the following columns:
- FileKey: REMOVE_"main directory name" (same as the one in Directory column in Directory table)
- Component_: select the main component from the listbox
- FileName: leave blank
- DirProperty: "main directory name" (same as the one in Directory column in Directory table)
- InstallMode: 2
This worked for me, but, if your product creates files in any of its folders when it runs, you should also add one row per type of file extension:
- FileKey: FileKey n (created by installshield when you add a row)
- Component_: select the main component from the listbox
- FileName: *.abc
- DirProperty: INSTALLDIR
- InstallMode: 2
I hope this helps.
A fairly simple way to do that is to go in the Direct Editor view, display the RemoveFile table and make additional entries.
To delete the main folder and all subfolders, enter in the following columns:
- FileKey: REMOVE_"main directory name" (same as the one in Directory column in Directory table)
- Component_: select the main component from the listbox
- FileName: leave blank
- DirProperty: "main directory name" (same as the one in Directory column in Directory table)
- InstallMode: 2
This worked for me, but, if your product creates files in any of its folders when it runs, you should also add one row per type of file extension:
- FileKey: FileKey n (created by installshield when you add a row)
- Component_: select the main component from the listbox
- FileName: *.abc
- DirProperty: INSTALLDIR
- InstallMode: 2
I hope this helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 20, 2007
03:06 AM
Cheers - that helps