A common requirement is to create an internet release with a small initial size. Let’s look at how to do that.
We will use a Basic MSI project that has the following Features and Components:
In this project, we have 6 Features and 8 Components.
In order to create a web release with a small Setup.exe, let’s go to the Release Wizard. The main things we can do to create a small Setup.exe is to:
- Choose one .cab file per component. We could choose one .cab per feature, but that would make the .cab files larger.
- Download prerequisites from the web. We don’t want them compressed into Setup.exe, because that will make a large file.
To create our Release, let’s look at the pertinent panels in the Release Wizard.
On the Media Type panel, we need to select the Web type.
On the Web Type panel, we want to choose Install from the Web.
On the Install from the Web Options panel, we want to choose One .cab per component. This will result in the smallest size .cab files.
On the InstallShield Prerequisites panel, we want to choose Download prerequistes from the Web. This will result in the prerequisites not being compressed or placed in the Release image.
After the Release has been built, we can look in the Release folder, and we see that Setup.exe is very small, only 1.4 MB. When you put the link to that Setup.exe on a web page, and the user clicks on it, it will be downloaded to the user’s machine. That will not take very long.
Next, the user will run the installation, the prerequisites will be downloaded and installed, and then the main product will be installed.
Remember this the next time you want a small-size Setup.exe (web release) for your customers to download.