Page 1 of 1
Create EventLog EventSource
Posted: Wed Oct 24, 2007 12:50 pm
by kwalpurgis
Whats the best way to create an EventLog EventSource during the install?
Posted: Thu Oct 25, 2007 11:59 am
by Alex_Ronquillo
You can log the setup execution. For logged Execution, run your setup in the following way:
Posted: Thu Oct 25, 2007 1:16 pm
by kwalpurgis
I'm sorry, I was not clear with my original question.
Our application writes errors to the Event Log using a custom Event Source. We would like to create the Event Source during the installation.
In C# we do the following:
EventSourceCreationData data = new EventSourceCreationData (_source, appName);
EventLog.CreateEventSource(data);
Could I create a console app that does the above and call it from the install? Is there anything build into InstallAware?
thanks
Posted: Thu Oct 25, 2007 2:22 pm
by Alex_Ronquillo
You can create your application and run it in IA with the Run Program command.