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