Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug VS2010 setup project?

How to debug VS2010 setup project? I tried attaching to msiexec.exe , but it didn't help.

like image 565
Bogdan Verbenets Avatar asked Jan 04 '11 17:01

Bogdan Verbenets


1 Answers

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.

like image 105
Barry Jones Avatar answered Oct 23 '22 01:10

Barry Jones