Need a batch program to install all manually downloaded Windows Updates in one single click
From How to Install a .msu Update on Windows 7 from the Command Line:
To install an
.msu
update package, runWusa.exe
together with the full path of the file:
- If
Windows6.0-KB934307-x86.msu
is withinD:\934307\
, install the update package via:wusa d:\934307\Windows6.0-KB934307-x86.msu
- To run without user interaction, use the
/quiet
switch (auto-reboots if required).wusa d:\934307\Windows6.0-KB934307-x86.msu /quiet
- When using this switch, Microsoft's Software License Terms do not appear.
- To prevent an auto-reboot, use the
/norestart
switch, which is ignored if/quiet
is not present (if installation requires a reboot, Windows must be manually rebooted):wusa D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart
Using this format, run the following batch file contents from within the folder containing the updates:
Set Folder="C:\updates"
for %%f in (%Folder%\*.msu) do (
wusa.exe %%f /quiet /norestart
)
Notes:
- You can check whether the
.bat
file worked or not by trying to manually install the update; Windows Update should replyUpdate already installed on this computer
. - If you see nothing works after running the batch file, delete
/quiet
to see the error report.