eGorZ Вот в том то и дело... Думаю пока оставить как есть, а там видно будет...
Дожились, на
torrents.ru правообладатели закрывают сборники обновлений...
Обновленный скрипт для сборника обновлений [more=тут...]
Код: @echo off
SetLocal EnableExtensions
SetLocal EnableDelayedExpansion
rem Links to official release:
rem
http://torrents.ru/forum/viewtopic.php?t=1504109 rem
http://nnm-club.ru/forum/viewtopic.php?t=111624 Title=PreSp4 Technics Pack
rem start /WAIT /MIN .\Tools\nircmd.exe win hide title "PreSp4 Technics Pack"
start .\Tools\nircmd.exe infobox "Установка запущена в фоновом режиме..." " PreSP4 (Technics Pack) (Ru) "
start /WAIT /MIN .\Tools\nircmd.exe beep 1500 3000
start /WAIT /MIN .\Tools\nircmd.exe win settopmost title " PreSP4 (Technics Pack) (Ru) " 1
set delay_3_sec=start /wait /min .\Tools\nircmd.exe wait 3000
set MainSwitches=/quiet /norestart
set OldSwitches=/Q
set NetStop=start /high /wait /min sc stop clr_optimization_v2.0.50727_32 >nul
echo Date of installation: %time:~,-6% %date%>>%SystemDrive%\Installed_Updates.log
echo.>>%SystemDrive%\Installed_Updates.log
start /high /wait regedit /s .\Tools\HideFileExt.reg
start /high /wait regedit /s .\Tools\DisableSR.reg
start /high /wait sc stop srservice >nul
reg query "HKLM\SOFTWARE\Microsoft\Updates\Microsoft .NET Framework 3.5 SP1" 1>nul 2>&1
IF %ERRORLEVEL%==1 (
%delay_3_sec%
start /wait .\dotnetfx35\dotnetfx35langpack_x86ru.exe
echo dotnetfx35langpack_x86ru>>%SystemDrive%\Installed_Updates.log
start /wait .\dotnetfx35\dotnetfx35.exe %MainSwitches% /nopatch /lang:RUS
echo dotnetfx35 %MainSwitches% /nopatch /lang:RUS>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%&%NetStop%
start /wait .\dotnetfx35\ndp20sp2-kb958481-x86.exe %MainSwitches%
echo ndp20sp2 %MainSwitches%>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%&%NetStop%
start /wait .\dotnetfx35\ndp30sp2-kb958483-x86.exe %MainSwitches%
echo ndp30sp2 %MainSwitches%>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%&%NetStop%
start /wait .\dotnetfx35\ndp35sp1-kb958484-x86.exe %MainSwitches%
echo ndp35sp1 %MainSwitches%>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%&%NetStop%
rem Скрываем (удаляем) папку которую оставляет инсталлятор .NET Framework 3.5
for /f "tokens=3" %%k in ('reg query "HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP4\KB954550-v5\Filelist\0" /v Location') do set NetPath=%%~dk%%~pk
rem rd /S /Q "!NetPath:~,-1!"
attrib +h !NetPath:~,-1!
%delay_3_sec%
)
for /F "tokens=1,* delims= " %%k in (.\Config\KB.txt) do call :KBInst "%%k" "%%l"
reg query "HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP0\ie7" 1>nul 2>&1
IF %ERRORLEVEL%==0 (
start /wait regedit /s .\IE7\DDL_IE7.reg
start /wait /min .\Tools\nircmd.exe shellrefresh
start /wait .\IE7\IElnk.exe
)
IF NOT EXIST %WINDIR%\system32\SoftwareDistribution\Setup\ServiceStartup\wups.dll\7.2.6001.788 (
start /wait .\WU\windowsupdateagent30-x86.exe /wuforce %MainSwitches%
echo Windows Update Agent 3.0 /wuforce %MainSwitches%>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%
)
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WgaNotify" 1>nul 2>&1
IF %ERRORLEVEL%==1 (
IF EXIST .\KBxxxxxx\KB905474.exe start /wait .\KBxxxxxx\KB905474.exe %MainSwitches% & echo KB905474 %MainSwitches% - WGA Notify>>%SystemDrive%\Installed_Updates.log
IF EXIST .\WGA\WGAUpdate.exe start /wait .\WGA\WGAUpdate.exe
%delay_3_sec%
)
reg query "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{EF289A85-8E57-408d-BE47-73B55609861A}" 1>nul 2>&1
IF %ERRORLEVEL%==1 (
start /wait .\Other\rootsupd.exe %OldSwitches%
echo Windows Roots Update %OldSwitches%>>%SystemDrive%\Installed_Updates.log
)
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7299052b-02a4-4627-81f2-1818da5d550d}" 1>nul 2>&1
IF %ERRORLEVEL%==1 (
start /wait .\VC++\vcredist_x86_2005.exe %OldSwitches%
echo VC++ 2005 %OldSwitches%>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%
)
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9A25302D-30C0-39D9-BD6F-21E6EC160475}" 1>nul 2>&1
IF %ERRORLEVEL%==1 (
start /wait .\VC++\vcredist_x86_2008.exe %OldSwitches%
echo VC++ 2008 %OldSwitches%>>%SystemDrive%\Installed_Updates.log
%delay_3_sec%
)
echo.>>%SystemDrive%\Installed_Updates.log
echo.>>%SystemDrive%\Installed_Updates.log
start /WAIT /MIN .\Tools\nircmd.exe win close title " PreSP4 (Technics Pack) (Ru) "
start .\Tools\nircmd.exe infobox "Выполняется подготовка к перезагрузке (~10 сек)..." " PreSP4 (Technics Pack) (Ru) "
start /WAIT /MIN .\Tools\nircmd.exe beep 200 800
start /WAIT /MIN .\Tools\NirCmdInst.exe
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v ReadyPreSP4 /t REG_SZ /d "%SystemRoot%\TEMP\nircmd.exe infobox \"Установка завершена...\" \" PreSP4 (Technics Pack) (Ru) \"" /f >nul
start /B %SystemRoot%\TEMP\nircmd.exe cmdwait 10000 exitwin reboot forceifhung
exit
:KBInst
set number=%~1
set UserSwitches=No
if NOT %2=="" set UserSwitches=%~2
set detect_key=0
for /F "tokens=*" %%l in (.\Config\RegKeys.txt) do (
reg query "%%l" 1>nul 2>&1
IF !ERRORLEVEL!==0 set detect_key=1
)
IF !detect_key!==0 (
%delay_3_sec%
IF %number%==KB923789 (
IF NOT EXIST "%WINDIR%\system32\Macromed\Flash\KB923789.inf" (
start /wait .\KBxxxxxx\%number%.exe !UserSwitches!
echo %number% !UserSwitches!>>%SystemDrive%\Installed_Updates.log
) ELSE (
echo %number% !UserSwitches! - New version of Macromedia Flash already exist>>%SystemDrive%\Installed_Updates.log
)
goto :EOF
)
IF !UserSwitches!==No (
start /wait .\KBxxxxxx\%number%.exe %MainSwitches%
echo %number% %MainSwitches%>>%SystemDrive%\Installed_Updates.log
goto :EOF
) ELSE (
start /wait .\KBxxxxxx\%number%.exe !UserSwitches!
echo %number% !UserSwitches!>>%SystemDrive%\Installed_Updates.log
goto :EOF
)
)
goto :EOF