mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
minor issue fixed.
This commit is contained in:
@@ -17,12 +17,22 @@ namespace DnsService
|
||||
|
||||
private void ServiceInstaller1_AfterInstall(object sender, InstallEventArgs e)
|
||||
{
|
||||
new ServiceController(serviceInstaller1.ServiceName).Start();
|
||||
try
|
||||
{
|
||||
new ServiceController(serviceInstaller1.ServiceName).Start();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
private void ServiceInstaller1_BeforeUninstall(object sender, InstallEventArgs e)
|
||||
{
|
||||
new ServiceController(serviceInstaller1.ServiceName).Stop();
|
||||
try
|
||||
{
|
||||
new ServiceController(serviceInstaller1.ServiceName).Stop();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user