WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Installation Licensing Setup
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Compaq's Support Software Diskette Installation Sample Script

Keywords:   Compaq's Support Software Diskette Installation Sample Script

Question:

The Setup program normally requires users to click on some dialog boxes. How can I automate that using WinBatch? Is there any example that automates clicking dialog box?

Answer:

It depends. In a lot of cases you can just send keystrokes. For more complicated problems, you can try downloading our Control Manager extender. Here's an example that installs Compaq's Support Software Diskette.
;IN THIS EXAMPLE, H: IS THE CD-ROM DRIVE TO INSTALL FROM.
;CHANGE ACCORDING TO YOUR SYSTEM CONFIGURATION AS TO WHERE
;SETUP.EXE IS LOCATED.


intcontrol(12,5,0,0,0)

;'run=H:\post3\ssd1.20\setup.exe'

TimeDelay(1)
dacommand='H:\post3\ssd1.20\setup.exe'
run(dacommand,'')

;'Setup Installation Options=!e'

windowtitle='Setup Installation Options'
WinWaitExist(windowtitle,-1)
windowtitle=WinIDGet(windowtitle)
TimeDelay(1)
if winexist(windowtitle)
   intcontrol(36,windowtitle,5,0,0)
   Sendkeysto(windowtitle,'!e')
endif

;'Setup - Express=!u'

windowtitle='Setup - Express'
WinWaitExist(windowtitle,-1)
windowtitle=WinIDGet(windowtitle)
TimeDelay(1)
if winexist(windowtitle)
   intcontrol(36,windowtitle,5,0,0)
   Sendkeysto(windowtitle,'!u')
endif

;'Setup Session Complete=!r'

windowtitle='Setup Session Complete'
WinWaitExist(windowtitle,-1)
windowtitle=WinIDGet(windowtitle)
TimeDelay(1)
if winexist(windowtitle)
   intcontrol(36,windowtitle,5,0,0)
   Sendkeysto(windowtitle,'!r')
endif

;'Restart System=~'

windowtitle='Restart System'
WinWaitExist(windowtitle,-1)
windowtitle=WinIDGet(windowtitle)
TimeDelay(1)
if winexist(windowtitle)
   intcontrol(36,windowtitle,5,0,0)
   Sendkeysto(windowtitle,'~')
endif





Article ID:   W13386
Filename:   Compaq Support Software Installation.txt
File Created: 1999:04:15:16:53:40
Last Updated: 1999:04:15:16:53:40