Check Internet Connection State

Post specialized setup scripts you have created here.
Post Reply
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Check Internet Connection State

Post by mikKummerfeld »

Hey Guys,

for all users who using the download-file command to check your internet connection.
Try this windows.api function (wininet.dll) which is the better way:

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{0456FAE6-C41B-4A9A-B498-615908D96617}~
~Internet connection~
~ConnectionState: $internetresult$~
~0~
~1~
~~
~Call DLL Function~
~{0858B37D-C134-4983-9E85-4675650C82B2}~
~Wininet.dll,InternetCheckConnectionA,bool,internetresult,"pointer to string",http://www.google.com,"double word",1,"double word",0,$~
~mIDEFunc.dll\mEXEFunc.dll~
~Set Variable~
~{C279442D-4A4A-45D2-8F6E-124AE63A9F97}~
~internetresult$MYAH$MYAH$FALSE~
~false~
~Comment~
~{AA251F4D-0670-414E-A6C8-20DEEC2C0ACB}~
~Check internet connection state~
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Post Reply