Managed BA Commandline issue

I have a BootStrapper Setup.My requirement is to display the help text of the Bootstrapper in command line

So For eg: if I enter C:\bin\Debug>>BootstrapperSetup.exe -help and press enter my help text should be displayed .But as soon as I press enter I am getting the Commandline C:\bin\Debug>> without waiting for the help text to get displayed. It should wait for displaying the next command line until my out put is displayed.

In other words it should be

C:\bin\Debug>>BootstrapperSetup.exe -help

help text of exe

C:\bin\Debug>>

Can any one help me on this.Thanks

Upvotes: 0

Views: 118

Answers (1)

Sean Hall
Sean Hall

Reputation: 7878

This is a classic Windows problem. An exe is either compiled as a command line application or a UI application. UI applications (e.g. WiX bootstrappers) cannot write to the console like that. If you run msiexec /? or mstsc /?, you'll see that core Windows applications have the same limitation.

Upvotes: 1

Related Questions