cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
NLough
Level 3

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
Labels (1)
0 Kudos
(2) Replies
bplivard
Level 4

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.
0 Kudos
NLough
Level 3

Cheers - that helps
0 Kudos