Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Microsoft.Win32.RegistryKey myKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run\",true);
- myKey.SetValue("MyAppName",Application.ExecutablePath);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement