DavidXanatos wrote:What about this:
- Code: Select all
if "%SELECT_OPTIONS%" NEQ "1" set INSTALL_SWITCHES=%2 %3 %4 %5 %6 %7 %8 %9
it seams InstallOSUpdate.cmd can get additional switches from the script that calls it [...]
This section only applies to EXE files. It's there because EXE updates might need different switches, and they certainly did back in the Win2k and XP days.
how to know which switches to give?
Do you have any EXE update files you intend to install manually? They're rare these days, except the .NET updates. If you have any, you can see what's done in InstallOSUpdate.cmd: check OptionList-Q.txt and OptionList-qn.txt to see if the update (KB number) is in there, and if it's in neither of them, use the common /q /z.
and how do i know if i need to reboot after an update?
Check the %errorlevel% environment variable, just like InstallOSUpdate.cmd does.
Regards
Dalai