As we roll out Windows 7 at work we have an application that initializes new computers. It is installed and runs every time at startup until it runs successfully. Then it deletes itself from the registry at (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run).
It worked fine on our old Windows XP machines but failed but would never delete the key on our Windows 7 installs. Every time I ran I would get an error stating “No value exists with that name”. Searching the internet for that term came back with next to nothing.
I was racking my brain just assuming that it must be User Access Control (UAC) interfering with me. While that might be the case for many programs, the real issue was that the program was running in x86 mode.
Change the “Platform target” to “Any CPU” and the key then deleted fine.