Connect to internet
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,