Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

On uninstalling...


2 replies to this topic

Steven Mueller

Steven Mueller
  • Members
  • 7 posts

Posted 07 March 2002 - 19:10

I have a number of install projects which have a common directory of shared files. On installing/uninstalling individual projects, the files & directory are deleted as expected. When a group of them are installed/uninstalled, the common directory is left behind empty. Has anyone run across this ?

wyrdfish

wyrdfish
  • Members
  • 8 posts

Posted 02 April 2002 - 12:33

Installshield handles directory removal in two ways.
1. if the directory was installed it is marked for removal on uninstall.
2. If a directory is marked for removal and it still contains files then the folder is not removed.

If you run two installers that install into a common folder and don't remove them in reverse order then the common folder will be left behind.

E.g.
Installer 1 -  creates folder /dave
then installs file /dave/dave.exe

Installer 2 - Doesnt create folder dave
then installs file /dave/wibble.exe

Uninstaller 1 - Removes /dave/dave.exe
Leaves folder /dave as it contains a file

uninstaller 2 removes /dave/wibble.exe
Uninstaller 2 Does not Remove folder /dave as it did not create it.

Dave W.

Cookie Crumb

Cookie Crumb
  • Members
  • 6 posts

Posted 25 November 2002 - 19:08

you can use installscript to clean up directories that may have been left behind.

you can create a list of the directories using the various List* functions then go through the list using the DeleteDir function with the ONLYDIR option so it won't delete the directory if there's still something in it. both the List* functions and DeleteDir function are pretty well documented in the help library. you can use the index tab to find them directly.