Re: Login Script - Installing HotFix/Patches
From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 10/30/03
- Next message: Hector Santos: "Re: Basic Authorization Security Issue?"
- Previous message: Bill Sanderson: "Re: Is KB828026 a security update or not? Where's the bulletin?"
- In reply to: Moe Szyslak: "Login Script - Installing HotFix/Patches"
- Next in thread: Moe Szyslak: "Re: Login Script - Installing HotFix/Patches"
- Reply: Moe Szyslak: "Re: Login Script - Installing HotFix/Patches"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Hector Santos: "Re: Basic Authorization Security Issue?"
- Previous message: Bill Sanderson: "Re: Is KB828026 a security update or not? Where's the bulletin?"
- In reply to: Moe Szyslak: "Login Script - Installing HotFix/Patches"
- Next in thread: Moe Szyslak: "Re: Login Script - Installing HotFix/Patches"
- Reply: Moe Szyslak: "Re: Login Script - Installing HotFix/Patches"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|