randallxski
Posts: 9
Joined: Mon Jun 13, 2011 2:25 pm

Install Custom Action Executing During Uninstall

I'm opening a message box from a Custom Action in the Install section of the InstallExecuteSequence. Unfortunately, this action is also running during the Uninstall. There are no Custom Actions defined for Uninstall, Rollback or Commit. It doesn't seem like an Install action should run during the Uninstall. How can I disable this action from running during the Uninstall?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install Custom Action Executing During Uninstall

Hi,

To run a custom action only during install you can set this condition for it:

Code: Select all

NOT Installed
A custom action condition can be set in the "Expression" field from "Execution Condition" group in Custom Action Properties pane.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
randallxski
Posts: 9
Joined: Mon Jun 13, 2011 2:25 pm

Re: Install Custom Action Executing During Uninstall

Thanks, Cosmin. I appreciate the help. That worked, although it's definitely not intuitive to configure!

Return to “Common Problems”