No value exists with that name

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.

Platform Target

Change the “Platform target” to “Any CPU” and the key then deleted fine.

2 thoughts on “No value exists with that name”

Leave a Reply

Your email address will not be published. Required fields are marked *

+ five = 10

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>