WiX 3.8 - Debug Custom Burn Bootstrapper
Asked Answered
T

1

5

Can Anyone point out the steps involved in debugging a WiX Custom Burn Bootstrapper ?

I have my MSI working clean. But when I use it with Burn bootstrapper, the custom actions defer and create problems. I want to just debug my bootstrapper with VS2012.

Thaddeus answered 14/1, 2014 at 15:36 Comment(1)
possible duplicate of How to debug custom bootstrap application?Oriflamme
G
8

Rob Mensching describes the proper way in this answer.

Alternatively, you could use the following:

  • The bootstrapper creates logs in your user's temp directory, ex: C:\Users\[username]\AppData\Local\Temp

  • Run your boostrapper and attach the debugger to your setup.exe.

  • Call Debugger.Launch() (from the System.Diagnostics namespace) in your code to launch your debugger during runtime.

Glorious answered 14/1, 2014 at 15:41 Comment(3)
Note: The last option, Debugger.Launch() can be used if your bootstrapper was written using managed code.Glorious
For managed bootstrapper applications, @RobMensching explained another way of automatically attaching the debugger.Roney
Thanks @CodeFox, that link is helpful. That is much nicer than adding Debugger.Launch() statements in the code.Glorious

© 2022 - 2024 — McMap. All rights reserved.