Skip to content

Commit 7af7512

Browse files
committed
1.3.4
Using highest priviliges for task scheduler
1 parent 8b1237c commit 7af7512

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Source/HDRProfile/App.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<system:String x:Key="DonateLink">https://paypal.me/pools/c/8vksshrMln</system:String>
1414
<system:String x:Key="InfoLink">https://sourceforge.net/projects/hdr-profile</system:String>
15-
<system:String x:Key="Version">1.3.3</system:String>
15+
<system:String x:Key="Version">1.3.4</system:String>
1616
<SolidColorBrush x:Key="ButtonBackground" Color="#FF0086F5"/>
1717
<SolidColorBrush x:Key="AccentColor" Color="#FFFF581A"/>
1818
<SolidColorBrush x:Key="AccentColor2" Color="#4C87B3"/>

Source/HDRProfile/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
5353
// indem Sie "*" wie unten gezeigt eingeben:
5454
// [assembly: AssemblyVersion("1.0.*")]
55-
[assembly: AssemblyVersion("1.3.3.0")]
56-
[assembly: AssemblyFileVersion("1.3.3.0")]
55+
[assembly: AssemblyVersion("1.3.4.0")]
56+
[assembly: AssemblyFileVersion("1.3.4.0")]

Source/HDRProfile/Tools.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ public static void SetAutoStartInScheduler(string applicationName, string filePa
3131
// Create a new task definition and assign properties
3232
TaskDefinition td = ts.NewTask();
3333
td.RegistrationInfo.Description = "Starting HDR-Profile";
34+
td.Principal.RunLevel = TaskRunLevel.Highest;
3435

35-
// On logon
36-
td.Triggers.Add(new Microsoft.Win32.TaskScheduler.LogonTrigger { UserId = Environment.UserName });
3736

37+
// On logon
38+
td.Triggers.Add(new Microsoft.Win32.TaskScheduler.LogonTrigger { UserId = Environment.UserName});
3839
// Create an action that will launch Notepad whenever the trigger fires
3940
td.Actions.Add(new ExecAction(filePath, null));
4041

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)