The Engine.Command.Display object lets you know if your BA is running with or without a UI. see src\burn\inc\IBootstrapperApplicaiton.h near line 17 see src\burn\engine\core.cpp near line 854 An example in a managed BA is at: src\Setup\WixBA\WixBA.cs Run Method.
One approach is to use the Command.Display object to set the value of an Engine Variable (with the Overridable attribute set) to what you want used on the ExePackage InstallCommand="[myArgsStringVariable]" Not sure what kind of BA you are using, but you could also look at the ExecutePackageBeginEventArgs, ShouldExecute property in EventArgs.cs. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-pass-command-line-switch-to-exe-package-tp7600470p7600498.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users