I am using WixStdBA in Wix 3.8 with a BAFunction.DLL (which is similar to using the Extended BA in Wix 3.7).
In the BAFunction DLL (under a debugger) I can use this-> to access member variables including this->pEngine. But I am trying to drill down and check what was passed in on the command line. The debugger shows my test string in m_pEngineState.command.wzCommandLine. So the tree in the debugger is: this m_pEngine [CEngineForApplication] m_pEngineState command wzCommandLine "Var=Test" My hope was to be able to detect this command line value in OnStart or OnDetect. Any ideas on how to do this? Declaring a variable in the wxs file as Overridable is not detected until OnDetectComplete, so I was hoping for earlier detection to alter my configuration tests which are implemented in OnDetect. Any thoughts are appreciated. My backup plan is to use the registry rather than a command line switch, which should work. The higher level problem is that sometimes this bundle will be deployed as a product and sometimes it will be deployed as a child of another non-Wix configuration process, and in that situation I need to signal to the bundle that it does not need to enforce business rules, which are necessary when deployed as a standalone product. I appreciate the assistance (and the added capability of the BAFunction.DLL in the Wix 3.8 tool set.) Phill -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/BAFunction-DLL-access-to-m-pEngineState-m-command-wzCommandLine-tp7588859.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users