Board logo

標題: 〔技巧〕修改注冊表 提前更新到Vista SP2 [打印本頁]

作者: top123763     時間: 2008-10-25 11:28 AM    標題: 〔技巧〕修改注冊表 提前更新到Vista SP2

修改注冊表 提前更新到Vista SP2
不僅僅是測試者,其實您也可以提前更新到SP2的Pre-Beta版本,方法和之前SP1的提前更新一模一樣:修改注冊表.
只要把以下代碼寫成任意名字的.bat批處理文件,就可以在自動更新里面就可以看到SP2.
@echo off

reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\VistaSp2 /f > NUL 2>&1
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ Windows\CurrentVersion\WindowsUpdate\VistaSP2 /f > NUL 2>&1

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\VistaSp2 /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





作者: daniel095814     時間: 2009-5-8 02:04 AM
不錯,介紹的很詳細...........




歡迎光臨 網際論壇 (http://centurys.net/) Powered by Discuz! 2.5