Jump to content

Update script


Recommended Posts

Hello,

I would like to update Windows XP using some kind of your script ? but right now I don’t want to slipstreaming CD installation, I just want to update an installation in once, instead of using each exe.

Please, can you help me and explain how I can automate this global updating, by using some script.

Thanks in advance

Excuse-me for my english

Link to comment
Share on other sites


well.... you would ahve to slipstream SP1 or have SP1 slipstreamed into your isntallation, but after that you could just run this batch file...

@echo off
echo.
echo Installing MS Hotfixes....This might take awhile...
start /wait %systemdrive%\install\hotfix\js56nen.exe /Q:A /R:N
start /wait %systemdrive%\install\hotfix\Q323255.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q328310.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q329048.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q329115.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q329170.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q329390.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q329441.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q329834.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\q330994.exe /Q:A /R:N
start /wait %systemdrive%\install\hotfix\Q331953.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q810565.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q810577.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q810833.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q811493.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q811630.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q817287.EXE /Q:A /R:N
start /wait %systemdrive%\install\hotfix\Q817606.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\q822925.EXE /Q:A /R:N
start /wait %systemdrive%\install\hotfix\KB819639.exe /Q:A /R:N
start /wait %systemdrive%\install\hotfix\KB821557.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\KB823559.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q814033.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q815021.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\Q823718.exe /C:"dahotfix.exe /q /n" /q
start /wait %systemdrive%\install\hotfix\KB824105.exe /Q /M /Z
start /wait %systemdrive%\install\hotfix\KB824146.exe /Q /M /Z

Link to comment
Share on other sites

here's how I do it...

Create a directory called $OEM$\$1\hotfixes

Create sub directories called IE and WIN

Create sub directories beneath the WIN directory called 1 and 2

So, here is what you should have

$OEM$\$1

HOTFIXES

WIN

1

2

IE

There are two different kinds of hotfixes for Windows and one for IE (the reason for the directory structure) One type of hotfix uses -u -q -z switches where as the other kind uses /q:a /r:n switches. Drop the first kind in the 1 directory and the second kind in the 2 directory. If you have trouble determining which is which you can launch it from a prompt with a /? switch to find out. Drop the corresponding IE hotfixes in the IE directory.

Drop QCHAIN.EXE in the HOTFIXES directory.

Create a batch file in the HOTFIXES directory called HOTFIXES.BAT with the following contents

:START 
@ECHO OFF
DIR /B c:\hotfixes\win\1\>>c:\hotfixes\win1.txt
DIR /B c:\hotfixes\win\2\>>c:\hotfixes\win2.txt
DIR /B c:\hotfixes\IE\>>c:\hotfixes\ie.txt

FOR /f %%i IN (c:\hotfixes\win1.txt) DO ECHO %%i -u -q -z>>hotfixrun.bat
FOR /f %%i IN (c:\hotfixes\win2.txt) DO ECHO %%i /q:a /r:n>>hotfixrun.bat
FOR /f %%i IN (c:\hotfixes\ie.txt) DO ECHO %%i /q:a /r:n>>hotfixrun.bat
ECHO qchain.exe>>hotfixrun.bat

hotfixrun.bat

RD /S/Q c:\hotfixes

:END

Link to comment
Share on other sites

I forgot, where can i find QCHAIN.EXE ?

Also, if I want to run yhis from the Hard drive, or from a CD, does it change something about the directories ?

+ what about the WAIT parameter ?

Thanks again

Link to comment
Share on other sites

Ok this is what ive done (Taken me awhile)

this runs from any thing.

the easiest way to get all of these updates is to run windows up date on and xp box then while its installing copy the WUTemp folder to another localation eg desktop.

then when you have these files make the following folders.

hotfixes

->critical

->recemmended

--->DirectX9b

--->Journal

see here for making the directx9b folder

you will also need to extract all the files from journal.exe and put them in the journal folder.

here are the scripts.

recommended.cmd (this installs programs like dx9, media player 9, movie maker 2)

setlocal

set PATHTOFIXES=.\recommended

%PATHTOFIXES%\dotnetfx.exe /Q:A /c:"install /q"

%PATHTOFIXES%\Journal\Journal.msi /QB

%PATHTOFIXES%\DirectX9b\dxsetup.exe /opk

%PATHTOFIXES%\hu1002_pro.exe /Q:A /R:N

%PATHTOFIXES%\MMSSETUP.EXE /Q:A /R:N

%PATHTOFIXES%\q818529.exe /Q:A /R:N

%PATHTOFIXES%\WindowsXP-KB817778-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB822603-x86-ENU /Z /Q

%PATHTOFIXES%\Movie_Maker_v2_XP_setup.exe /Q:A /R:N

%PATHTOFIXES%\MPSetupXP.exe /Q:A /R:N

critical.cmd (this updates programs like windows media player 9. + all xp bugfixes)
setlocal

set PATHTOFIXES=.\critical

