Page 1 of 1 1
Topic Options
#133593 - 2005-02-10 04:12 PM Check software revision and install / update
Anonymous
Unregistered


Hi,

If anybody has any suggestions or information for the following problem I would greatly appreciate your help.

We currently use Kixtart for mapping drives etc but are trying to set it up to check if a piece of software called citrix (thin client remote connectivity software) is installed or needs updating (a different revision number) on the local machine when it runs the login script. If the software is not up-to-date or is not installed we want it to install an MSI file from a network location.

Thanks in advance

Mark
mark.bratt@strix.com

Top
#133594 - 2005-02-10 04:24 PM Re: Check software revision and install / update
Anonymous
Unregistered


Please note we have the batch file and MSI file already created and configured and have tested just running the install with the /q switch but unfortunately the citrix software requires a restart everytime it is installed

Again, thanks in advance

Top
#133595 - 2005-02-10 04:30 PM Re: Check software revision and install / update
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Here's a start for you

Code:

break on
dim $file, $standardVer,$curVer

$file = 'c:\program files\citrix\ica client\pn.exe'
$standardVer = '8.0'
$curVer = '0.0'

if exist($file)
$curVer = getfileversion($file)
endif

if $curVer < $standardVer
shell 'msiexec /i "server\share\ica32pkg.msi" REBOOT="ReallySupress" /lie "c:\logdir\citrix.txt" /qb!'
endif



Do your users have admin rights on their machines?
_________________________
Eric

Top
#133596 - 2005-02-11 12:37 PM Re: Check software revision and install / update
Anonymous
Unregistered


Maciep, you are a legend! Thanks for your help, we definitley owe you a beer or two if you decide to visit the isle of man

The resulting code if it is of any interest to anyone is:

Code:
  
break on
dim $file, $standardVer,$curVer

$file = 'c:\program files\citrix\ica client\pn.exe'
$standardVer = '8.100.29670.0'
$curVer = '0.0'

if exist($file)
$curVer = getfileversion($file)
endif

if $curVer < $standardVer
shell 'msiexec /i "\\fileserver\automated\ica32pkg.msi" /q REBOOT="ReallySupress" /lie "c:\citrix.txt"'
endif



We just changed the standard ver, and the /qb! to q to ensure the user could not see and get worried by what was happening.

Thanks again

Top
#133597 - 2005-02-11 02:24 PM Re: Check software revision and install / update
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Glad i could help and if i ever do make it to the irish sea, just have two cold ones waiting for me.
_________________________
Eric

Top
#133598 - 2005-02-12 06:46 AM Re: Check software revision and install / update
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Hey Mark...looks like Maciep already has you taken care of, but just another quick tip. i would recommend reading from the registry to get the correct file path.

$file = ReadValue("HKEY_CLASSES_ROOT\CLSID\{238F6F83-B8B4-11CF-8771-00A024541EE3}\InprocServer32","")

hard coding file paths is just a small pet peeve of mine.

Top
#133599 - 2005-02-12 05:48 PM Re: Check software revision and install / update
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
nice shane...definitely better than hardcoding.
_________________________
Eric

Top
Page 1 of 1 1


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

Who's Online
0 registered and 988 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.053 seconds in which 0.024 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