PDA

View Full Version : Stop a CustomAction from running


tdexter
07-13-2007, 01:18 PM
I need to stop a CustomAction from running.

The background is a Standalone and Network install. If I check the button for a Standalone install there are 2 folders to install to, INSTALLDIR and CommonFilesFolder. If the Network button is pressed I would like the CommonFilesFolder folder to be the same as the INSTALLDIR.

From a previous post called, Adding a Root Level Folder, I set up a CustomAction to rename CommonFilesFolder to INSTALLDIR.

I just cannot seem to figure out how to stop the CustomAction from being executed if the Network button is pressed.

Lorne
07-13-2007, 01:30 PM
Use a condition on the custom action's component. I'm not sure on the details you're describing but it sounds like perhaps you could test whether CommonFilesFolder and INSTALLDIR are the same?

tdexter
07-13-2007, 02:24 PM
I made a mistake when setting up the CustomAction. Instead of the Scheduling being Immediate- First Sequence, I had it set as Immediate. So no matter what the CustomAction was run. So the new issue is trying to get the CustomAction to execute at all. I tried "DoAction" in the published events of a button, but no luck. I know I am missing something.