Skip to content
⌘ NSIS Forum Archive

98 and internetcheckconnection

2 posts

grahama#

98 and internetcheckconnection

this code below works under 2000 and XP, but fails in 98...
Is there another way to check for an internet connection for 98 users ? Or, is there a better more compatible way for 98,2000,and XP systems?

System::Call "wininet::InternetCheckConnection( \
t 'http://www.siren.cc/Univision/fonovisa/Library/nsis/!Fonovisa.ini', \
i ${FLAG_ICC_FORCE_CONNECTION}, i 0) i .r0"
StrCmp $0 "error" noie3 +1
StrCmp $0 "0" noconnection success

many thanks
g
Takhir#
InternetGetConnectedState also may help to chect Inet availability (but sometimes this gives wrong answer in LANs)
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.