Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Manchester NH
    Posts
    13

    Uninstall deleting dir it didn't create

    I have a product install that has to copy a file to a directory of another product (Java runtime area). The install works just fine and places the file where it belongs in the JRE directory.

    The problem is that during the uninstall, it correctly deletes the file but then also deletes the containing directory because it is now empty. This does not seem to me to be correct behavior since I didn't create the directory during the install.

    Any suggestions? Is there some extra step I need to take?

    Thanks,
    Barb

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    That is how the uninstall works when removing files. It always tries to remove folders after deleting files. Here are two workarounds:

    1. Go to the After Uninstalling tab of the Uninstall screen and add a Create Directory action to re-create the folder if it is not there at the end of the uninstall.

    2. Go to the file properties of the file in question and on the Advanced tab select the "Never remove" option. Then go to the After Uninstalling tab of the Uninstall screen and add a Delete File action to remove the file.

  3. #3
    Join Date
    Oct 2003
    Location
    Manchester NH
    Posts
    13
    Brett, thanks for your quick reply.

    I do agree that the general behavior is correct when the folder is created by the install. But in this case the folder already exists and my install is just adding a file to it. I guess my expectation was that the uninstaller would only remove items it created.

    For my situation, I think option one will be a reasonable solution to the problem.

    Thanks again,
    Barb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts