By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,892 Members | 1,156 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,892 IT Pros & Developers. It's quick & easy.

Uninstall won't delete Program Files

P: n/a
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?
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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:
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?

Nov 17 '05 #2

P: n/a
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.
--------------------
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 afteruninstall 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:
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?


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.