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%
?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With