We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

How to launch executable after installation in 32bits/64bits projects

Hello..

I saw the option to launch the executable after installation, but, when I click on the checkbox, I have to select the executable. How can I do it for a project that has 32 bits and 64 bits executables? I need to lanch the executable depending on the architecture.

Regards
Jaime
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to launch executable after installation in 32bits/64bits projects

Hi Jaime,

In this case you should launch the file at the end of the installation process using the predefined launch file custom action. You can add two custom action for each of your .EXE file. Also, condition the execution of each custom action using the VersionNT64 property.

To launch a file at the end of the installation process, please follow the steps from the How to launch a file after an installation? article.

The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.

Let me know if you have any questions.

Best regards,
Dan
Attachments
Mixed project - launch file at the end of the setup.zip
(4.24 KiB) Downloaded 299 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

Re: How to launch executable after installation in 32bits/64bits projects

Hi Dan,

Unfortunately I could not open the sample project since it was made in version 12.8 and my company has version 12.1.

But never mind, I will ask you another question here: how can add the condition that the file is lanuched only if user clicks on "Launch application at the end of installation"? That checkbox has the property name RUNAPPLICATION, but I could not find it in the Properties dialog in the conditions dialog box.

Regards
Jaime
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to launch executable after installation in 32bits/64bits projects

Hi Jaime,

If you want to let the user decide whether or not the custom action should run (to launch the file or not), you can follow the steps from the 2.2 part in the How to launch a file after an installation? article.
Unfortunately I could not open the sample project since it was made in version 12.8 and my company has version 12.1.
Please note that you can install Advanced Installer in trial mode so you can be able to open the sample project.

Let me know if you have any questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”