Welcome to MSDN Blogs Sign in | Join | Help
Debugging Windows Installer (MSI) using Visual Studio 2005

I was struggling to debug my custom action class... Oh gush real pain How to debug this stuff..

i searched and got the simple way to debug Windows Installer (MSI) is to put below cool line in begining of your custom action class code

"Debugger.Break"   !!! and you are ready to go... 

Posted: Sunday, April 29, 2007 5:39 AM by piyushjain
Filed under:

Comments

Alegni said:

I know that you can set an environment variable on the cmd line equal to name of a custom action inside your msi package.  Once the Msi starts running and it reaches that custom action, it breaks into your registered debugger.  I have been looking for the name of this environment variable, but I can't find it anywhere in the MSDN library..

# August 26, 2007 11:04 PM

Alegni said:

I found it!

set MsiBreak=<name of your custom action>

# August 26, 2007 11:14 PM
Anonymous comments are disabled
Page view tracker