Uninstall won't delete Program Files

  • Thread starter Thread starter Keith Smith
  • Start date Start date
K

Keith Smith

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?
 
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.
 
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
 
Back
Top