Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > MSI on Uninstall Doesn't Remove All Files Installed
 

MSI on Uninstall Doesn't Remove All Files Installed

When uninstalling the program it leaves behind the folders for it. All the content in the folders are gone but they stay. Is there a setting to remove them or is that a built in feature? I don't like leaving folders behind. I want it to be a clean uninstall.

If I need a custom action can you point me to a good tutorial for it?

Any help is appreciated.
forsberg  Friday, August 07, 2009 3:48 PM

You can use the RemoveFile table or custom action.

RemoveFile:

http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx

Custom Actions

http://msdn.microsoft.com/en-us/library/aa368066(VS.85).aspx

Remove all files/folder during uninstall

http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg09337.html

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Thursday, August 13, 2009 9:21 PM

You can use the RemoveFile table or custom action.

RemoveFile:

http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx

Custom Actions

http://msdn.microsoft.com/en-us/library/aa368066(VS.85).aspx

Remove all files/folder during uninstall

http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg09337.html

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Thursday, August 13, 2009 9:21 PM

You can use google to search for other answers

Custom Search

More Threads

• Merge Modules For Different versions
• Setup with environment variable
• HOWTO : Partial Click Once Deployment
• Devenv.com error with command line build for a VS setup project
• "Different from computed hash" problem occurs when using another machine
• Canceling Installation from a custom action
• Can only Publish to web site root?
• loose focus on vista
• Can Two UserControls Talk To Each Other?
• ClickOnce deployment as a local administrator