Loading ...

How to debug a custom action in a web deployment project MSI in Visual Studio 2010 | CodeAsp.Net

How to debug a custom action in a web deployment project MSI in Visual Studio 2010

 /5
0 (0votes)

How to debug custom actions in a web deployment project MSI in Visual Studio 2010

To debug a Web Deployment Project, just place Debugger.Launch(); statement in the appropriate custom action override method. For example:

public override void Install(System.Collections.IDictionary stateSaver)
{
Debugger.Launch();
base.Install(stateSaver);

After adding this, just right click the VS Web Deployment Projetc and select Install (after re-building the project). You will notice the debugger will become active once you have passed the first screens of the installer MSI.

Comments (no comments yet)

Top Posts