Lori,

Made a change to the script..

Put "" around the Word path. Added in a VAL() statement around the $fileversion and $currentfilever (even though it appeared unecessary).

code:
break on cls
$currentfilever = "9.0.0.4527"
$winpath = readvalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\winword.exe","")
? "The winword.exe path from the registry is: " + $winpath
? "Up-to-date file version is: " + $currentfilever
$fileversion = getfileversion ("$winpath","FileVersion")
? "Version found is: " + $fileversion
If val($fileversion) < val($currentfilever)
? $fileversion + " is less than " + $currentfilever
else
? $fileversion + " is greater than " + $currentfilever
Endif

If I run this, I get:
quote:

The winword.exe path from the registry is: C:\PROGRA~1\MICROS~1\OFFICE\WINWORD.EXE
Up-to-date file version is: 9.0.0.4527
Version found is: 9.0.3822
9.0.3822 is greater than 9.0.0.4527

Can you post your results? Or, where it stops?

BTW, what version of Kixtart are you running with this?

Thanks!

- Kent

[ 02 May 2002, 03:41: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's