wireguard.exe no MessageBox option?

Jason A. Donenfeld Jason at zx2c4.com
Mon May 17 15:07:12 UTC 2021

Hi Andrew,

It's a bit tricky, because UI apps are treated differently than
console apps: cmd.exe won't wait for them to complete, and they get
empty stdio handles. But I've used the latter property to detect
what's up and hopefully achieve some kind of compromise. Let me know
if this commit does the trick:


Basically, if stderr is available, logs go there. Otherwise if stdout
is available, logs go there. Otherwise errors show in a message box.

So this should allow you to do things like:

wireguard /installtunnelservice ... 2>C:\path\to\log.txt


More information about the WireGuard mailing list