I already posted a related problem here:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-BA-command-line-not-effective-td7592884.html
and
http://stackoverflow.com/questions/21989084/wix-managed-ba-command-line-not-effective,
which is about command line passed during upgrade.

Now I tried to explore, how it interpret the command line. Here is my run
method to do so:

    protected override void Run()
    {
      string cmdOptions = string.Empty;
      this.Engine.Log(LogLevel.Verbose, "Launching custom TestBA UX");
    
       foreach (string cmdOpt in this.Command.GetCommandLineArgs())
       {
          cmdOptions += cmdOpt + "\n"; //collecting command line options
passed.
       }
                
    Debug.WriteLine("Command.Display: {0} Command.Action: {1}",
this.Command.Display.ToString(), this.Command.Action.ToString());
       Environment.Exit(1);
    }

I understand that Wixdba would digest its own command line options and would
pass extra to our Managed Bootstrapper Application. From above mentioned
post, this line from log:

    [1A44:1E54][2014-02-24T17:47:22]i301: Applying execute package:
{f1d57671-5e3d-4be7-908f-5a47e72737d9}, action: Uninstall, path:
C:\ProgramData\Package
Cache\{f1d57671-5e3d-4be7-908f-5a47e72737d9}\BootstrapperSetup.exe,
arguments: '"C:\ProgramData\Package
Cache\{f1d57671-5e3d-4be7-908f-5a47e72737d9}\BootstrapperSetup.exe"
-uninstall -quiet -burn.related.upgrade'

shows that it is passing -uninstall and -quiet to BootstrapperSetup.exe
which is in cache i.e. already installed there.

Here are the results of command line options passed to Bootstrapper:

/C:\bin\Debug>BootstrapperSetup.exe -quite -uninstall/
*Command.Display: Full,  Command.Action: Uninstall * 

/C:\bin\Debug>>BootstrapperSetup.exe -q -uninstall/
*Command.Display: None  Command.Action: Uninstall*

/C:\bin\Debug>>BootstrapperSetup.exe -q -u/
*Command.Display: None  Command.Action: Install*


*Summary:* From above test, it seems that 

 1. -quite is not effective, while -q does.
 2. -u is not effective, while -Uninstall does.

Although, after knowing this, I can parse for -quite and -u in my Managed
Bootstrapper, but I would like to know, *If it is a Bug or I'm doing
something wrong here*.

Best regards



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Is-this-a-Bug-in-Wix-Bootstrapper-command-line-tp7592912.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to