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

How to launch Application after installation for selected builds only?

Mon Jul 05, 2021 8:09 am

My application has app-64 and app-32 folders. App .exe is placed inside app-64 and app-32 folders. Depending on Windows configuration one of these folders is unpacked and installed.
Also, I have 4 different builds with different install conditions.
My question is: how to launch the application after its installation for certain builds only?
I found a checkmark "Launch application at the end of installation" in User Interface -> Dialogs -> First Time Install -> Exit Dialog. But:
1) It requires .exe. And I have my .exe files in app-64 and app-32 folders. I need to select the correct one depending on the platform.
2) I need it for certain builds only.
How can I achieve this?

Looking forward to hearing from you.

Best regards,
Tanya

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

Re: How to launch Application after installation for selected builds only?

Tue Jul 06, 2021 10:11 am

Hello Tanya,

The easiest way to achieve this is to go in the "Custom Actions" page and add two "Launch file" custom actions as deferred (one for 32-bit and another for 64-bit), then set the appropriate conditions for them.

The 32-bit custom action can look as in the example below:
  • File to launch: [#MyApp.exe] (right-click and use the "File..." option to select the desired file)
    Condition: NOT VersionNT64 AND (AI_BUILD_NAME = "Build1" OR AI_BUILD_NAME = "Build2")
Let me know if you have other questions.

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: How to launch Application after installation for selected builds only?

Tue Jul 06, 2021 10:36 am

Thank you for your answer! Will do it this way.

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

Re: How to launch Application after installation for selected builds only?

Tue Jul 06, 2021 10:47 am

You're welcome, Tanya. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”