How to get the Application Directory Path in the Installer Class?

I had to create a Setup Project  to be able to deploy the our .Net Application to the SIT environment.  Had to decide between the Default Installer that comes with Visual Studio and the Install Shield Limited Edition, which also comes free with Visual Studio 2010. Personally I think Install Shield is better than the default Windows Setup Project that comes with Visual Studio, but for some reason I had to choose the Visual Studio Setup project . It’s a pretty good Setup Project and does meet your basic installation needs. It also lets you to extend its features  by exposing the Install events like BeforeInstall, AfterInstall etc. You can wire up your C# code to these events and customize your installation process.

You have the Install Class which you need to include in your Project (not the Setup Project) and write code to handle the Install Events.

I had a situation where I had to get the Assembly Path or the Path of the exe and was wondering how to get the Application path. I found out that you can get the Assembly Path by using the following statement.

this.Context.Parameters["assemblyPath"]