Remove registry key during uninstall
Posted
by zacharyrsnow
on Stack Overflow
See other posts from Stack Overflow
or by zacharyrsnow
Published on 2009-11-26T03:09:29Z
Indexed on
2010/03/23
0:31 UTC
Read the original article
Hit count: 381
Hello there. I have a simple C# application that allows users to specify that it should be (or should not be) started with Windows; it does so by setting (or deleting) a registry key (namely, ...\Software\Microsoft\CurrentVersion\Run\MyApplicationHere).
I am using a VS setup project to create the installer for this program. I don't want the installer to create this key; it should only be created when the user selects the option from within the program.
Here is the issue: I would like the uninstaller to delete this key if it exists, preferably without resorting to any sort of hackery; if there is a simple "built-in" solution I would love to hear it. Thanks!
© Stack Overflow or respective owner