How to debug VS2010 setup project? I tried attaching to msiexec.exe , but it didn\'t help.
It appears that I need to halt my managed code so the process will appear in the debug window. It can be done by calling MessageBox.Show. After that the msiexec managed code entry appears in the processes and if I attach to it I will be able to debug my custom actions code.
I am assuming you want to debug a custom action in the installer. If so having the solution open while running the installer and have this line of code in one of the events.
System.Diagnostics.Debugger.Launch();
When prompted say yes to debug the installer and select the instance of Visual Studio with your project already loaded.