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.

jero2rome
  • 1,548
  • 1
  • 21
  • 39
  • possible duplicate of [How to debug custom bootstrap application?](http://stackoverflow.com/questions/11001980/how-to-debug-custom-bootstrap-application) – Lynn Crumbling May 20 '15 at 15:19

1 Answers1

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.

Community
  • 1
  • 1
BryanJ
  • 8,485
  • 1
  • 42
  • 61
  • Note: The last option, Debugger.Launch() can be used if your bootstrapper was written using managed code. – BryanJ Jan 14 '14 at 15:44
  • 3
    For managed bootstrapper applications, @RobMensching explained [another way](http://stackoverflow.com/a/15913760/1811525) of automatically attaching the debugger. – CodeFox Apr 24 '14 at 08:45
  • Thanks @CodeFox, that link is helpful. That is much nicer than adding Debugger.Launch() statements in the code. – BryanJ Apr 24 '14 at 13:03