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.

Sample Code to Install IE5

Keywords:   internet explorer 5

Note: this code still could use some streamlining, but it gets you most of the way there.

Basically after moving to a different tabbed dialogs (as evidenced by the systabcontrol32 in the trash.txt) you have to get a new trash.txt file to work from.

Also even if perhaps the trash.txt shows the control, you have to cSetTabItem to that tabbed dialog before you can use it (and capture a new trash.txt for the new configuration). So you may be modify the script to reflect these issues.

AddExtender("wwctl34I.dll")

goto proceed
Run ("ie5setup.exe", "")
WinWaitExist("Windows Update: Internet Explorer and Internet Tools",5)

;Parent Window #1 Starts up
openwnd=DllHwnd("Windows Update: Internet Explorer and Internet Tools")

chkrd1=cWndbySeq(openwnd,1) ;target control is under the 1st child window
chkrd=cWndByid(chkrd1,1066) ;"I accept..." is 1066 under child #1
cRadioButton(chkrd,1)


;chkrd1=cWndbySeq(openwnd,6)  ; in the 6th child window is your &Next button
openbutton=cWndByID(openwnd,12324);&Next is id 12324 
cClickButton(openbutton)

TimeDelay(2)
;NOTE:
;New Parent Window #2 is Initiated Here; takes a little time to activate
chkrd2=cWndbySeq(openwnd,1)  ;target control is under the 1st child window
chkrd3=cWndByid(chkrd2,1035) ;"Install Minimal..." is 1035 under child #1
cRadioButton(chkrd3,1)


;chkrd2=cWndbySeq(openwnd,8)  ;&Next button is under the 8th child window
openbutton=cWndByID(openwnd,12324) ;&Next is id 12324
cClickButton(openbutton)

Timedelay(2)
;Time for #3 parent window to load Here
openbutton=cWndByid(openwnd,12324);&Next control
cClickButton(openbutton)

TimeDelay(2)
Sendkeysto("~Windows Update", "n")

;Download components and wait for "Finish" window to appear
a=WinItemChild("Windows Update: Internet Explorer and Internet Tools")
b=ItemLocate("Finish", a,@tab)
if b !=0
  Sendkeysto("Windows Update", "{ENTER}")
else
  TimeDelay(1)
endif

Article ID:   W14241
Filename:   Sample Code to Install IE5.txt
File Created: 2001:03:01:14:37:42
Last Updated: 2001:03:01:14:37:42