Exe and MSI - Advanced Installer Community
KhMi
Posts: 5
Joined: Wed Jul 22, 2020 10:03 am

Exe and MSI

Hi,

I have 2 build configuration in my installer project, Default (EXE) and MSI configurations.

I wonder if it is possible to set it up in a way that:
* If the installation used was the EXE, some files will be downloaded from a link
* If the installation used was the MSI, those same files will be included in the package, therefore, no download is needed.

It should result into:
* the MSI inside the EXE should NOT contain the files
* while the standalone MSI contains the files, so that the files will be available for those who are behind some sort of an internet proxy.

Is there a way to do this inside a single installer project?

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

Re: Exe and MSI

Hello,

If I understand your scenario correctly, you want to download the files only if the setup used is of .EXE type. To do so, you can add a new "File Download" operation in the "Files and Folders" page and condition it as it follows:

Code: Select all

SETUPEXEDIR
THe above property is a property that is set only when a .EXE setup is used, therefore the operation should only run when the .EXE setup is ran.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
KhMi
Posts: 5
Joined: Wed Jul 22, 2020 10:03 am

Re: Exe and MSI

Hi,

Thanks for the reply!

Is there also a way to differentiate between MSI build configurations? For example, if I have 3 build configurations:
* BuildExe
* BuildMSI_Download
* BuildMSI_ContainsFiles

With the the configurations, only the 3rd configuration will contain the files and the above two should still download the needed files.

Kind Regards,
Khalid
KhMi
Posts: 5
Joined: Wed Jul 22, 2020 10:03 am

Re: Exe and MSI

Hi,

To further clarify:

The BuildExe and BuildMSI_Download build configurations does not have a copy of the files, but instead, needs to download it from a server.

While BuildMSI_ContainsFiles contains (within the package) those files, and therefor, no longer need to download them.


QUESTION: Is there a way to configure a project so that one msi installer contains 50% files and 50% downloaded during installation, while the other msi contains 100% of the files? Resulting to one msi "doubly" bigger than the other?

Kind Regards,
Khalid
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Exe and MSI

Hello,

First of all, please accept my apologies for such a delayed reply (I was off for a week).

In what regards your question, unfortunately it is not possible to "distinguish" between two .MSI packages.

However, here is how we can proceed.

We can add, in the MSI build where you want to download the files, a dummy feature that will condition the execution of the "File download" operation. We can then include this feature only in the build that will need to download the resources.

feat1.png
feat1.png (50.09 KiB) Viewed 3963 times
feat2.png
feat2.png (74.19 KiB) Viewed 3963 times
condition.png
condition.png (102.1 KiB) Viewed 3963 times

Basically, the operation should only be executed if the feature is to be installed. Since the feature will exist in only one build, then the operation will only execute in that build.

Hope this will help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
KhMi
Posts: 5
Joined: Wed Jul 22, 2020 10:03 am

Re: Exe and MSI

Hi Catalin,

Thanks a lot, We have already arrived in the same conclusion and is in the process of integrating it to our solution.

By confirming that we are in the correct track boosts our confidence to continue, thanks :D

Kind Regards,
Khalid
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Exe and MSI

You are always welcome, Khalid!

I am glad I was able to help. :D

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

Return to “Common Problems”