Changeset 5780 for branches/HeuristicLab.Hive-3.4/sources
- Timestamp:
- 03/21/11 17:58:29 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveTrayIcon/HeuristicLab.Clients.Hive.Slave.SlaveTrayIcon.csproj
r5599 r5780 63 63 </Reference> 64 64 <Reference Include="System" /> 65 <Reference Include="System.Configuration.Install" /> 65 66 <Reference Include="System.Core" /> 67 <Reference Include="System.Management" /> 66 68 <Reference Include="System.Xml.Linq" /> 67 69 <Reference Include="System.Data.DataSetExtensions" /> … … 82 84 <Compile Include="Program.cs" /> 83 85 <Compile Include="Properties\AssemblyInfo.cs" /> 86 <Compile Include="TrayIconInstaller.cs"> 87 <SubType>Component</SubType> 88 </Compile> 89 <Compile Include="TrayIconInstaller.Designer.cs"> 90 <DependentUpon>TrayIconInstaller.cs</DependentUpon> 91 </Compile> 84 92 <EmbeddedResource Include="MainWindow.resx"> 85 93 <DependentUpon>MainWindow.cs</DependentUpon> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveTrayIcon/Program.cs
r5599 r5780 1 1 using System; 2 using System.Diagnostics; 2 3 using System.Windows.Forms; 3 4 using HeuristicLab.Clients.Hive.SlaveCore.Views; … … 10 11 [STAThread] 11 12 static void Main() { 13 KillOtherInstances(); 14 12 15 Application.EnableVisualStyles(); 13 16 Application.SetCompatibleTextRenderingDefault(false); … … 18 21 Application.Run(); 19 22 } 23 24 /// <summary> 25 /// kill all other slave tray icons, we only want 1 running at a time 26 /// (and if a newer version is installed the older one should be killed) 27 /// </summary> 28 private static void KillOtherInstances() { 29 Process curProc = Process.GetCurrentProcess(); 30 31 try { 32 Process[] procs = Process.GetProcessesByName(curProc.ProcessName); 33 foreach (Process p in procs) { 34 if (p.Id != curProc.Id) { 35 p.Kill(); 36 } 37 } 38 } 39 catch (InvalidOperationException) { 40 } 41 catch (Exception) { 42 MessageBox.Show("There is another instance of the Hive Slave tray icon running which can't be closed.", "HeuristicLab Hive Slave"); 43 } 44 } 20 45 } 21 46 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsService/ProjectInstaller.cs
r5599 r5780 1 1 using System; 2 2 using System.Collections; 3 using System.Collections.Generic;4 3 using System.ComponentModel; 5 using System.Configuration.Install; 6 using System.Linq; 4 using System.ServiceProcess; 7 5 8 6 … … 13 11 InitializeComponent(); 14 12 } 13 14 protected override void OnAfterInstall(IDictionary savedState) { 15 base.OnAfterInstall(savedState); 16 17 //try to start the service after installation 18 using (var serviceController = new ServiceController(this.serviceInstaller1.ServiceName, Environment.MachineName)) { 19 try { 20 serviceController.Start(); 21 } 22 catch { } 23 } 24 } 15 25 } 16 26 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsService/SlaveWindowsService.cs
r5621 r5780 43 43 protected override void OnStart(string[] args) { 44 44 core = new Core(); 45 core.ServiceEventLog = eventLog; 45 46 coreThread = new Thread(core.Start); 46 47 coreThread.Start(); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsServiceSetup/HeuristicLab.Clients.Hive.Slave.SlaveWindowsServiceSetup.vdproj
r5721 r5780 52 52 "Entry" 53 53 { 54 "MsmKey" = "8:_01440FC6C110EF86D1057E965F8A00D4"55 "OwnerKey" = "8:_A33A66CD24EA6F2EB8BC0C7B0374C7AC"56 "MsmSig" = "8:_UNDEFINED"57 }58 "Entry"59 {60 54 "MsmKey" = "8:_1078CDBED9F033A8F8092D70EE698E9A" 61 55 "OwnerKey" = "8:_259AB1050A9B0A12646AAB03ED49AE98" … … 1086 1080 "MsmKey" = "8:_9501231212CB8897345E5D8F6F31FBE4" 1087 1081 "OwnerKey" = "8:_1078CDBED9F033A8F8092D70EE698E9A" 1082 "MsmSig" = "8:_UNDEFINED" 1083 } 1084 "Entry" 1085 { 1086 "MsmKey" = "8:_98295B7BD0CC41ED881E9A9207EF6DB4" 1087 "OwnerKey" = "8:_UNDEFINED" 1088 1088 "MsmSig" = "8:_UNDEFINED" 1089 1089 } … … 1650 1650 "CustomAction" 1651 1651 { 1652 "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_090B515D4B724A818341AB77211C562A" 1653 { 1654 "Name" = "8:Primary output from HeuristicLab.Clients.Hive.Slave.SlaveTrayIcon (Active)" 1655 "Condition" = "8:" 1656 "Object" = "8:_E425C85EBBC047D2944046574F2FB159" 1657 "FileType" = "3:2" 1658 "InstallAction" = "3:2" 1659 "Arguments" = "8:" 1660 "EntryPoint" = "8:" 1661 "Sequence" = "3:2" 1662 "Identifier" = "8:_4C9B3289_4A7B_4468_A3E6_104B233F7A07" 1663 "InstallerClass" = "11:TRUE" 1664 "CustomActionData" = "8:/TARGETDIR=\"[TARGETDIR]\\\"" 1665 } 1652 1666 "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_96A6A0924F6E4EB3A650D99CE94D954B" 1653 1667 { … … 1664 1678 "CustomActionData" = "8:" 1665 1679 } 1680 "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_97CB3FDA08444695B30FF01C7FC1C057" 1681 { 1682 "Name" = "8:Primary output from HeuristicLab.Clients.Hive.Slave.SlaveTrayIcon (Active)" 1683 "Condition" = "8:" 1684 "Object" = "8:_E425C85EBBC047D2944046574F2FB159" 1685 "FileType" = "3:2" 1686 "InstallAction" = "3:1" 1687 "Arguments" = "8:" 1688 "EntryPoint" = "8:" 1689 "Sequence" = "3:2" 1690 "Identifier" = "8:_01C278BC_EA31_4977_B1CF_D61C0E4FDD5A" 1691 "InstallerClass" = "11:TRUE" 1692 "CustomActionData" = "8:/TARGETDIR=\"[TARGETDIR]\\\"" 1693 } 1666 1694 "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_BA4B4CE24A6A4AF5B9E15838A4E3A2DA" 1667 1695 { … … 2411 2439 "IsolateTo" = "8:" 2412 2440 } 2441 "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_98295B7BD0CC41ED881E9A9207EF6DB4" 2442 { 2443 "SourcePath" = "8:..\\HeuristicLab.Clients.Hive.Slave.Views\\3.4\\hive_icon.ico" 2444 "TargetName" = "8:hive_icon.ico" 2445 "Tag" = "8:" 2446 "Folder" = "8:_8564EC48868C45BDB6F26256DBC6B288" 2447 "Condition" = "8:" 2448 "Transitive" = "11:FALSE" 2449 "Vital" = "11:TRUE" 2450 "ReadOnly" = "11:FALSE" 2451 "Hidden" = "11:FALSE" 2452 "System" = "11:FALSE" 2453 "Permanent" = "11:FALSE" 2454 "SharedLegacy" = "11:FALSE" 2455 "PackageAs" = "3:1" 2456 "Register" = "3:1" 2457 "Exclude" = "11:FALSE" 2458 "IsDependency" = "11:FALSE" 2459 "IsolateTo" = "8:" 2460 } 2413 2461 "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9ADCBD11412B8CF88989271EC4E87418" 2414 2462 { … … 2773 2821 { 2774 2822 "Name" = "8:#1919" 2775 "AlwaysCreate" = "11: FALSE"2823 "AlwaysCreate" = "11:TRUE" 2776 2824 "Condition" = "8:" 2777 2825 "Transitive" = "11:FALSE" … … 2779 2827 "Folders" 2780 2828 { 2829 "{9EF0B969-E518-4E46-987F-47570745A589}:_EB172448DA454A1EACE198BCA7BC8A03" 2830 { 2831 "Name" = "8:HeuristicLab Hive Slave" 2832 "AlwaysCreate" = "11:FALSE" 2833 "Condition" = "8:" 2834 "Transitive" = "11:FALSE" 2835 "Property" = "8:_1D3268864FFD419CAAC685DE6DBCA87D" 2836 "Folders" 2837 { 2838 } 2839 } 2781 2840 } 2782 2841 } … … 2796 2855 { 2797 2856 "Name" = "8:Microsoft Visual Studio" 2798 "ProductName" = "8:HeuristicLab .Clients.Hive.Slave.SlaveWindowsServiceSetup"2857 "ProductName" = "8:HeuristicLab Hive Slave" 2799 2858 "ProductCode" = "8:{83D128A1-4766-4B19-A449-15B0A1969B99}" 2800 "PackageCode" = "8:{ B313D301-3AE8-4CAB-A254-CFC5B15E6984}"2859 "PackageCode" = "8:{E16E0DDF-7849-45C1-8379-6F7070E7248C}" 2801 2860 "UpgradeCode" = "8:{F27A07F7-B96C-4375-B9C2-6623E5C2B03E}" 2802 2861 "AspNetVersion" = "8:4.0.30319.0" … … 2805 2864 "DetectNewerInstalledVersion" = "11:TRUE" 2806 2865 "InstallAllUsers" = "11:TRUE" 2807 "ProductVersion" = "8: 1.0.0"2866 "ProductVersion" = "8:3.3.5" 2808 2867 "Manufacturer" = "8:HEAL" 2809 2868 "ARPHELPTELEPHONE" = "8:" 2810 2869 "ARPHELPLINK" = "8:" 2811 "Title" = "8:HeuristicLab .Clients.Hive.Slave.SlaveWindowsServiceSetup"2870 "Title" = "8:HeuristicLab Hive Slave Installer" 2812 2871 "Subject" = "8:" 2813 2872 "ARPCONTACT" = "8:HEAL" 2814 2873 "Keywords" = "8:" 2815 2874 "ARPCOMMENTS" = "8:" 2816 "ARPURLINFOABOUT" = "8: "2817 "ARPPRODUCTICON" = "8: "2875 "ARPURLINFOABOUT" = "8:http://dev.heuristiclab.com" 2876 "ARPPRODUCTICON" = "8:_98295B7BD0CC41ED881E9A9207EF6DB4" 2818 2877 "ARPIconIndex" = "3:0" 2819 2878 "SearchPath" = "8:" … … 2918 2977 "Shortcut" 2919 2978 { 2979 "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_165C7319BB1047F2BDEEACA5E0377DC5" 2980 { 2981 "Name" = "8:HeuristicLab Hive Slave" 2982 "Arguments" = "8:" 2983 "Description" = "8:" 2984 "ShowCmd" = "3:1" 2985 "IconIndex" = "3:0" 2986 "Transitive" = "11:FALSE" 2987 "Target" = "8:_E425C85EBBC047D2944046574F2FB159" 2988 "Folder" = "8:_EB172448DA454A1EACE198BCA7BC8A03" 2989 "WorkingFolder" = "8:_8564EC48868C45BDB6F26256DBC6B288" 2990 "Icon" = "8:_98295B7BD0CC41ED881E9A9207EF6DB4" 2991 "Feature" = "8:" 2992 } 2920 2993 } 2921 2994 "UserInterface" -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r5778 r5780 114 114 private void StartHeartbeats() { 115 115 //Initialize the heartbeat 116 if (heartbeatManager != null) {116 if (heartbeatManager == null) { 117 117 heartbeatManager = new HeartbeatManager { Interval = new TimeSpan(0, 0, 10) }; 118 118 heartbeatManager.StartHeartbeat();
Note: See TracChangeset
for help on using the changeset viewer.