Uninstall won't delete Program Files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keith Smith

    Uninstall won't delete Program Files

    I have noticed that when I uninstall my app it doesn't delete the Program
    Files / MyApp folder if there are "new" files in it that weren't there
    before. It deletes all files except the "new" ones. Is there a way to make
    an uninstall so that it just completely wipes out my Program Files / MyApp
    folder no matter what?


  • Ivan Yeh

    #2
    RE: Uninstall won't delete Program Files

    Hi Smith...

    I got the same problem, too.
    My application creates some new files, but these files can't be delete after
    uninstall the app.
    The error message is like this...
    "These files are read-only or use by another program......"
    But they just some txtfiles and sure no other program lock them.

    thanks for any help.

    "Keith Smith" wrote:
    [color=blue]
    > I have noticed that when I uninstall my app it doesn't delete the Program
    > Files / MyApp folder if there are "new" files in it that weren't there
    > before. It deletes all files except the "new" ones. Is there a way to make
    > an uninstall so that it just completely wipes out my Program Files / MyApp
    > folder no matter what?
    >
    >
    >[/color]

    Comment

    • Todd Derksen [MSFT]

      #3
      RE: Uninstall won't delete Program Files

      The behavior you are seeing is by design the setup Project remembers what
      files it lays down and will not delete other ones incase some other app
      placed and needs the files located there. You can however work around this
      by adding a custom action to the uninstall portion of the setup project,
      the custom action could delete any other files in that folder as well as
      the folder if required.

      I hope that helps.

      Todd Derksen
      --------------------
      Visual Basic Deployment Test Team
      This posting is provided "AS IS" with no warranties, and confers no rights.
      --------------------[color=blue]
      >Thread-Topic: Uninstall won't delete Program Files
      >
      >Hi Smith...
      >
      >I got the same problem, too.
      >My application creates some new files, but these files can't be delete[/color]
      after[color=blue]
      >uninstall the app.
      >The error message is like this...
      >"These files are read-only or use by another program......"
      >But they just some txtfiles and sure no other program lock them.
      >
      >thanks for any help.
      >
      >"Keith Smith" wrote:
      >[color=green]
      >> I have noticed that when I uninstall my app it doesn't delete the[/color][/color]
      Program[color=blue][color=green]
      >> Files / MyApp folder if there are "new" files in it that weren't there
      >> before. It deletes all files except the "new" ones. Is there a way to[/color][/color]
      make[color=blue][color=green]
      >> an uninstall so that it just completely wipes out my Program Files /[/color][/color]
      MyApp[color=blue][color=green]
      >> folder no matter what?
      >>
      >>
      >>[/color]
      >[/color]

      Comment

      Working...