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

Launch Conditions: Internet connection

Wed Nov 22, 2023 12:39 pm

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: 6506
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions: Internet connection

Wed Nov 22, 2023 3:17 pm

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

EmmyAuer
Posts: 4
Joined: Fri Dec 15, 2023 11:38 am

Re: Launch Conditions: Internet connection

Mon Dec 18, 2023 7:32 am

I am facing the same issue, and I will try as you explained. I hope it will resolve my issue and if not then I will ask you.

Catalin
Posts: 6506
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions: Internet connection

Wed Dec 20, 2023 9:24 am

Hello and welcome to our forums,

Sure thing.

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

EmmyAuer
Posts: 4
Joined: Fri Dec 15, 2023 11:38 am

Re: Launch Conditions: Internet connection

Mon Jan 15, 2024 9:19 am

My issue is resolved, thank you. You made my day.
Last edited by EmmyAuer on Fri Feb 09, 2024 11:55 am, edited 2 times in total.

Catalin
Posts: 6506
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch Conditions: Internet connection

Mon Jan 15, 2024 2:07 pm

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”