[wix-users] Burn Bootstrapper Console Output

Artur Ampilogov a-artur at yandex.ru
Thu Dec 21 08:20:50 PST 2017


Hi,

I want to show help page when the bundle runs with `/?` or `-?` argument. 
Burn passes LaunchAction.Help to the LaunchAction property, which is great.

The problem is to write the message to the console when a user runs the setup.exe in the silent mode, e.g. `setup.exe -q’. Silent mode actually runs out immediately, i.e. returns console command and runs setup in the background process. It’s possible to run ‘start /wait setup.exe -q` without immediate return.

Two answers are mentioned about these feature:
http://lists.wixtoolset.org/pipermail/wix-users-wixtoolset.org/2015-November/000861.html
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-Console-Output-td7585792.html


At the same time it is possible to attach .NET managed app to the parent console window via AttachConsole(-1).
Example: https://stackoverflow.com/questions/807998/how-do-i-create-a-c-sharp-app-that-decides-itself-whether-to-show-as-a-console-o
Burn setup.exe is a special project and I cannot attach to the window or path the handle of the new console back to burn, then write to it.


Is there any other convenient way to show the users in quite mode possible arguments, maybe even log output to stdout?

Thanks,
Artur


More information about the wix-users mailing list