Simas
Posts: 3
Joined: Fri Sep 15, 2023 8:05 am

Launch Conditions: Internet connection

Hello,

It would be beneficial to know how advanced installer performs an internet connection check, when the [Run only if an active Internet connection is found] requirement is checked? Because I had some cases where Internet connection is active on a machine, there is no proxy, but the installer fails because it can't find an active Internet connection.

Error in Logs:
Doing action: LaunchConditions
Action start: LaunchConditions.
Product requires an active Internet connection for installation. Please check your network configuration and proxy settings
Action ended: LaunchConditions. Return value 3.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions: Internet connection

Hello,

For the predefined internet connection check we are using INetworkListManager::get_IsConnectedToInternet from INetworkListManager interface.


https://docs.microsoft.com/en-us/window ... istmanager


Here's how you could test this in PowerShell:

Code: Select all

$NetworkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID('DCB00C01-570F-4A9B-8D69-199FDBA5723B'))
$NetworkListManager.IsConnectedToInternet
Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions: Internet connection

Hello and welcome to our forums,

Sure thing.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions: Internet connection

You are always welcome, Emmy!

Really glad to hear I was able to assist. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”