Bootstrapper with Online Location Retrieval Question - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Bootstrapper with Online Location Retrieval Question

We are planning on pushing lots of updates of our product and we always want the user to install the latest and greatest. We're trying to determine the best way to do this. Getting the latest setup.exe is not possible - but pulling the latest .msi and .cab is possible.

We are looking at the Bootstrapper's "Retrieve from on-line location" as a possible way to support this while "Create EXE setup file" is checked.

My preliminary tests indicate this is doable. I put the .msi and .cab file on the server. Most importantly my custom setup dialog activity is indeed stored in the .msi file and I see uploading a new .msi does indeed push the update for new installs.

My question centers around the setup.exe that is created. How generic is it? Can I use this across multiple versions of setup? New product code vs. same product code? Ideally setup.exe would just have the URL to where to pull the .msi and .cab and that's it. The .msi would then be in charge of the rest of the process.

In talking to Bogdan, he said different Product Version'ed setup.exe's with the same Product Code should not be distributed. Instead they should just be used for patch creation. In the following example each new version would result in a patch for existing customers.

1.0.1
1.0.2
1.0.3

While an old 1.0.1 install would pass through a 1.0.2 and 1.0.3 patch process as they're released, we don't want new customers to install 1.0.1 and then immediately have to patch to 1.0.3. Ideally the user would launch "setup.exe with online retrieval" and get 1.0.3 right from the start.

So my process would be as follows:
- Create build 1.0.1 with a setup101.exe product101.msi and product101.cab
- User is given setup101.exe and product101.msi and product101.cab are placed on server.
- User installs at SiteA
- A week goes by
- Create build 1.0.2 with a setup102.exe product102.msi and product102.cab
- Create a patch for 1.0.1 to 1.0.2 and deploy to patch server
- Replace product101.msi with product102.msi on server
- Replace product101.cab with product102.cab on server
- SiteA pulls the patch and updates itself to 1.0.2
- User then runs setup101.exe at SiteB, when it goes to pull the latest msi and cab it will get the 102 versions.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Bootstrapper with Online Location Retrieval Question

Hello,
We are planning on pushing lots of updates of our product and we always want the user to install the latest and greatest. We're trying to determine the best way to do this.
We have this predefined functionality implemented in Auto Updater application. You can build a sample project to see how it works using this tutorial.

The Bootstrapper is not generic and it is not necessary to use it in this case. Please have a look at the above and let us know if you have any questions.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Bootstrapper with Online Location Retrieval Question

I was up on the links you suggested. Here's what I learned today:

We had the idea of using the "Package->Retrieve from on-line location" feature in setup to always download the latest and greatest. Using this approach you would change the files on the server (v1.0 to v1.1) and any users running setup after that moment would be installing the latest-and-greatest bits. The problem is when you create the v1.1 patch for the v1.0 systems, those out-of-date systems will want to re-download the v1.0 setup files again to do the patch. But because you replaced the v1.0 original build with the new v1.1 build those system will be confused when they download the v1.1 build and it's not the expected v1.0 build. Given this, I wonder why this feature was ever intended to do.

As much as I dislike installing a product and then immediately having the product say, "there's an update!". It looks like that is exactly what we're stuck with.
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Bootstrapper with Online Location Retrieval Question

When using "Package->Retrieve from on-line location" and then doing a patch later... why does it pull down the original package?

Put another way, when using "Package->Retrieve from on-line location" why is the "Do not delete extracted MSI and CAB files" option not available?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Bootstrapper with Online Location Retrieval Question

Hello,
We had the idea of using the "Package->Retrieve from on-line location"
When this setting is used along with Include install files in EXE option, the build will generate the MSI file, the EXE bootstrapper (which contains the prerequisites if there are any) and a CAB file. The EXE bootstrapper will be distributed to the user and the MSI and CAB files will be placed on your server. When the user launches the EXE bootstrapper, the prerequisites are installed (if there are any) and the MSI and CAB files are retrieved from the server. This functionality was never intended for upgrading purposes.
The problem is when you create the v1.1 patch for the v1.0 systems, those out-of-date systems will want to re-download the v1.0 setup files again to do the patch.
This is one of the reasons why using the above method for updates instead of the standard one is not a good idea. The patch needs to have access to a cache of the original MSI and CAB files when it is applied.
As much as I dislike installing a product and then immediately having the product say, "there's an update!".
This completely depends on your client/server upgrade deployment strategy.
Put another way, when using "Package->Retrieve from on-line location" why is the "Do not delete extracted MSI and CAB files" option not available?
The "Do not delete extracted MSI and CAB files" option will allow your package to be repaired or modified if required by the user or by a patch. This option only has a purpose if the MSI is included in the EXE bootstrapper. In case your MSI and CAB files reside on-line, the patch mechanism will download them as well. This is also correlated with the problem you mentioned.

To better understand how you can organize your upgrades and overall upgrade strategy I recommend you carefully read this MSDN article.
The Auto Updater application simply reflects the definitions and functionality of the Windows Installer update process and it is the recommended generic way of managing online updates.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”