Launch file after install (for new install only) - Advanced Installer Community
beatfarm
Posts: 3
Joined: Tue Jan 27, 2026 3:39 pm

Launch file after install (for new install only)

How to launch an exe after install for new installs only? For major upgrades it should be skipped.
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Launch file after install (for new install only)

Hello,

In order to achieve that, we can have a condition set for our "Launch File" custom action that will only execute it during first time installs.

First of all, please note that this is possible through the Dialog Editor feature, which is available starting with the Enterprise edition.

Here's the step by step:

- go to "Custom Actions" page

- click "New Custom Action" (in the ribbon)
Screenshot_191.png
Screenshot_191.png (9.38 KiB) Viewed 222 times
- select "Launch File" from the list and add it "Unsequenced" (so we can schedule it on a dialog event)
Screenshot_192.png
Screenshot_192.png (15.96 KiB) Viewed 222 times

- choose your app to be launched in the "File to launch" field by adding "[" and then selecting "File"

- go to the "Dialogs" page and select the "ExitDlg" dialog

- select the "Finish" button --> "Published Events" --> "New"
Screenshot_193.png
Screenshot_193.png (11.61 KiB) Viewed 222 times

The condition is NOT OLDPRODUCTS so that the custom action is not executed during an upgrade, but only during the first time install.

Hope this helps!

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

Return to “Common Problems”