MSFN Forum: I have a folder full of updates that I need to install. Help! - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I have a folder full of updates that I need to install. Help! Rate Topic: -----

#1 User is offline   mrbigmouth502 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 19-August 11
  • OS:none specified
  • Country: Country Flag

Posted 25 January 2013 - 01:07 PM

So, I'm fixing a computer that has XP Home SP1 installed on it, and it desperately needs updates. I have all of the latest XP updates downloaded using Windows Updates Downloader, but no way to install them all at once without sitting there for a few hours and mindlessly clicking through dialogue boxes. How can I write a batch file to go through and install all of them?


#2 User is offline   -X- 

  • Member
  • Group: Patrons
  • Posts: 2,048
  • Joined: 08-January 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 25 January 2013 - 01:48 PM

First, install SP3 then use this...

echo hotfix post SP3...
for %%a in (*.exe) do (
start /wait %%a /quiet /norestart /nobackup )
pause


#3 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,244
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 25 January 2013 - 01:51 PM

Open Notepad and copy/paste this into it
@echo off
if exist "%~dp0dirlst.txt" del dirlst.ext
if exist "%~dp0exerunr.cmd" del exerunr.cmd
dir /od /b "%~dp0*.exe" > dirlst.ext
echo @echo off > exerunr.cmd
FOR /F "usebackq delims=" %%a in (dirlst.ext) do (
 echo start "" /wait "%~dp0%%a" /QUIET /NORESTART >> exerunr.cmd
)
echo exit. >> exerunr.cmd
REM start "" /wait "%~dp0exerunr.cmd"
del dirlst.ext
REM del exerunr.cmd
exit.


then save it "somewhere" as "exerun.cmd". Now copy the file to each folder and run it. It will generate a file called "exerunr.cmd" - run that and wait. I'm not sure WHICH ones MIGHT fail (not knowing WHICH files you downloaded) but its should work for MOST of them.

Note - Regardless, run the SP3 FIRST by itself (no need for the "cmd" files).

edit - DOH!!! Alright, -X-, ya beat me! Mine just sorts them by date/time ascending.
edit2 - errr - never thought about "nobackup" before... either/or...
edit3 - WUD downloads Categories to separate folders...

This post has been edited by submix8c: 25 January 2013 - 01:56 PM


#4 User is offline   mrbigmouth502 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 19-August 11
  • OS:none specified
  • Country: Country Flag

Posted 25 January 2013 - 02:13 PM

I already took all of the updates out of their separate folders and put them into one folder, so X's script should work fine.

#5 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,244
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 25 January 2013 - 02:28 PM

Nope... MAY not work...
1 - Security Updates (87) <-These WILL install with CMD AFTER SP3
2 - Non-Security Updates (15) <-These WILL install with CMD AFTER SP3
3 - Service Packs (1) <--Install First
4 - WMP 11 Updates (20) <-These WILL install with CMD AFTER you download WMP11 and install (not included)
5 - MS Security Products (2) <-These may NOT install with CMD
6 - Optional Updates (7) <-These may NOT install with CMD

I haven't downloaded the whole set BUT can tell you that SOME of them MIGHT install with a different set of parameters.

You can open the "UL" file with Notepad to determine which went into which group.

Also note that IE8 will require additional Updates (AFAIK).

Go to -X- website for more info.

edit - noticed at least two IE8 Updates in the List#1 - install IE8 FIRST (downloaded in Optional).

This post has been edited by submix8c: 25 January 2013 - 02:32 PM


#6 User is offline   mrbigmouth502 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 19-August 11
  • OS:none specified
  • Country: Country Flag

Posted 25 January 2013 - 02:40 PM

The only updates I actually moved were the ones starting with "WindowsXP-KB*".

#7 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,244
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 25 January 2013 - 02:58 PM

Unsure about this one - Windows-KB890830-v4.16.exe
Mistaken about WMP11 (it's in the download)
Mistaken about the IE8-WindowsXP-KBxxx (seems to all be there)

So... the first one MAY not work that way.
SOME WindowsXP-KBxxx may not work that way (probably OK though)

Procedure -
1 - Run the Script against what you've collected
2 - Install IE8
3 - Collect the IE8-WindowsXP-KBxxx and run the script against them
4 - Install Mediaplayer11
5 - Collect the windowsmedia11-kbxxx and run the script against them
6 - Install all others accordingly/as you desire (manually?) (DotNet, etc)
7 - Check via Windows/Microsoft Update to see what got "missed"
ONE of the "Security" ones (other than the one I gave above) is Windows Antivirus - you may/maynot want that.
OTHER Optional (#6) are whatever you want.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy