minor issue fixed.

This commit is contained in:
Shreyas Zare
2017-11-05 00:18:11 +05:30
parent ba23a37995
commit eaefbf5afb

View File

@@ -17,12 +17,22 @@ namespace DnsService
private void ServiceInstaller1_AfterInstall(object sender, InstallEventArgs e) 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) private void ServiceInstaller1_BeforeUninstall(object sender, InstallEventArgs e)
{ {
new ServiceController(serviceInstaller1.ServiceName).Stop(); try
{
new ServiceController(serviceInstaller1.ServiceName).Stop();
}
catch
{ }
} }
} }
} }