Awesome! That worked like a charm, thanks erik! Though this script is bullet-proof on NT/2000, it doesn't run quite well on 9X machines LL, I went ahead and used the registry check for uninstall with if and end statement.

I'm not sure why it stops when running on 9X in the middle of the script, probably because its on the wrong sleep timing? It doesn't seem to pass beyond the copying process of the install. Probably create a second script for 9X instead ...Can someone point to me how this should be done on 9X?

Here is the code:

code:

; check if already installed
$Linxuninstall = ReadValue("HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Lan-LinX 2000", "uninstallstring")
if $Linxuninstall = ""
$RC = MessageBox("Your Lan-LinX Phone software will be upgraded." + Chr(13) + "Please be patient while software Installs.","Lan-LinX Phone Software Install",64,60)
run( "\\server1\netlogon\setup.exe" )
Sleep ( 2 )
SetFocus( "Lan-LinX 2000 Installation" )
SendKeys("{ENTER}")
Sleep ( 1 )
SetFocus( "Type of Installation" )
SendKeys("{DOWN 3}")
SendKeys("{ENTER}")
Sleep ( 1 )
SetFocus( "Lan-Linx 2000 Installation" )
SendKeys("{ENTER 4}")
Do
Sleep 1
Until SetFocus( "Installing" )
Do
Sleep 1
Until SetFocus("Telephony LAN-Linx Config") = 0
SendKeys("~o")
Do
Sleep 1
Until SetFocus("Lan-Linx 2000 Installation") = 0
SendKeys("{ENTER}")
endif

Also, I was wondering if its possible to run two kix scripts on a batch file at the same time? The reason why I'm asking this is because I want to add a second (separate) kix script that basically runs drive mappings, then runs the software installation.