Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Launch exe using Advanced Installer depending on platform

Hello,

I have 2 different .exe files built with Advanced Intaller: one for x86 platform and one for x64 platform.
I want to create wrapper exe file that decides which exe to launch (x64 or x86) depending on current platform and launches it.
Also wrapper exe should not be installed like a Program and should not be added to Programs and Features list.
Is it possible to implement with Advanced Intaller?

Looking forward to hearing from you.

Best regards,
Tanya
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Launch exe using Advanced Installer depending on platform

Hello Tanya,

You can achieve this by following the steps below:
- create a new project and uncheck the "Register product with Windows Installer" option from the "Product Details" page
- add your two EXE setup files as "feature-based" prerequisites in the "Prerequisites" page
- go to their "Install Conditions" tab and select the appropriate Windows versions for each of them
- also set the "Always install prerequisite" option for them
- build and run the project

Let me know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Re: Launch exe using Advanced Installer depending on platform

Hello Eusebiu,

Thank you for your reply.

Is it possible to process main installation without any user interaction? It just opens, selects .exe to launch, then closes immediatly after launching selected exe.

Best regards,
Tanya
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch exe using Advanced Installer depending on platform

Hello Tanya,
Is it possible to process main installation without any user interaction?
In order to achieve this, you can go to "Install Parameters" page and check the "Limit to basic user interface" option.

This way, the user will not have to go through the dialogs of your main installation. The setup will start and at the end, it will launch the prerequisite based on your condition(s).

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Re: Launch exe using Advanced Installer depending on platform

Hello Catalin,

Thank you for your reply.
That helped.

Best regards,
Tanya
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch exe using Advanced Installer depending on platform

You are always welcome, Tanya!

I am glad it helped.

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

Return to “Building Installers”