Re: [WiX-users] How to debug CustomAction DLL

2010-09-06 Thread Rob Mensching
I like to use the AssertSz(FALSE, "debug XxxCA here"); from dutil.h. The resulting dialog gives lots of information to make it easy to attach. On Wed, Aug 25, 2010 at 2:00 PM, gapearce wrote: > > I found it pretty easy and straightforward using VS2008 to attach to a > setup > program awaiting us

Re: [WiX-users] How to debug CustomAction DLL

2010-08-25 Thread gapearce
I found it pretty easy and straightforward using VS2008 to attach to a setup program awaiting user input from a message box. It was very easy... This MSND article touches on it - http://msdn.microsoft.com/en-us/library/aa368264%28VS.85%29.aspx - just attach to the process that has your message

Re: [WiX-users] How to debug CustomAction DLL

2010-08-25 Thread jhennessey
I set the environment variable MsiBreak for native code ( http://msdn.microsoft.com/en-us/library/aa368264%28VS.85%29.aspx http://msdn.microsoft.com/en-us/library/aa368264%28VS.85%29.aspx ) and MMsiBreak for managed code ( http://blog.torresdal.net/2008/10/26/WiXAndDTFDebugAManagedCustomActionAndH

Re: [WiX-users] How to debug CustomAction DLL

2010-08-25 Thread Wilson, Phil
ssage- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, August 24, 2010 5:13 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to debug CustomAction DLL I think I recall you sometimes have to reboot and/or restart the Ms

Re: [WiX-users] How to debug CustomAction DLL

2010-08-25 Thread dB .
If you're developing a custom action (or many), you might save yourself a lot of time in the future by investing a bit upfront into unit testing your CA. This would allow you to invoke it from CPPUNIT, assert conditions, and obvious debug it without message boxes. There's a post about the appro

Re: [WiX-users] How to debug CustomAction DLL

2010-08-24 Thread Christopher Painter
g intitial development and almost never need to debug a custom action later in it's life cycle.   - Original Message From: Tony Juricic To: General discussion for Windows Installer XML toolset. Sent: Tue, August 24, 2010 5:00:47 PM Subject: Re: [WiX-users] How to debug CustomActio

Re: [WiX-users] How to debug CustomAction DLL

2010-08-24 Thread Tony Juricic
Good ole' MessageBox is the most reliable way to debug C/C++ CAs that I found. You may be able to set the breakpoint after the MessageBox and then attach to the running msiexec process. -Original Message- From: little.forest [mailto:little.for...@ymail.com] Sent: Tuesday, August 24, 20