Saturday, October 2, 2010

Debug installer

Today I had troubles to create a breakpoint in my installer class. Installer class is in a class library.
There is a Install method where I was expecting to receive CustomActionData from my setup.exe application.
I was uphappy while I wasn't able to create working breakpoint.
Now it works. Here is the code:
        public override void Install(System.Collections.IDictionary stateSaver)
        {
             base.Install(stateSaver);
            MessageBox.Show("test9");
            Debugger.Launch();
        }

I was trying to attach to working process without success.
Was trying to use System.Diagnostics.Debugger.Break again without results.
Suggestion to use Debugger.Launch() I have found here:
http://stackoverflow.com/questions/2474739/system-diagnostics-debugger-debug-stopped-working

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home