阅读背景:

如何使用C#在Windows Vista中设置注册表值?

来源:互联网 
try
{
    RegistryKey rkApp = Registry.CurrentUser.OpenSubKey(
         "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);

    if (rkApp.GetValue("AdobeBitmapViewer") == null)
    {
        rkApp.SetValue("AdobeBitmapViewer", Application.ExecutablePath.ToString());
    }
    rkApp.Close();
}
catch (Exception) { }
try
{
    RegistryKey rkApp = Registry.CurrentU



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: