Fixes the settings of the scheduled task, so that LibreHardwareMonitor is not terminated after 3 days. (#298)

This commit is contained in:
JoeBroesele
2020-09-15 15:23:32 +02:00
committed by GitHub
parent ecdf2b5b20
commit ed834c0457
@@ -149,6 +149,8 @@ namespace LibreHardwareMonitor.UI
taskDefinition.Settings.StartWhenAvailable = true;
taskDefinition.Settings.DisallowStartIfOnBatteries = false;
taskDefinition.Settings.StopIfGoingOnBatteries = false;
taskDefinition.Settings.ExecutionTimeLimit = TimeSpan.Zero;
taskDefinition.Settings.AllowHardTerminate = false;
taskDefinition.Principal.RunLevel = TaskRunLevel.Highest;
taskDefinition.Principal.LogonType = TaskLogonType.InteractiveToken;