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] >From: "konsu" <konsu@hotmail.com>
>References: <1072729249.62484@news.drenet.dnd.ca>
>Subject: Re: Debug mode for Installer custom action class
>Date: Mon, 29 Dec 2003 14:14:01 -0800
>Lines: 26
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#Dg3gklzDHA.2928@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.setup
>NNTP-Posting-Host: 131.107.3.86
>Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP09.phx.gbl
[quoted text, click to view] >Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.setup:6714
>X-Tomcat-NG: microsoft.public.dotnet.framework.setup
>
>i usually write my debug output in to a text file or use msgbox if my
custom
>action is a vbscript
>
>konstantin
>
>"boble" <boble@nospam.ca> wrote in message
>news:1072729249.62484@news.drenet.dnd.ca...
>> 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
>>
>>
>
>
>