hi everyone, I tried modifying the script a little and putting a log file so that it puts it on a centralized location. In this case, I can keep track of who installed the program according to the flag. I setup "authenticated users" to have modify permission on the file.The problem: It doesn't stop installing the program somehow..here is the code:
quote:
$linxfile="\\server1\netlogon\lanlinx.ini"
$info=ReadProfileString($linxfile,"install",@userid)
IF exist($info) = 0
$RC = MessageBox("Your Lan-LynX Phone software will be upgraded." + Chr(13) + "Please be patient while software Installs.","Lan-LinX Phone Software Install/Upgrade",64,60)
run( "\\server1\netlogon\setup.exe" )
Sleep ( 5 )
SetFocus( "Lan-LinX 2000 Installation" ) = 0
SendKeys("{ENTER}")
Do
Sleep 1
Until SetFocus( "Type of Installation" ) = 0
SendKeys("{DOWN 3}")
SendKeys("{ENTER}")
Sleep ( 1 )
SetFocus( "Lan-Linx 2000 Installation" ) = 0
SendKeys("{ENTER 4}")
Do
Sleep 1
Until SetFocus( "Installing" ) = 0
Do
Sleep 1
Until SetFocus("Telephony LAN-Linx Config") = 0
SendKeys("~o")
Do
Sleep 1
Until SetFocus("Lan-Linx 2000 Installation") = 0
SendKeys("{ENTER}")
IF (WriteProfileString($linxfile,"install",@userid,@date+" "+@time) <> 0)
ENDIF
ELSE
$info=ReadProfileString($linxfile,"install",@userid)
? "Informative INSTALL: software already installed at "+$info
endif
Thanks alot. -jImmy