How to debug and step through installer classes
I have finally figured out how to debug installer classes that are called by a custom action from a .NET deployment project. You simply need to put the following line at the point in your code that you would like to begin debugging:
Run the installer and once it hits that line (I put mine in the overridden Install() method), it will ask you if you would like to open a new debugger. Select Visual Studio, select the option to debug the Common Language Runtime (I deselected Native), hit Ok and now you will be able to step through your installer code, view local variables, etc. Very easy and very useful when attempting to debug installer code.