OutFile "dial.exe"
Section
Call ConnectInternet
SectionEnd
Function ConnectInternet
Push $R0
ClearErrors
Dialer::AttemptConnect
IfErrors noie3
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 "it is connected"
Pop $R0
FunctionEnd dialer, how to make it work?
It doesn't seem working for me. I've disable the internet, it messagebox say "it is connected". Am i missing something? how do i include dialer.dll in the code?