Check Internet Connection State

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

Check Internet Connection State

Postby mikKummerfeld » Fri Jan 25, 2013 11:18 am

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~
~Internet connection~
~ConnectionState: $internetresult$~
~Call DLL Function~
~Wininet.dll,InternetCheckConnectionA,bool,internetresult,"pointer to string",,"double word",1,"double word",0,$~
~Set Variable~
~Check internet connection state~
Kind regards

Heiko Kummerfeld

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

Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 4 guests