How to debug VS2010 setup project?

后端 未结 2 994
死守一世寂寞
死守一世寂寞 2021-02-14 09:56

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

2条回答
  •  有刺的猬
    2021-02-14 10:50

    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.

提交回复
热议问题