all groups > dotnet setup > december 2003 >
You're in the

dotnet setup

group:

Debug mode for Installer custom action class


Re: Debug mode for Installer custom action class konsu
12/29/2003 2:14:01 PM
dotnet setup: i usually write my debug output in to a text file or use msgbox if my custom
action is a vbscript

konstantin

[quoted text, click to view]

Debug mode for Installer custom action class boble
12/29/2003 3:24:49 PM
Hi All,

Sure I'm missing something but I can not find legal a way to debug an
installer custom action class. When I'm running setup my action is executed,
but how to put a breakpoint in it?
Of course, I can emulate a call to
public override void Install(IDictionary stateSaver)

and other methods, but is there a better way?


Thanks in advance,

Boris

Re: Debug mode for Installer custom action class PatBak NO[at]SPAM online.microsoft.com
1/1/2004 12:19:56 AM
Here is one method:
1. Put a msgbox at the begining of your custom action.
2. Launch your MSI and wait until the msgbox is triggered.
3. Open your Custom Action Project in Visual Studio
4. Attach to the MSIEXEC process which is running your custom action (there
are a couple running. Check the Tilte for your custom action)
5. Set your break points
5. Click Ok to dismiss the msgbox.

Patrick Baker - Visual Basic/Deployment Quality Assurance Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
[quoted text, click to view]
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP09.phx.gbl
[quoted text, click to view]
AddThis Social Bookmark Button