xnejx
Posts: 18
Joined: Sun Sep 19, 2010 6:10 pm

How to download the files that need to be extracted?

Hi,

Is there a way to download the files that need to be installed instead of including them in the .msi or .exe file? The problem that I am facing is distributing the file to affiliates and other download sites which makes the content of the installer a bit hard to maintain.

I would love if there was a way for the installer to fetch the compressed cab file with all the latest files and folders that need to be extracted in the installation folder. Is there something like that than can be done without having a separate .msi that does that? I am familiar with creating the exe which fetches the .msi from a remote location but that is not what I would like. I would like to download a cab | zip | tar | rar file in the same way as a prerequisite and extract it to the installation location.

I hope that a solution for this already exists, but If the only way to do this is a custom action, I would love to hear how this is done and how a custom action can control the progress bar and status text so it may indicate some progress while downloading and extracting.

[Advanced Installer 7.7 - Enterprise]
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to download the files that need to be extracted?

Hello,

What you seek is called a web based install. The link describes the steps necessary to configure such an install type.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
xnejx
Posts: 18
Joined: Sun Sep 19, 2010 6:10 pm

Re: How to download the files that need to be extracted?

Thank you for your reply but I would like to do it in a different way. I don’t want my installer (MSI) to be downloaded from a remote location by using a preloading event of windows installer.

I would like to distribute the installer as it is, but only when the real process of installation starts (just after installing prerequisites), then the installer should retrieve the cab files with a progress bar and extract them into the installation folder. So only the cab file would be remote, not the msi or the exe. Is that possible?

Thank you for your help,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to download the files that need to be extracted?

Hi,

I'm afraid that this is not supported by Windows Installer. The MSI must be downloaded from the start because it contains the installation UI. CABs are downloaded automatically when the installation starts based on what will be installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xnejx
Posts: 18
Joined: Sun Sep 19, 2010 6:10 pm

Re: How to download the files that need to be extracted?

Hi,
I really appreciate your help, but I would really like to get a solution which involves us not being forced to using a Web Install (The windows installer preload takes too long as we need to download 100MB and it doesn’t look good). All I need to retrieve from our server is the CAB files. The .msi is distributed without an EXE that would retrieve an .msi from the server.

I don't really understand by what you mean "CABs are downloaded automatically when the installation starts based on what will be installed." Can you please explain how do I achieve this and set the URL of the cab files?

Our installer will not change, only the content that needs extraction (CAB FILES). So all I am trying to do is not to include any files with the installer itself, so no cab files would be there initially in the .msi. They should be downloaded during the process of install (like adobe download manager, apple download manager,...) and then just extracted to the folder that the user has selected. Is this possible or do we need to switch to InstallShield in order to achieve this?

Alternative:
If not, is there a way to download a file through custom actions with VB and extract them to the install location? (While in installation progres). Is there a way for us to notify advanced installer that we are downloading / extracting / completing something by changing the percentage in the progress bar and the status text? Is thre such an API for that?


Image

Image

Image
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to download the files that need to be extracted?

Hi,
The windows installer preload takes too long as we need to download 100MB and it doesn’t look good). All I need to retrieve from our server is the CAB files. The .msi is distributed without an EXE that would retrieve an .msi from the server.
Our EXE bootstrapper shows progress when downloading a MSI, so the installation will not look frozen. You can enable the bootstrapper in Bootstrapper tab of "Media" page. During install, Windows Installer automatically downloads the required CAB files. They are downloaded after the "Install" button is pressed, not before starting the install.

When creating this type of packages the MSI should have the CABs outside and they all should be placed on the server. Your clients will receive only the EXE bootstrapper. During install, the following will happen:
- the EXE boostrapper downloads the MSI (since the CABs are outside, it's just a couple of megabytes)
- installation UI is shown and the user clicks install
- Windows Installer downloads required CABs and installs them
I don't really understand by what you mean "CABs are downloaded automatically when the installation starts based on what will be installed." Can you please explain how do I achieve this and set the URL of the cab files?
In Media tab from "Media" page you can select "Archive installation into CAB files" and "One CAB archive per feature". This way each feature will have its own CAB generated next to the MSI file. In "Bootstrapper" tab you can specify their URL by selecting "Retrieve from online location".
Our installer will not change, only the content that needs extraction (CAB FILES)
This is not supported by Windows Installer. All files from CABs are registered in the MSI. So when you want to add or remove files, you need to rebuild your project so the MSI is generated again.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ip2698
Posts: 1
Joined: Sun Jan 02, 2011 1:39 pm

Re: How to download the files that need to be extracted?

Hello Cosmin,
Our EXE bootstrapper shows progress when downloading a MSI, so the installation will not look frozen. You can enable the bootstrapper in Bootstrapper tab of "Media" page. During install, Windows Installer automatically downloads the required CAB files. They are downloaded after the "Install" button is pressed, not before starting the install.
I have configured our install exactly as you have indicated and it works perfectly with the user downloading EXE file which then starts of the install.

The only problem I have is that it does not display the progress of the download. The CAB file itself is about 100 Mb, so can be quite slow to download.

Any suggestions how I can keep the user more informed?

Thanks.
Yury
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to download the files that need to be extracted?

Hi Yury,

What Advanced Installer version are you using? Also, can you please send a link to the package to support at advancedinstaller dot com so we can test it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”