Well, duhh. I' m not sure what I was expecting, but of course, scheduling the CA causes it to run, which sets the property, and then the UnitTest sees the match and it passes. It's kind of a lot of work to hack up a test MSI, but there was (of course) no change the CA being tested. And, I think my WIX modularization is better now because it supports both production and test MSI files. Thanks, it works. - Gary
---------------------------------------- From: John Cooper <jocoo...@jackhenry.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Date: Wed, 26 Oct 2011 15:25:43 -0500 Does the CA even run? You probably need to schedule it in InstallExecuteSequence. New to Lux myself, but I don't think Lux starts/stops the CA's by itself. -- John M. Cooper -----Original Message----- From: Gary Gocek [mailto:g...@gocek.org] Sent: Wednesday, October 26, 2011 2:48 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Lux unit test does not call my CA I'm having trouble with my first attempt at unit-testing custom actions with Lux. In a fragment in "properties.wxs", <Property Id="BAR_PROP" Value="???" Secure="yes" /> In a fragment in "CustomActions.wxs", I have Binary and CustomAction elements to configure "FooMethod" as immediate. In the C# code for custom action "FooMethod", session["BAR_PROP"] = "zed"; In a fragment in "test.wxs" (I tried this with and without a Condition), <lux:UnitTest CustomAction="FooMethod" Property="BAR_PROP" Value="zed" Operator="equal"> <lux:Condition>1</lux:Condition> </lux:UnitTest> When I run the test with msiexec or nit, I get: Test <id> failed. Property 'BAR_PROP' expected value 'zed' but actual value was '???'. As far as I can tell from the MSI log, FooMethod is not actually invoked. But, BAR_PROP is not blank, so it's getting set from properties.wxs, and I'm getting a message from the UnitTest, so I must be close. Shouldn't the UnitTest element cause FooMethod to be called? This particular method is normally invoked in InstallUISequence, but for the test MSI, I don't specify the InstallUISequence element. I can see FooMethod in the CustomAction table with Orca. The MSI looks OK, but the CA does not appear to execute. What else do I look for? Thanks, Gary ---------------------------------------------------------------------------- -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ---------------------------------------------------------------------------- -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users