Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for liveupd.kix

(view source code of liveupd.kix as plain text)

  1. ; LiveUpd.kix,  Version 2.01
  2. ; Run Symantec's LiveUpdate utility unattended
  3. ; Written by Rob van der Woude
  4. ; http://www.robvanderwoude.com
  5.  
  6. ; Start GUI style LiveUpdate program.
  7. ; Select one of the 2 command lines below, LUALL.EXE is for
  8. ; general use, VPDN_LU.EXE for Norton AntiVirus updates only.
  9. ; Adjust path if necessary.
  10. RUN "C:\PROGRA~1\SYMANTEC\LIVEUPDATE\LUALL.EXE"
  11. ; RUN "C:\PROGRA~1\NAVNT\VPDN_LU.EXE"
  12.  
  13. ; Press "Next" (Alt+N) using SendKeys function
  14. IF SETFOCUS( "LiveUpdate" ) = 0
  15. 	$RC = SENDKEYS( "+N" )
  16. ENDIF
  17.  
  18. ; Wait 30 seconds.
  19. ; Adjust interval for slow Internet connections !!!
  20. SLEEP 30
  21.  
  22. ; For VPDN_LU.EXE:
  23. ; Press "Finish" (Alt+F) using SendKeys function
  24. ; IF SETFOCUS( "LiveUpdate" ) = 0
  25. ; 	$RC = SENDKEYS( "+F" )
  26. ; ENDIF
  27.  
  28. ; For LUALL.EXE:
  29. ; Press "Enter" ("OK" when finished, otherwise
  30. ; "Cancel", so don't choose your interval too short)
  31. IF SETFOCUS( "LiveUpdate" ) = 0
  32. 	$RC = SENDKEYS( "{ENTER}" )
  33. ENDIF
  34.  

page last modified: 2024-04-16; loaded in 0.0077 seconds