Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Settings when uninstalling

My program is installed with a Visual Studio Setup project. The program, when run, creates a user.config file in its default location since I'm using Settings. When uninsalling, how do I get the uninstaller to remove that user.config file? Also, how do I cause the uninstaller to remove a folder in %AppData%?

like image 713
configurator Avatar asked Apr 23 '10 13:04

configurator


1 Answers

You will need to write a custom task for that - by default (and design) the installer will only remove what it installed, anything that added afterwards is not part of the install transaction. You could maybe try installing a dummy file for the user.config, and you should be able to add the AppData folder in to the install (although it won't be removed if you have added files sitting in it at uninstall time).

like image 97
slugster Avatar answered Oct 08 '22 19:10

slugster