I have a simple C # application that allows users to specify that it should (or should not) run on Windows; he does this by installing (or removing) the registry key (namely ... \ Software \ Microsoft \ CurrentVersion \ Run \ MyApplicationHere).
I am using the VS installation project to create an installer for this program. I do not want the installer to create this key; it should be created only when the user selects a parameter from the program.
Here is the problem: I want the uninstaller to delete this key if it exists, preferably without resorting to any hacking; if there is a simple "built-in" solution, I would like to hear it. Thanks!
source
share