工作在C#窗口application.I想写在registry.i知道如何写在registry.I使用bellow语法写在注册表上。写在注册表位置的方式
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.cre.CreateSubKey("asb");
key.SetValue("asb", "Isabella");
key.Close();
但问题是我无法写在指定的位置。 我想在波纹管的位置
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
写在这个位置要添加字符串值=“ABC”和ValueData =“EFD” 如果有任何疑问PLZ ask.thanks提前。
哪个Windows版本在做这个失败?猜测它是失败的并且在Vista和Win7上给你一个ACCESS_DENIED? – slugster 2011-05-08 11:39:25
通常安装程序写入'HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Run' – 2011-05-08 13:03:23