mirror of https://github.com/winsw/winsw
Merge pull request #515 from NextTurn/eventlog
Ensure event source is registered during installationpull/457/head^2
commit
a1d335bd60
|
@ -728,6 +728,12 @@ namespace winsw
|
|||
rawSecurityDescriptor.GetBinaryForm(securityDescriptorBytes, 0);
|
||||
_ = Advapi32.SetServiceObjectSecurity(sc.Handle, SecurityInfos.DiscretionaryAcl, securityDescriptorBytes);
|
||||
}
|
||||
|
||||
string eventLogSource = descriptor.Id;
|
||||
if (!EventLog.SourceExists(eventLogSource))
|
||||
{
|
||||
EventLog.CreateEventSource(eventLogSource, "Application");
|
||||
}
|
||||
}
|
||||
|
||||
void Uninstall()
|
||||
|
|
Loading…
Reference in New Issue