Adding program to Local Machine Registry
Hey there! I've been trying to add a program to the local machine registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
so that it runs on boot, but this seemingly isn't working. I have administrator privileges.
That's the code I'm using; There's more that checks if it is in and stuff, and whilst key.GetValue()
returns an actual value and not null, the entry isn't added to regedit, and my program doesn't actually start on boot. Help?1 Reply
Nevermind, moved on to using the TaskSchedulerLibrary