toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

internet connection prerequisite seems to be broken

Bună Ziua AI Gurus,

----- General Specs -----
* AI version: 7.5.2
* project type: Java
* launching generated bootstrapper on: Windows XP - SP3, Windows Installer v3.01.4001.5512

----- Project Specs -----
Prerequisites > "Launch Conditions" tab
* select check box "Run only if an active Internet connection is found"

Prerequisites > "Software Prerequisites" tab
* using the default Bootstrapper UI level - "Full UI"

Media > "Media" tab
* select radio button "Archive installation files into CAB files"
* select check box "Compress CAB files"
* select radio button "One CAB archive containing all the installation files"

Media > "Bootstrapper" tab
* select check box "Create EXE setup file"
* select radio button "Include install files in EXE"
* select radio button "Retrieve from on-line location"
* supply the correct URL from which the MSI will be downloaded

Themes > "Settings" tab
* using "Classic" theme

----- Steps To Reproduce -----
1) build the project
2) copy the generated MSI and CAB files to the correction location on the remote server (as specified earlier on the Bootstrapper page)
3) disconnect the network cable from my local machine, verify that I have no internet connectivity
4) run the EXE on my local machine

----- Result -----
I'm shown a message box that says:
"This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package."

----- Expected Result -----
I expect to see a message box with text from the "AI.LaunchCondition.Internet" dictionary property:
"[ProductName] requires an active Internet connection for installation. Please check your network configuration and proxy settings."

----- Log -----
The install log says:

=== Verbose logging started: 3/10/2010 14:20:08 Build type: SHIP UNICODE 3.01.4001.5512 Calling process: C:\windows\system32\msiexec.exe ===
MSI (c) (B4:44) [14:20:08:141]: Resetting cached policy values
MSI (c) (B4:44) [14:20:08:141]: Machine policy value 'Debug' is 0
MSI (c) (B4:44) [14:20:08:141]: ******* RunEngine:
******* Product: http://<SANITIZED-FOR-PRIVACY>/NoNetwork.msi
******* Action:
******* CommandLine: **********
MSI (c) (B4:44) [14:20:08:141]: File path is a URL. Downloading file. . .
MSI (c) (B4:44) [14:20:08:172]: MSI WinHttp: Proxy Settings Proxy: (none) | Bypass: (none) | AccessType: 0
MSI (c) (B4:44) [14:20:08:187]: Download of URL resource http://<SANITIZED-FOR-PRIVACY>/NoNetwork.msi failed with last error 12007
MSI (c) (B4:44) [14:20:08:187]: MainEngineThread is returning 2
=== Verbose logging stopped: 3/10/2010 14:20:08 ===

It seems like the bootstrapper just ignores the prerequisite and tries to download the MSI, which then fails. Is there an additional option / configuration somewhere that I am missing?

Thanks for your help!
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: internet connection prerequisite seems to be broken

Hi Todd,

Please make sure you have the "Check predefined launch conditions before searching for prerequisites" option checked from the Prerequisites page. This ensures your check for internet connection is done before attempting to download the prerequisite.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: internet connection prerequisite seems to be broken

Thanks for your reply, Gabriel.

I selected the "Check predefined launch conditions before searching for prerequisites" check box, rebuilt, and retested. I still encounter the same problem. Anything else I should try?

thanks for the help,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: internet connection prerequisite seems to be broken

Hello Todd,

Please send your .aip project file to support at advancedinstaller dot com along with a description of what you are trying to do, where it fails, and how to reproduce the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: internet connection prerequisite seems to be broken

I just emailed all of the requested info.

thanks,
-Todd
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: internet connection prerequisite seems to be broken

For the benefit of anyone else reading this thread, the AI team confirmed that there is indeed a bug, at least in AI v7.5.2

If your project does not have any Software Prerequisites, the bootstrapper ignores any configurations from the Software Prerequisites tab, including the "Check predefined launch conditions before searching for prerequisites" option.

A work-around is to add at least one Global Prerequisite to your project, which will trigger the bootstrapper to check the Launch Conditions before trying to download the MSI package. For example, I added a global prerequisite for Windows Installer 2.0, since it will be required anyhow to execute the downloaded MSI.
jasraj.bishnoi
Posts: 4
Joined: Tue Jul 07, 2015 11:12 am

Re: internet connection prerequisite seems to be broken

Same issue i'm facing in version 12.2.1 Trial. please check and reply.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: internet connection prerequisite seems to be broken

Hello and welcome to our forums,

I tested the scenario, but I cannot replicate the issue by using AI 12.2.1. Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”