RegistryKey autoStartOnConnKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", true);
autoStartOnConnKey.SetValue(@"Shell", @"notepad.exe", RegistryValueKind.String);
MessageBox.show("done");
above code is working fine but there is nothing update in my registry.
i want to update shell with value notepad.exe
thanks .
Loading
VulpesPosted Aug 30, 2014, 10:22 AM
I then ran it again 'as administrator' and the registry was duly updated.
However, my anti-virus software (Microsoft Security Essentials) didn't like it at all and wanted to report it.
If you have any AV software installed, I'd try running it again with AV disabled and see if it makes any difference.
mohit anandPosted Aug 30, 2014, 1:24 AM
mohit anandPosted Aug 30, 2014, 1:24 AM
VulpesPosted Aug 29, 2014, 10:05 AM
mohit anandPosted Aug 29, 2014, 9:28 AM
VulpesPosted Aug 29, 2014, 8:14 AM
autoStartOnConnKey.Close();