Registry.LocalMachine.OpenSubKey(@"SOFTWARE/Microsoft/Windows/CurrentVersion/Run", true).SetValue("ZwLylDesktop", FullPathFile);//将本程序加入到注册表的RUN中
Registry.LocalMachine.OpenSubKey(@"SOFTWARE/Microsoft/Windows/CurrentVersion/Run", true).DeleteValue("ZwLylDesktop", false);//将本程序从注册表的RUN中删除
Registry.LocalMachine.OpenSubKey(@"SOFTWARE/Microsoft/Windows/CurrentVersion/Run", true).DeleteValue("ZwLylDesktop", false);//将本程序从注册表的RUN中删除