This is clearly another noob question, and I apologize in advance...(I looked
around for the answer, really, but I couldn't find any other dumb questions
like this)...

I'd like to execute a custom action when a dialog is entered.  My custom
action is a function in a DLL - to initialize a particular variable.  

Must I do this on a "control", like "next", on the previous dialog?  Or can
I cause it to get executed before the current dialog displays?

My custom action is (incorrectly) defined like this in a fragment/UI called
"MyAction":

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Fragment>
    <CustomAction Id="MyAction" BinaryKey="InstallDLL"
DllEntry="CheckMyAction"/>
    <UI>
      <Publish Dialog="MyDlg" Event="DoAction" Value="MyAction"
Order="1">1</Publish>
      <Dialog Id="MyDlg" Width="370" Height="270" Title="[ProductName]
Pre-Installation Requirements">
         <blah blah>

The compiler flags this as an error because it needs to be associated with a
control:
     "error CNDL0010: The Publish/@Control attribute was not found; it is
required."

What is the right way to do this?

Thanks ahead of time...


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Invoking-a-custom-action-on-entry-to-a-dialog-tp5210152p5210152.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to