Results 1 to 8 of 8

Thread: [RESOLVED] My program creates invisible registry keys...

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Resolved [RESOLVED] My program creates invisible registry keys...

    My program runs this code to add an autostart key to the registry:

    Code:
    Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "MyAppName", "" + Application.ExecutablePath + "");
    The problem here is that I can't see the key it has created in regedit.
    If I run some code to get the value of the key in my program, it returns a correct value. Meaning that the program can read the key but I can't.

    Wt*?

    I am admin btw and have UAC off.

    EDIT: Another question too: Why can I set a value with the above code but I receive an unauthorizedexception when doing it with the OpenSubKey thingy?
    Last edited by Cyb3rH4Xter; Apr 24th, 2011 at 12:58 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width