%PATHTOFIXES%\Q322011_WXP.exe /Z /Q

%PATHTOFIXES%\Q323255_X86_EN.exe /Z /Q

%PATHTOFIXES%\Q327979_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q328310_WXP_SP2_en.exe /Z /Q

%PATHTOFIXES%\Q329048_xp.exe /Z /Q

%PATHTOFIXES%\Q329115_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q329170_WXP_SP2_EN.exe /Z /Q

%PATHTOFIXES%\Q329390_WXP.exe /Z /Q

%PATHTOFIXES%\Q329441_WXP_SP2_en.exe /Z /Q

%PATHTOFIXES%\Q329834_WXP_SP2_x86.exe /Z /Q

%PATHTOFIXES%\Q331953_WXP_en.exe /Z /Q

%PATHTOFIXES%\Q810243_WXP_SP2.exe /Z /Q

%PATHTOFIXES%\Q810565_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q810577_WXP_en.exe /Z /Q

%PATHTOFIXES%\Q810833_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q811493_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q811630_WXP_SP2_EN.exe /Z /Q

%PATHTOFIXES%\Q814033_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q814995_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q815021_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q815485_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\Q817606_WXP_SP2_x86_ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB282010-x86-ENU-express.EXE /Z /Q

%PATHTOFIXES%\WindowsXP-KB820291-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB821253-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB821557-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB823559-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB823980-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB824105-x86-ENU.exe /Z /Q

%PATHTOFIXES%\WindowsXP-KB824146-x86-ENU-express /Z /Q

%PATHTOFIXES%\Q823718_MDAC_SecurityPatch.exe /C:"dahotfix.exe /q /n" /q

%PATHTOFIXES%\q822925.exe /Q:A /R:N

%PATHTOFIXES%\js56nen.exe /Q:A /R:N

%PATHTOFIXES%\msjavwu.exe /Q:A /R:N

%PATHTOFIXES%\q330994.exe /Q:A /R:N

%PATHTOFIXES%\Q817287.EXE /Q:A /R:N

%PATHTOFIXES%\WindowsMedia9-KB819639-x86-ENU.exe /Q:A /R:N

I HAVEN'T added the lastest ie update yet.

all.cmd (this will run the 2 batch files and restart after 10 seconds)

call .\recommended\recommended.cmd

call .\critical\critical.cmd

shutdown -r -t 10 -c "Restarting after installing the updates. THIS IS PART OF THE SCRIPT AND NOT A VIRUS."

hope this helps

Link to comment
Share on other sites

hi!

I have have the second Script modified to run.

I had several Error Messages that can not be found any File.

And a Error Message for the Q823718 Hotfix.

This is a perfect Script to add new Hotfixes to them...

to:

START

@ECHO OFF

DIR /B %systemdrive%\install\hotfixes\win\1\>>%systemdrive%\install\hotfixes\win1.txt

DIR /B %systemdrive%\install\hotfixes\win\2\>>%systemdrive%\install\hotfixes\win2.txt

DIR /B %systemdrive%\install\hotfixes\win\3\>>%systemdrive%\install\hotfixes\win3.txt

DIR /B %systemdrive%\install\hotfixes\IE\>>%systemdrive%\install\hotfixes\ie.txt

FOR /f %%i IN (%systemdrive%\install\hotfixes\win1.txt) DO ECHO %%i -u -q -z>>hotfixrun.bat

FOR /f %%i IN (%systemdrive%\install\hotfixes\win2.txt) DO ECHO %%i q:a r:n>>hotfixrun.bat

FOR /f %%i IN (%systemdrive%\install\hotfixes\win3.txt) DO ECHO %%i /C:"dahotfix.exe /q /n" /q>>hotfixrun.bat

FOR /f %%i IN (%systemdrive%\install\hotfixes\ie.txt) DO ECHO %%i q:a r:n>>hotfixrun.bat

Move %systemdrive%\install\Hotfixes\win\1\*.* %systemdrive%\install\hotfixes

Move %systemdrive%\install\Hotfixes\win\2\*.* %systemdrive%\install\hotfixes

Move %systemdrive%\install\Hotfixes\win\3\*.* %systemdrive%\install\hotfixes

Move %systemdrive%\install\Hotfixes\ie\*.* %systemdrive%\install\hotfixes

ECHO qchain.exe>>hotfixrun.bat

hotfixrun.bat

RD /S/Q c:\hotfixes

END

Gofrag

Sorry about my bad english

Link to comment
Share on other sites

hi!

I have an question to this script...

How i change this script from add Q:A R:N to end to add Start /wait at the Start of the Line?

This is useful to me, there i would be change the Installation CD´s for many types of computers and the Setup Programms in this Forum do not work for me, there i have partly an Installation over 3 - 9 CD´s and so i could simply add or remove the install Folders and the Batch files in the root Install Folder.

Thanks for Replys

GoFrag

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...