Re: Login Script - Installing HotFix/Patches

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 10/30/03


Date: Thu, 30 Oct 2003 18:01:47 +0100

Moe Szyslak wrote:

> When I install the hotfix's patches via login script they work fine. What I
> want to accomplish is that when the login script exicutes if the patch is
> allready installed it will not install them again. Currently the scripts
> installes the patches everytime they login, I have to remove the scripts so
> they will not execute again. Anyhelp appreciated.

Hi

Some methods:

1)
You could let the script make a flag file (e.g. in the
windows folder) or a flag in the registry to indicate that
an update is done. Then the script test for this flag next
time, and if it exists, it does nothing.

Batch file example:

  :: Using this file to test for KB828750
  IF EXIST %WINDIR%.\KB828750.LOG GOTO CONT01

  \\Server03\Software\q828750.exe /q:a /r:n
  ECHO.KB828750 is now installed>%WINDIR%.\KB828750.LOG

  :CONT01

2)
Check in registry if the hotfix is already installed or not, vbscript examples:

http://groups.google.com/groups?selm=3F965641.4A8303F1%40hydro.com
http://groups.google.com/groups?selm=3F85429B.CF23CFAE%40hydro.com

3)
Check the version number of a dll/exe file that the hotfix includes to see if
the hotfix is already installed or not, vbscript example:

http://groups.google.com/groups?selm=3F4C8082.80E083AF%40hydro.com

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


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: Deploying Office 07 with Group Policy
    ... computer I tested it on took 30 minutes to install. ... the following script to the Computer Startup Script. ... REM Get ProductName from the Office product's core Setup.xml file. ... REM Set ConfigFile to the configuration file to be used for deployment REM ...
    (microsoft.public.office.setup)
  • Re: [opensuse] Editting PATH variable
    ... SuSEconfig script ... ... not knowing what you options you used to install ... If your unfamiliar with Bash a good book is 'Learning the Bash Shell' by ... For Java use editing the PATH variable is NOT required... ...
    (SuSE)
  • Re: KB911280 update problem
    ... Microsoft is working on an amended patch which will address this issue. ... Microsoft advises anyone affected by this to not install the patch and to ... That script is broken by the patch. ... He said he could not write a bug report ...
    (microsoft.public.windowsupdate)
  • help with a home network jumpstart
    ... I have the blade running BIND 8 to serve DNS to the home network. ... Here's the output of the boot net - install: ... Using RPC Bootparams for network configuration information. ... Using begin script: install_begin ...
    (SunManagers)