chriserickson
Posts: 8
Joined: Tue Apr 17, 2012 9:26 pm

Custom actions - order in install vs. uninstall

I have some custom actions which run the .NET Dll installation actions (dotNetCutAct).

During install, I have had to move them to after the 'FinishExecution' stage so that they don't try to run when the files are not there yet.
However, during install they also run at the end, after the fiels are gone so there are errors due to them not being there.

I tried moving them up in the uninstall but that moves them for the install as well.

I'm sure this is simple, but I don't knwo how to fix it...
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom actions - order in install vs. uninstall

Hello,

If you need to condition the custom action's execution, you can do so from the "Execution Stage Condition" group in the right pane.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chriserickson
Posts: 8
Joined: Tue Apr 17, 2012 9:26 pm

Re: Custom actions - order in install vs. uninstall

So, does that mean I need two sets of the conditions, one for install and one for uninstall?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom actions - order in install vs. uninstall

A custom action's condition will determine when it'll be executed (install, uninstall, etc.). For more information, please follow the link from my last post (blue text).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”