Fixed Run on Windows Startup (#159)

Thanks to @JoeBroesele
This commit is contained in:
JoeBroesele
2019-10-23 12:43:30 +02:00
committed by Phyxion
parent bae89127b2
commit b62733a92d
5 changed files with 7 additions and 6 deletions
@@ -6,7 +6,7 @@
<html>
<head>
<title>Open Hardware Monitor - Web Version</title>
<title>Libre Hardware Monitor - Web Version</title>
<script type='text/javascript' src='js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='js/jquery.tmpl.min.js'></script>
<script type='text/javascript' src='js/knockout-2.1.0.min.js'></script>
+1 -1
View File
@@ -64,7 +64,7 @@ namespace LibreHardwareMonitor.UI
{
InitializeComponent();
// check if the OpenHardwareMonitorLib assembly has the correct version
// check if the LibreHardwareMonitorLib assembly has the correct version
if (Assembly.GetAssembly(typeof(Computer)).GetName().Version != Assembly.GetExecutingAssembly().GetName().Version)
{
MessageBox.Show("The version of the file LibreHardwareMonitorLib.dll is incompatible.",
+1 -1
View File
@@ -15,7 +15,7 @@ namespace LibreHardwareMonitor.UI
private event ShowDesktopChangedEventHandler ShowDesktopChangedEvent;
private readonly System.Threading.Timer _timer;
private bool _showDesktop;
private readonly string _referenceWindowCaption = "OpenHardwareMonitorShowDesktopReferenceWindow";
private readonly string _referenceWindowCaption = "LibreHardwareMonitorShowDesktopReferenceWindow";
private ShowDesktop()
{
+3 -2
View File
@@ -4,6 +4,7 @@
// All Rights Reserved
using System;
using System.IO;
using System.Linq;
using System.Security;
using System.Security.Principal;
@@ -150,8 +151,8 @@ namespace LibreHardwareMonitor.UI
taskDefinition.Principal.RunLevel = TaskRunLevel.Highest;
taskDefinition.Principal.LogonType = TaskLogonType.InteractiveToken;
taskDefinition.Actions.Add(Application.ExecutablePath, "", Application.ExecutablePath);
taskDefinition.Actions.Add(new ExecAction(Application.ExecutablePath, "", Path.GetDirectoryName(Application.ExecutablePath)));
TaskService.Instance.RootFolder.RegisterTaskDefinition(nameof(LibreHardwareMonitor), taskDefinition);
}
+1 -1
View File
@@ -50,7 +50,7 @@ namespace LibreHardwareMonitor.UI
SendHideShowCommand();
};
_mainIcon.Icon = EmbeddedResources.GetIcon("smallicon.ico");
_mainIcon.Text = "Open Hardware Monitor";
_mainIcon.Text = "Libre Hardware Monitor";
}
private void HardwareRemoved(IHardware hardware)