Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", string.Empty, "C:\\Users\\Public\\hist.exe", RegistryValueKind.String);
The code above I would think should work. What am I missing? string.Empty, using the default value etc. Also I run this program with root/administrator privileges since you need to be admin to set value to this section of the registry, but the program still won't work. All Help Appreciated. You guys are the best .