修改注册表,提前更新到Windows Vista SP2 过过瘾
2008-10-25 17:35:13 来源:WEB开发网如何修改注册表实现Vista SP2的在线更新?
不仅仅是测试者,其实您也可以提前更新到Vista SP2的Pre-Beta版本,方法和之前Vista SP1的提前更新一模一样:修改注册表。
只要把以下代码写成任意名字的.bat批处理文件,就可以在自动更新里面就可以看到Vista SP2。
////// 下面的文字保存成一个扩展名为 .bat 或者 .cmd 的文件 /////////////
@echo off
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateVistaSp2 /f > NUL 2>&1
reg delete HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft WindowsCurrentVersionWindowsUpdateVistaSP2 /f > NUL 2>&1
reg add HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateVistaSp2 /v Beta1 /t REG_SZ /d C21A5C64-2530-CC19-042F-9ABDB4ED27F9 /f
IF NOT %errorlevel% == 0 ( goto ERROR)
:SUCCESS
@echo.
echo ================================================== =========
echo Windows Vista SP2 registry key has been set successfully.
echo Please check for updates in Windows Update.
echo ================================================== =========
@echo.
goto END
:ERROR
@echo.
echo ================================================== =========
echo FAILED to set Windows Vista SP2 registry keys.
echo Please run this script by right clicking and selecting
echo "Run as Administrator".
echo ================================================== =========
@echo.
goto END
:END
pause
////// 上面的文字保存成一个扩展名为 .bat 或者 .cmd 的文件 /////////////
更多精彩
赞助商链接