minor issue fixed.

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

View File

@@ -16,13 +16,23 @@ namespace DnsService
} }
private void ServiceInstaller1_AfterInstall(object sender, InstallEventArgs e) private void ServiceInstaller1_AfterInstall(object sender, InstallEventArgs e)
{
try
{ {
new ServiceController(serviceInstaller1.ServiceName).Start(); new ServiceController(serviceInstaller1.ServiceName).Start();
} }
catch
{ }
}
private void ServiceInstaller1_BeforeUninstall(object sender, InstallEventArgs e) private void ServiceInstaller1_BeforeUninstall(object sender, InstallEventArgs e)
{
try
{ {
new ServiceController(serviceInstaller1.ServiceName).Stop(); new ServiceController(serviceInstaller1.ServiceName).Stop();
} }
catch
{ }
}
} }
} }