|
|
#1 |
|
Junior Member
Join Date: Nov 2007
Posts: 3
|
I am using following script to connect to internet but it doesn't work.. Can any one help me out in this ?
My script is as follows: Function ConnectInternet Push $R0 ClearErrors Dialer::AttemptConnect IfErrors noie3 Dumpstate::debug Pop $R0 StrCmp $R0 "online" connected MessageBox MB_OK|MB_ICONSTOP "Cannot connect to the internet." Quit ;This will quit the installer. You might want to add your own error handling. noie3: ; IE3 not installed MessageBox MB_OK|MB_ICONINFORMATION "Please connect to the internet now." connected: MessageBox MB_OK|MB_ICONINFORMATION "Connected to internet." Pop $R0 FunctionEnd Thanks, |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You are missing a Goto after the noie3. Use LogicLib instead.
code: Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2007
Posts: 3
|
here Dialer:AttempConnect always return online at my place if local area network is connected or not.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|