- Timestamp:
- 12/20/11 11:45:18 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Clients.Hive.Slave.WindowsService/3.3/ProjectInstaller.cs
r6983 r7213 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.