Saturday, September 17, 2011

How to debug InstallerClass

 

In the Setup project of VS.NET, you can write a InstallerClass and attach that to the Custom Action of the Setup project to do some custom steps like checking certain services, copying special files etc.

To debug this InstallerClass, just insert below line of code at the location you wish to set the break point.

System.Diagnostics.Debugger.Break();

When running your installer, Windows Installer will understand that’s a user defined breakpoint and let you chose to debug the program. See screen shots below.

After that, you can just press F10 to step through your code.

image

image

How to check the physical path of Enterprise Manager for WCF AgilePoint Server

 

1. In AgilePoint Server Manager, check what is the web site associate with Enterprise Manager. In this case, the web site is call AgilePoint. Take note of the value of virtual directory. In this case, it is EM4.

 clip_image001

2. Go to IIS Manager, right click on ‘AgilePoint’ site > Manage Web Site > Advance Setting, check the value for Physical Path. In this case, it is C:\Program Files\AgilePoint. So, the physical path for Enterprise Manager virtual directory is C:\Program Files\AgilePoint\EM4

clip_image002