REM @echo off REM extrac32 /y /e /l .\ ROOTS.CAB > nul cd %~dp0\update MsgBox2K /r "Software\Microsoft\Active Setup\Installed Components\{EF289A85-8E57-408d-BE47-73B55609861A}" Version 58,0,2195,0 echo %ERRORLEVEL% IF %ERRORLEVEL% EQU 0 ( MsgBox2K /m "Already Installed." GOTO :END ) else ( start /wait rundll32.exe advpack.dll,LaunchINFSection rootsupd.inf,DefaultInstall ) REM 128 Set the default path of the installation to the location of the INF. This is the typical setting. REM +0 Never reboot the computer. REM +1 Reboot the computer in all cases. REM +2 Always ask the users if they want to reboot. REM +3 Reboot the computer if necessary without asking user for permission. REM +4 If a reboot of the computer is necessary, ask the user for permission before rebooting. :eof MsgBox2K /r "Software\Microsoft\Active Setup\Installed Components\{EF289A85-8E57-408d-BE47-73B55609861A}" Version 58,0,2195,0 IF %ERRORLEVEL% LEQ -1 ( MsgBox2K /m "fail to Install." ) else if %ERRORLEVEL% EQU 0 ( MsgBox2K /m "complete to Install." ) else ( MsgBox2K /m "fail to Install." ) :END