FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9b2ccd29 authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Add eventLog to WpkgInstaller service

parent 144f44ab
No related branches found
No related tags found
No related merge requests found
......@@ -28,13 +28,23 @@
/// </summary>
private void InitializeComponent()
{
this.eventLog = new System.Diagnostics.EventLog();
((System.ComponentModel.ISupportInitialize)(this.eventLog)).BeginInit();
//
// eventLog
//
this.eventLog.MachineName = ".eventLog";
this.eventLog.EntryWritten += new System.Diagnostics.EntryWrittenEventHandler(this.eventLog_EntryWritten);
//
// WpkgInstaller
//
this.ServiceName = "Service1";
((System.ComponentModel.ISupportInitialize)(this.eventLog)).EndInit();
}
#endregion
private System.Diagnostics.EventLog eventLog;
}
}
......@@ -56,5 +56,10 @@ namespace WpkgInstaller
serviceStatus.dwCurrentState = ServiceState.SERVICE_STOPPED;
SetServiceStatus(this.ServiceHandle, ref serviceStatus);
}
private void eventLog_EntryWritten(object sender, System.Diagnostics.EntryWrittenEventArgs e)
{
}
}
}
......@@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="eventLog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment