Launch Application on ExitDialog - Advanced Installer Community
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Launch Application on ExitDialog

Hello,

We have a build script that compiles command files and other AI command line commands to create installers of our app for different partners.

We're running into a problem where we can't specify a custom named executable per build in the Launch Application field in the Exit Dialog.

We'd like to accomplish this via the command line, just like we do everything else. We have a default 'template' AIP file that gets customized for each partner upon build. This is one part of the build process that we can't seem to customize via command line. Is there something we're missing?

If we can't find a way to do this via command line methods, we might try to parse the AIP file and make the necessary changes, but we'd like to stay away from that if possible.

Any help?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Launch Application on ExitDialog

Hi,

In order to achieve this you can follow the steps below:
- go on the "ExitDialog" dialog select the "Finish" button and write the [APPDIR][MYEXEPATH] properties in the "Application" field of the "Finish Actions" tab (the [MYEXEPATH] property will contain the path or the name to the EXE file that will be launched).

For each package that should launch an EXE file use the /SetProperty command line and set the [MYEXEPATH] property to the EXE file name like in the example below:
  • - if the EXE file is located in the APPDIR folder, use: /SetProperty MYEXEPATH="MyExeName.exe"
    - if the EXE file is located in a subfolder of the APPDIR folder, use: /SetProperty MYEXEPATH="Subfolder\MyExeName.exe"
Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Launch Application on ExitDialog

Awesome! I'll give this a try today.

Is this custom property behavior documented anywhere? This is the first I've seen this kind of behavior that can be achieved with custom properties. Can you point me to a documentation link?

thanks!
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Launch Application on ExitDialog

This worked wonderfully, btw.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Launch Application on ExitDialog

You're welcome. I'm glad it worked.

I'm afraid that there is not much documentation about this specific scenario, but as long as the "Launch Application" feature supports custom properties that contains the path to the application, you can set those properties to the appropriate values when the package is build or installed.

You can read the How do I launch a file after an installation article for more details.

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

Return to “Common Problems”