Monday, June 28, 2010

Attaching the debugger to a custom action in web setup/installer using Visual Studio

I wanted to debug the custom installer I had created when running the web setup installer in Visual Studio.


Finally after some searching through google, I found out how to do it.


First of all, in order to get it running correctly, open the VS in Administrator mode.


Then add 
Debugger.Launch() just before the line where you want to debug.


Then build and right click -> Install on the installer project.


It will get to the point where you have hit debugger.launch() and pop up a message to select the debugger instance to be used.

No comments:

Post a Comment