开发者

How to debug VS2010 setup project?

开发者 https://www.devze.com 2023-02-02 04:12 出处:网络
How to de开发者_开发百科bug VS2010 setup project? I tried attaching to msiexec.exe , but it didn\'t help.I am assuming you want to debug a custom action in the installer. If so having the solution ope

How to de开发者_开发百科bug VS2010 setup project? I tried attaching to msiexec.exe , but it didn't help.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消