I did not find any of the above code. Maybe because .NET 3.5 works in my application. I dont know. The following code worked fine for me. I got this from a senior level .NET developer on my team.
Write (Microsoft.Win32.Registry.LocalMachine, @ "SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run \", "WordWatcher", "\" "+ Application.ExecutablePath.ToString () +" \ "");
public bool Write(RegistryKey baseKey, string keyPath, string KeyName, object Value) { try {
user1000008 Apr 16 '13 at 19:28 2013-04-16 19:28
source share