Page 1 of 1 1
Topic Options
#48084 - 1999-08-22 04:46 AM upgrade client application via loginscript
Anonymous
Unregistered


I had to upgrade the sql clients on all the workstations the same day the sql server was upgraded or the client would report dll mismatch. I was also told this would be happeing more then once so wrote a script to maktain the version upgrade data in the registry:
; the very first time, create the version key
IF EXIST ("c:\sbs\confirm\confirm.exe")
? "I see you have confirm on your dirve..."

If existkey( "HKEY_LOCAL_MACHINE\SOFTWARE\ConfirmUpgrades" ) <> "0"
addkey( "HKEY_LOCAL_MACHINE\SOFTWARE\ConfirmUpgrades" ) = 0
ENDIF

$checkversion = ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\ConfirmUpgrades", "version")

IF $checkversion <> "one"
? "You need to be patched..."
copy "z:\upgrade\*.*" "c:\sbs\"
writevalue ( "HKEY_LOCAL_MACHINE\SOFTWARE\ConfirmUpgrades" , "version" , "one" , "REG_SZ" )
ELSE
? "but you've already recieved patch version: " $checkversion
ENDIF
ENDIF
:EXIT
? "bye"

------------------
------------------------
John Hornblow
Wellington New Zealand
johnhb@paradise.net.nz
------------------------

Top
#48085 - 1999-09-01 03:22 AM Re: upgrade client application via loginscript
Anonymous
Unregistered


thanx for sharing this script with us !!
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1927 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.118 seconds in which 0.103 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org