Dear,

We have modify your code for kixtart 3.36

code:

;Look for Adobe, if not installed install it...
IF (ExistKey("HKEY_LOCAL_MACHINE\SOFTWARE\Adobe") <> 0) ; - software not installed -
;Adobe is not present, install it....
RUN '%comspec% /c "\\Elmo\Common\Software\Applications\Acrobat Reader\rs405eng.exe" '
SLEEP 20
$nul=Setfocus("Acrobat Reader 4.05 Setup")
$nul=Sendkeys("{ENTER} {ENTER}")
SLEEP 10
$nul=Sendkeys("{ENTER}")
ELSE
? "Adobe is present.."
ENDIF

Some remarks:

  • modify KeyExist to ExistKey.
  • insert %comspec% /c in your RUN call.
  • remove GOTO structure.
  • add $nul= to your function to prevent unnecessary screen output.

greetings.


btw: it was very interesting to see how kixtart 3.63 was handling the unknown
function KeyExist.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA