If you’re using the Installer class and either InstallUtil or calling the helper methods directly, you might want to attach the debugger to actually track down problems with the code. One simple line:
System.Diagnostics.Debugger.Launch();will then launch a prompt to pick a debugger to step into the problem code.