einar
Posts: 8
Joined: Fri Aug 14, 2009 5:03 pm

.Net Custom Install Action Logging

Hi

I'm using a .Net custom install action and I want to produce some debugging output to the installation log (enabled by running the installer with /L* logfile) but my calls to this.Context.LogMessage do not result in any log message. The only thing, related to my custom action, I see in the log is: Action 15:19:17: dotNetCustAct.dll. Configuring components (my action text is "Configuring components").

Am I doing this wrong somehow or is it just not possible to use the Context.LogMessage? My .Net custom action is a class that inherits from System.Configuration.Install.Installer
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: .Net Custom Install Action Logging

Hello,

The installation log is meant for the main's installation debugging where your custom action gets called and executed. If you need to debug your .DLL custom action, you must do so by displaying messages from within its code, or by debugging it in the appropriate IDE.

Also, here is a thread on how to write an event in the log.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”