|
- @echo off&cd /d "%~dp0"&color 2e&Title 自动安装Win7补丁
- setlocal enabledelayedexpansion
- if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="X86" (goto X86) else (goto X64)
- :X86
- cls
- echo.
- echo 0安装 Win7服务堆栈更新
- set "subpath=0\x86"
- pause
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%
- echo.
- echo 1安装 IE11前置补丁
- set "subpath=1\x86"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%
- echo.
- echo 2安装 IE11
- set "subpath=2\x86"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%\1
- dism /online /add-package /packagepath:%subpath%\2
- echo.
- echo 3安装 截止2019年12月Win7累积更新
- set "subpath=3\win7_x86_补丁"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%
- goto End
- :X64
- cls
- echo.
- echo 0安装 Win7服务堆栈更新
- set "subpath=0\x64"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%
- echo.
- echo 1安装 IE11前置补丁
- set "subpath=1\x64"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%
- echo.
- echo 2安装 IE11
- set "subpath=2\x64"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%\1
- dism /online /add-package /packagepath:%subpath%\2
- echo.
- echo 3安装 截止2019年12月Win7累积更新
- set "subpath=3\win7_x64_补丁"
- echo 请稍等...
- dism /online /add-package /packagepath:%subpath%
- goto End
- :End
- cls
- echo.
- echo 补丁安装成功!
- echo.
- echo 按任意键将退出!
- Pause>nul
复制代码 问题多多,仅供参考!
|
|