Install updates silently

Discussion in 'Windows XP / Older OS' started by markokk888, Mar 25, 2018.

  1. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
  2. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    try this :

    create a txt file and put these lines into the file :

    Code:
    @Echo off
    For %%# in (*.exe) Do (
        Echo: Installing update: %%#
        wupdmgr "%%#" /quiet /norestart
    )
    Echo Windows Update finished.
    Pause&Exit
    Save the file into .bat extension.

    Then create a folder, put all the exe updates into the folder as well as the batch file then run the batch file and see the result.
     
  3. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    The Windows Update MiniTool are very helpful tool. The commands and parameters ar very well documented in microsoft site but the problem is i don't want to manually write all the update ids and names in to the script, can the script somehow just detect all updates inside a folder and install it silently one by one automatically ?
     
  4. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    Will try this one thats what i'm looking for :D Thx.
     
  5. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    i usually use this script to install automatically updates for win7/win8.1 and win10 ("wusa" instead of "wupdmgr" in the script) but as wusa.exe does not exist in winxp (it installs msu packages) i replaced it by "wupdmgr" hopping that the script will work for winxp but it's not the case.

    So now replace wupdmgr by wuauclt in the script then save and run the batch file again and see the result.

    if it does not work replace wuauclt by wuauclt1 in the script and run the batch file.

    if it still does not work so that would mean that this script is not adequate to winxp.
     
  6. grrgrr

    grrgrr MDL Member

    Oct 4, 2017
    117
    103
    10
    Even i'm interested to see if it works.
    @markokk888
    Also from where did you collect all the exe files?
     
  7. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    With a wuauclt it just listed the names in the folder and with the wuauclt1 it appears doing something but i don't think that it installing updates will see if they appear as installed.
     
  8. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    From windows update catalog downloaded them manually all 228 of them lol :D i can share if you don't want to do all this work by yourself.
     
  9. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    No, this is not working. well i can sysprep them but i don't want. Time to list all the updates in to a script by manually still better than installing one by one :D
     
  10. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    ok if the script does not work, try what @grrgrr posted above but you will have to do a little change if you want that all the updates can be installed at the same time :

    create a txt file and put these lines into it :

    Code:
    start /wait windowsxp-kb*.exe /q /z /n /o
    shutdown -r
    Save the file into .cmd extension.

    Then create a folder, put all the exe updates into the folder as well as the cmd file then run the cmd file and see the result.
     
  11. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    ok so try this :

    go to command prompt (in admin mode)

    then you put the correct path of the updates folder and then you run :

    start /wait windowsxp*.exe /q /z /n /o

    and you see the result.
     
  12. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
  13. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    ok after multiple tests, i think i've found it :

    so first create folder in c:, call it updates then put all the updates in that folder then create txt file and put this line into it :

    Code:
    FOR /R C:\updates %%a IN (*.exe) DO %%a -q -norestart
    Save the file into .bat extension and run the batch file. This time it should work.

    Let me know of the result.
     
  14. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    It's working very well, thank you :)
     
  15. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    Glad to hear :)
     
  16. markokk888

    markokk888 MDL Member

    Aug 13, 2012
    212
    39
    10
    Now it would be a great to have a script that will check if all updates were successfully installed. :D
     
  17. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60