if (Convert.ToInt32(_param.AUTOMATIC_LAUNCH) == 1) { registryKey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run", true); registryKey.SetValue("Quick",Process.GetCurrentProcess().MainModule.FileName.ToString()); } if (Convert.ToInt32(_param.AUTOMATIC_LAUNCH) == 0 && registryKey != null) { registryKey.DeleteValue("Quick", true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)