- Timestamp:
- 12/06/11 10:56:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Slave.WindowsService/3.3/ProjectInstaller.cs
r6983 r7131 10 10 public ProjectInstaller() { 11 11 InitializeComponent(); 12 } 13 14 protected override void OnBeforeUninstall(IDictionary savedState) { 15 base.OnBeforeUninstall(savedState); 16 17 //try to shutdown the service before uninstalling it 18 using (var serviceController = new ServiceController(this.serviceInstaller1.ServiceName, Environment.MachineName)) { 19 try { 20 serviceController.Stop(); 21 } 22 catch { } 23 } 12 24 } 13 25
Note: See TracChangeset
for help on using the changeset viewer.