diff --git a/Hotsapi.Uploader.Windows/App.xaml.cs b/Hotsapi.Uploader.Windows/App.xaml.cs index 2ee9525..80c4627 100644 --- a/Hotsapi.Uploader.Windows/App.xaml.cs +++ b/Hotsapi.Uploader.Windows/App.xaml.cs @@ -57,11 +57,11 @@ public string VersionString public bool StartWithWindows { get { - var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); + var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").OpenSubKey(@"Run"); return reg.GetValue("Hotsapi") != null; } set { - var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true); + var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").OpenSubKey(@"Run", true); if (value) { string command = $@"""{Directory.GetParent(AppDir)}\Update.exe"" --processStart Hotsapi.Uploader.exe --process-start-args ""--autorun"""; reg.SetValue("Hotsapi", command); diff --git a/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs b/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs index 9f8029f..b3e5ebc 100644 --- a/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs +++ b/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.0.0")] -[assembly: AssemblyFileVersion("1.2.0.0")] +[assembly: AssemblyVersion("1.3.0.0")] +[assembly: AssemblyFileVersion("1.3.0.0")]