Newbie Question - Hotfix / Patching script

From: Chris Henderson (please_at_dont.ask.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 10:47:43 -0700

Hi All,

I'm pretty new to this scripting stuff so I'll keep it brief. I'm trying to
create a script that will install multiple hotfixes one after the other
(like qchain used to do). The problem is that when I run the script it
doesn't wait until the first hotfix is applied before starting the other
therefore some dont install because there is another hotfix being installed
at the same time. I need something like an exit code to input so I can start
the next one. This is what I have so far.

set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run "WindowsServer2003-KB834707-x86-enu.EXE /quiet /norestart"
wshshell.run "WindowsServer2003-KB841356-x86-enu.EXE /quiet /norestart"
wshshell.run "WindowsServer2003-KB883935-x86-enu.EXE /quiet /norestart"
wshshell.run "WindowsServer2003-KB840987-x86-enu.EXE /quiet /norestart"
wshshell.run "WindowsServer2003-KB873376-x86-enu.EXE /quiet /norestart"
wshshell.run "WindowsServer2003-KB841533-x86-enu.EXE /quiet /norestart"
wshshell.run "WindowsServer2003-KB824151-x86-enu.EXE /quiet /norestart"

Any help would be greatly appreciated.

Thanks in advance,

Chris



Relevant Pages

  • How to use scripting to secure your Win2K network--part 2
    ... script a self-contained script that automatically installs hotfixes on a ... Hotfix folder for hotfixes that apply to both Windows 2000 ... "Install script has started to install Hotfix " + hotfixid); ...
    (NT-Bugtraq)
  • Re: Login Script - Installing HotFix/Patches
    ... >> When I install the hotfix's patches via login script they work fine. ... > You could let the script make a flag file (e.g. in the ... > Check the version number of a dll/exe file that the hotfix includes to see ...
    (microsoft.public.security)
  • How to distribute hotfix using script?
    ... I have posted a question regading distirbuting a hotfix in the Windows ... startup script. ... Otherwize install it (using ... using the WMI script? ...
    (microsoft.public.scripting.vbscript)
  • Re: Hotfix Deployment via Login Script
    ... I need to deploy a hotfix via a login script. ... > a script to install the hotfix is no problem, the problem is that my users ... administrative logon after it has been applied? ...
    (microsoft.public.scripting.wsh)
  • Dont forget set Target framework for Project to 3.5: ADO.NET Entities Failure (RTM)
    ... Install VS 2008 SP1 ... Microsoft Visual Studio 2008 Tools for Office ... If you later install a more recent service pack, this hotfix will be uninstalled automatically. ...
    (microsoft.public.dotnet.framework.adonet)