Utility to Install Multiple Updates On Windows 7 Ultimate SP1 X64

Discussion in 'Windows 7' started by c0ldhart, Oct 7, 2013.

  1. c0ldhart

    c0ldhart MDL Junior Member

    Dec 16, 2012
    63
    2
    0
    I have downloaded all the updates but how can install all of them at once without clicking "Next" for Every Update.Is there any tool for that.PC is not Connected to internet Windows Updater not works(Updating from Internet).
     
  2. oldsh_t

    oldsh_t MDL Expert

    Dec 23, 2009
    1,082
    532
    60
    #2 oldsh_t, Oct 7, 2013
    Last edited: Apr 13, 2014
    Use this batch file to do the installing for you. Just put this file in the folder with all your updates and run it. It will install them all one by one.

    This is not my tool. I found it here at MDL and can't remember where or who made it up???

    JUST an update here. I know who made up this batch file now.
    NICK@NUMBER11 and s1ave77 Made it up and is written right in it,,,, LOL How did I miss that??
     

    Attached Files:

  3. dareckibmw

    dareckibmw MDL Expert

    Jun 16, 2009
    1,200
    1,360
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Tito

    Tito Admin / Adviser
    Staff Member

    Nov 30, 2009
    18,957
    19,487
    340
  5. Dos_Probie

    Dos_Probie MDL Member

    Jul 18, 2012
    249
    86
    10
    #5 Dos_Probie, Oct 7, 2013
    Last edited by a moderator: Apr 20, 2017
    Auto Update Installer - AIO_Win_Update_Installer.cmd

    Here is a update installer I wrote back in July, just put all your updates in MSU folder and run the batch..
    DP:biggrin:
    Code:
    :: Title            : AIO_Win_Update_Installer.cmd
    :: Version        : v03
    :: Install Type  : Batch Script
    :: Misc            : Auto deployment of Windows Updates
    :: Creator        : Dos_Probie.2013
    :: Oses           : Tested and working on Windows 7-8 x64
    :: Languages    : English
    :: Created       : Thrus. July 25 9:25am CDT 2013
    ::###################################################################
    @echo off&@cd /d "%~dp0"&color e && cls && Mode 68,14&title, [ WINDOWS 8 UPDATES ~DosProbie ]
    cls
    :: ### RUN AS ADMININSTRATOR CHECK..
     reg query "hku\S-1-5-19" >nul 2>&1 && (
     goto admin
    ) || (
    ::nonadmin
     cls
     @color e5
     mode con: cols=80 lines=5
     echo Running as Non-Administrator!..Right-click this file and "Run as Administrator".
     echo.
     echo == Press any [KEY] and Start Over! ==&pause>nul
     GOTO eof
    )
    :admin
     cls
    :: ### SET STARTUP TYPE..
     for /f "usebackq tokens=3" %%a in (`reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v "Start"`) do set _wuauserv-type=%%a
    if "%_wuauserv-type%"=="0x3" echo Wuauserv startup type is "Manual", Resetting back to Disabled..
    echo.
    if not "%_wuauserv-type%"=="0x4" (
     echo Modifying startup type of Wuauserv back to "Disabled"..
     echo Update service is now "Disabled"..
     sc config wuauserv start= Disabled>nul 2>&1
     net stop wuauserv>nul 2>&1
     echo.
    )
     if "%_wuauserv-type%"=="0x3" echo Wuauserv startup type is "Manual", no changes will be made, startup type is Already "Manual"
     if "%_wuauserv-type%"=="0x2" echo Wuauserv startup type is "Automatic", it will temporarily be set to Manual..
     if "%_wuauserv-type%"=="0x4" echo Wuauserv startup type is "Disabled", it will temporarily be set to Manual.. 
     if "%_wuauserv-type%"==""    echo Wuauserv startup type is Undeterminable, Something is terribly wrong!
     echo.
    :: ### IF NOT MANUAL THEN SET TO "MANUAL" AND STATUS TO "RUNNING"..
     if not "%_wuauserv-type%"=="0x3" (
     echo Modifying startup type of Wuauserv to "Manual"..
     echo Update service is now "Started"..
     sc config wuauserv start= Demand>nul 2>&1
     net start wuauserv>nul 2>&1
     echo.
    :: ### DISABLE SCREENSAVER..
    Reg Delete "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /f>nul
    )
     cls
     echo Please leave this screen open while installing all Windows Updates..
    :: ### NOTIFICATION..
     set vbs=%tmp%\vox.vbs
     call :speak "Preparing to install Windows Updates and Hot fixes!"
    :speak
     echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%tmp%\vox.vbs"
     "%vbs%" & del "%tmp%\vox.vbs">nul 2>&1
    
    :: ### DOWNLOAD UPDATES BUT LET USER CHOOSE WHETHER TO INSTALL THEM..
     reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 3 /f>nul 2>&1
    
    :: ### AUTO-INSTALL UPDATES NUMERICALLY..
    :: Path to Updates..(Install from "updates\msu" directory with batch outside)
     for /f "delims=" %%a in ('dir/b "msu\*.msu"') do (
     echo == Installing Update == "%%a" 
     echo.
     ping -n 4 localhost 1>nul  
     start /wait wusa "msu\%%a" /quiet /norestart
    )
     cls
    :: ### PRINT UPDATES TO DATED LOG FILE..
     for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%date:~10,4%-%date:~4,2%-%date:~7,2%-%date:~0,3%)
     set wusa_Dt=%mydate%
     systeminfo | find ": KB">nul>> %systemdrive%\UPDATE.LOG.%wusa_Dt%.log
    
    :: ### NOTIFICATION..
     set vbs=%tmp%\vox.vbs
     call :speak "All windows updates are now complete, restarting windows eight to finalize update settings!"
    :speak
     echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%tmp%\vox.vbs"
     "%vbs%" & del "%tmp%\vox.vbs">nul 2>&1
    
    :: ### RESTART TO FINALIZE ALL UPDATES..
     shutdown.exe -r -t 00 -f&exit
    
    :eof
    exit
     
  6. c0ldhart

    c0ldhart MDL Junior Member

    Dec 16, 2012
    63
    2
    0
    #7 c0ldhart, Oct 8, 2013
    Last edited: Oct 9, 2013
    (OP)
    Thanks everyone for such valuable Reply.
    @oldsh_t & Dos_Probie
    Thanks for script. but is this script work with windows 8.1 X64
    @Alphawaves
    WHD need Internet Can it install Update Offline(From MSU Files)
     
  7. humsearshad

    humsearshad MDL Junior Member

    May 8, 2014
    90
    12
    0
    #8 humsearshad, May 14, 2014
    Last edited: May 14, 2014
    Utility To Install Multiple Programs On Windows 7,8

    @oldsh_t & Dos_Probie

    Is there a batch file to install Multiple softwares Offline like CCleaner,firefox,Chrome,Adobe Reader,Flash Player,PowerISO,Nero,WinRAR,Imgburn
     
  8. Tito

    Tito Admin / Adviser
    Staff Member

    Nov 30, 2009
    18,957
    19,487
    340