I was on vacation during that time in February, so I missed this thread until Jesper brought it to my attention privately.
I think this problem was a bug in DTF, #2710297 on SourceForge. The bug was that DTF CAs could fail to launch when a previous CA changed the working directory (because MSI recycles the CA process). In this case, the browse dialog in the C++ CA was changing the working directory of the process. Normally there would be some more messages in the log about the DTF CA failing to launch, except CAs cannot write to the log when called from a DoAction control event. Fortunately, I fixed that bug last week. Unfortunately, there wasn't a build published last week, I'm not sure why. Please try this week's WiX build 3.0.5203, it should be published later today. -Jason- -----Original Message----- From: jballe [mailto:j...@visionpeople.dk] Sent: Wednesday, February 25, 2009 11:37 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] CustomAction following specific CustomAction fails Both customactions are executed during UI for the mentioned buttons (browsefile and execute managed action) I publish the DoAction. The original problem was: In the UI the user can select to install a license file. I have a C++ customaction which opens the OpenFile dialog and sets it to a property. Later in the UI is invoked some managed CustomActions for IIS or MSMQ stuff depending on the user's selections. If the C++ customaction is run the next customaction (no matter which one) fails with the error code 2896 (Executing action xxx failed). If the C++ custom action is not run, it works as it is supposed to. I have created this small project with an almost empty managed action (it just opens a messagebox) and it is clear that if I select a file in the browsedialog action, the installer fails when the managed action should execute (but the messagebox is not displayed). The messagebox shows correctly if i open the browse dialog and not select a file (just canelling the dialog) or if I not press the browsefile button. John Nannenga wrote: > > Your CA isn't running because although you've defined the custom action > within Product.wxs you haven't scheduled it for execution (you have no > sequences defined which would invoke your CA). > > For example... > > . > . > . > <InstallExecuteSequence> > <Custom Action="TestManagedAction" > After="LaunchConditions">1</Custom> > </InstallExecuteSequence> > </Product> > </Wix> > > -----Original Message----- > From: jballe [mailto:j...@visionpeople.dk] > Sent: Wednesday, February 25, 2009 2:29 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] CustomAction following specific CustomAction > fails > > > Can I do anything to find out what is happening in this install project. I > guess the OpenDialog customaction seems okay, with the change Rob > suggested. > Yan, you had a good suggestion but it doesn't seems like the managed > action > is actually invoked. > > My guess is that it is related to the action invoking the managed action > (is > it the part called DTF?) but I do not have a clear understanding of what > is > going on. > Does it make sense to try some kind of weekly build pr anything? > Can I do anything to find out, ask anyone or can I do anything? > > Thank you! > > Kind regards, > Jesper > > > jballe wrote: >> >> >> I have created a small test project with only the parts related to this >> from >> my original project. >> It includes my c++ customaction and I think the smallest manged >> CustomAction >> possible: >> >> [CustomAction] >> public static ActionResult TestAction(Session session) >> { >> session.Log("Begin MyTestAction"); >> System.Windows.Forms.MessageBox.Show("Stop for debugging: >> MyManagedTestCA", Process.GetCurrentProcess().ProcessName); >> >> return ActionResult.Success; >> } >> >> I have included two custom dialogs. The one I use for my openfiledialog >> (jumping betweeen two identical dialogs to reflect the property change) >> and >> a dialog with a button to start the managed custom action. >> >> If I open my oopenfiledialog, selects a file and starts the custom action >> the managed custom action fails before showing the message box. >> If I don't open the dialog and - I just found out - if I open the dialog >> but >> don't select a file, the messagebox shows correctly. >> >> Does that make any kind of sense? I attach the solution and project >> including binaries (in all 1,32 MB): >> http://www.nabble.com/file/p21980336/TestProject.zip TestProject.zip >> >> I really appreciate your help. >> >> Kind regards >> Jesper >> >> > > -- > View this message in context: > http://n2.nabble.com/CustomAction-following-specific-CustomAction-fails-tp2292259p2382577.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/CustomAction-following-specific-CustomAction-fails-tp2292259p2388301.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users