Microsoft Windows Updates ?

Discussion in 'Windows 7' started by 905dude, Jul 6, 2013.

  1. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #21 s1ave77, Jul 7, 2013
    Last edited by a moderator: Apr 20, 2017
    Easy way to install them is via batch script, started with admin privileges from within the update folder:
    Code:
    @echo off
    TITLE WUSA: Windows Update Installer
    ::Code by NICK@NUMBER11 and s1ave77
    CLS
    setlocal ENABLEDELAYEDEXPANSION
    pushd "%~dp0"
    echo:
    echo Getting Ready Windows Update
    echo:
    for /F %%a in ('dir *.msu ^| find /i "file(s)"') do set z=%%a
    if "%z%"=="" goto :Failure
    echo Updates found: %z%
    echo:
    echo Installing Windows Updates...please wait. This may take a while.
    echo:
    FOR /R "%~dp0" %%A IN (*.MSU) DO (
            SET /A COUNT+=1
            ECHO= Installing !COUNT! of %z% = %%~nA
            >NUL TIMEOUT /t 3
            WUSA "%%A" /quiet /norestart
    )
    echo Done installing %z% updates on %date% at %time%.
    echo:
    echo You should reboot now!
    CHOICE /C YN /N /M "Reboot now? [Y]es [N]o :"
    if %errorlevel%==1 goto :Reboot
    if %errorlevel%==2 goto :Exit
    :Failure
    CLS
    echo ==========================================================
    echo:
    echo    NO UPDATES FOUND
    echo:
    echo    NOTE: Updates must be in same directory as this script.
    echo:
    echo ==========================================================
    echo:
    pause
    goto :Exit
    :Reboot
    ENDLOCAL
    start shutdown.exe /r /t 0    
    :Exit
    ENDLOCAL
    exit

    Save as CMD or BAT :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    965
    10
    #22 gamazet, Jul 8, 2013
    Last edited by a moderator: Jul 8, 2013
  3. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    @ gamazet, I have added Simplix Pack to sticky section.
     
  4. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    965
    10
    Thank you!