How to run exe from package before install - Advanced Installer Community

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!

eProc
Posts: 6
Joined: Tue May 03, 2011 12:39 pm

How to run exe from package before install

Hi,

How can I run an exe included in the installation package BEFORE install/uninstall/upgrade any of the files in the package?

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to run exe from package before install

Hello and welcome to the Advanced Installer Forums,

You can add your .EXE as an "Attached Custom Action" scheduled before the InstallInitialize or after the InstallFinalize standard action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eProc
Posts: 6
Joined: Tue May 03, 2011 12:39 pm

Re: How to run exe from package before install

Hi,

I appreciate your help. :D
As this is my first time, it took some time to locate, but eventually, here is the step-by-step of what I did:

1. Click 'Custom Actions'
2. right-click 'InstallExecuteSequence' and select 'Show standard action > before initialization > Begin'
3. right-click 'Begin' and select 'Add Predefined Custom Action > Launch File Or Open URL'
4. In the source path enter the full path and file you want to run.

Now, this file will execute BEFORE install / uninstall / upgrade process.

Again, thanks for the help.

Return to “Common Problems”