gareththegod Posted September 28, 2003 Share Posted September 28, 2003 I have been writing a few new scripts that puts on all of the updates from windows update. (Sorry about the long post.)I was wondering if I could get some feed back on it.Please see image1 for a list of folders.Basically the 2 scripts are in their folders (e.g. cd_critical.bat is in the critical folder and cd_recommended.bat is in the recommended folder) and I have one script (see below) that calls the cd_recommended as this installs programs that are updated in the cd_critical.bat. call .\recommended\cd_recommended.batcall .\critical\cd_critical.batshutdown -r -t 10 -c "Restarting after installing the updates. THIS IS PART OF THE SCRIPT AND NOT A VIRUS."This is the cd_recommended.bat file contents.setlocalset PATHTOFIXES=.\recommended%PATHTOFIXES%\dotnetfx.exe /Q:A /R:N%PATHTOFIXES%\Journal\Journal.msi /QB%PATHTOFIXES%\dx90wu.exe /Q%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%\Movie_Maker_v2_XP_setup.exe /Q:A /R:N%PATHTOFIXES%\MPSetupXP.exe /Q:A /R:NThe only things wrong this batch file is:How to I get dotnetfx.exe to be completely unattended as I have to tell the installer to carry on by clicking next a few times.I would like to add the echo commands in but not sure how to use them.The dx90wu.exe goes to the internet to download the directx 9.0b then installs and the rest of the batch file continues.Here is the cd_critical.bat filesetlocalset 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:NThis file works without any problems, but I wouldn’t mind putting the echo commands in to say what is being installed.And the final part of the batch files restarts it after 10 seconds with that message in the message window.The main reason for this post is too see if I can get these to install in the winnt.sif under the [GuiRunOnce] part using the batch file that calls the 2 files then restarts (if I need to change the restart time that easy).These files how they are can be installed from any drive letter on their own but I don‘t know about the winnt.sif so know if these commands will work using the set command?I was hoping not to use put the critical and recommended folders into the $OEM$ folder just in a folder called hotfixes. Like this:CDROOT--> DOCS --> Hotfixes (my folder) --> Critical --> Recommended--> I386 --> SUPPORT--> VALUEADDIf this all works then it only adds 99mbs to the total of a CD but doesn’t include a full install of directx 9.0b (yet)Thanks for all your help. Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now