Search code examples
nsis

Determine on nsis if internet connection is available


How can I determine if is there available internet connection on my NSIS function?

I saw Intec plugin but I didn't find how to do that

Thanks.


Solution

  • You should use Dailer plugin for that.

    Try this:

    Dialer::GetConnectedState
    Pop $1
    

    if there is internet connection, $1 will be online either, it will be offline

    Read more on: http://nsis.sourceforge.net/Docs/Dialer/Dialer.txt