The script is as follows:
@Echo OFF
Title Install Windows Update Pack
Echo is installing, please wait a moment ...
:: Loop all exe files in the current directory and perform the installation
For%%i in (*.exe) do%%i/passive/norestart/nobackup
:: Loop through all the MSU in the current directory and jump to the label below
For%%f in (*.MSU) do call:update%%f
Exit
: Update
Echo Installation Complete
:: Perform the installation
Start/wait%1/quiet/norestart
Goto:eof
Exit
Understand:
Mainly for loop current directory return parameters and then execute, here/quiet is not asked mode,/norestart is not restarted, for the patch file, the script was originally used to silently install patches,/passive in order to execute. ,/nobackup is not backed up.
This article is from the "Rickyhul" blog, make sure to keep this source http://rickyh.blog.51cto.com/10934856/1937278
Quiet installation patches in Windows systems