Jump to content

Windows Updates


Recommended Posts

I have decided just to install updates manually after windows instillation and I have the updates in one folder at %cdrom%\wpi\Install\Updates and there are several windows updates there what I want to know is there a command I could compile so it will install all updates at the same time instead of putting everyone in Wpi?

Link to comment
Share on other sites


Ive never installed Windows Updates manually, so Im not familiar with the commands to do so, but assuming you use the same command for each file, you could make a pretty simple batch file that loops through all of the files in the directory. If I had some extra time, id post an example.. but if youre familiar with batch, google 'for each batch', that should get to what youre looking for.

Link to comment
Share on other sites

I think this should be right

@echo off

setlocal

set PATHTOFIXES=C:\Updates

%PATHTOFIXES%\WindowsXP-KB893086-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB893066-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB891781-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB890923-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB890859-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB890175-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB888302-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB888113-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB887742-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB886185-x86-enu.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB885836-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB885835-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB885626-v2-x86-enu.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB885250-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB873339-x86-ENU.exe /Z /U

%PATHTOFIXES%\WindowsXP-KB873333-x86-ENU.exe /Z /U

%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /Z /U

%PATHTOFIXES%\WindowsInstaller-KB893803-v2-x86.exe /Z /U

%PATHTOFIXES%\gdidettool.exe /Z /U

Info

http://support.microsoft.com/default.aspx?scid=kb;en-us;296861&sd=tech

Link to comment
Share on other sites

Or this.

@echo off

FOR %%XX IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%XX:\WIN51 SET CDROM=%%XX:

FOR %%i IN ( "%CDROM%\Hotfixes\*.exe" ) DO (
  ECHO Installing hotfix %%~ni
  %%i /O /U /N /Z
)

Link to comment
Share on other sites

Or this.

@echo off

FOR %%XX IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%XX:\WIN51 SET CDROM=%%XX:

FOR %%i IN ( "%CDROM%\Hotfixes\*.exe" ) DO (
  ECHO Installing hotfix %%~ni
  %%i /O /U /N /Z
)

I would be lying If I said I understood that what-so-ever :thumbup

Link to comment
Share on other sites

Or this.

@echo off

FOR %%XX IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%XX:\WIN51 SET CDROM=%%XX:

FOR %%i IN ( "%CDROM%\Hotfixes\*.exe" ) DO (
  ECHO Installing hotfix %%~ni
  %%i /O /U /N /Z
)

I would be lying If I said I understood that what-so-ever :thumbup

What it does, is looks for your installation CD, the goes into the Hotfixes folder and then runs Each .exe file in there using the switches /o /u /n /z

it's pretty neat really :w00t: (note to self learn batch more about batch scipting)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...