From 6f386111e893e44bcb6810343e7c59c3cd7ac8f1 Mon Sep 17 00:00:00 2001 From: Jakob Date: Fri, 8 Nov 2019 19:55:30 +0100 Subject: [PATCH] rollback --- EnvyUpdate.sln | 4 ++-- EnvyUpdate/MainWindow.xaml.cs | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/EnvyUpdate.sln b/EnvyUpdate.sln index 6878393..5a12df1 100644 --- a/EnvyUpdate.sln +++ b/EnvyUpdate.sln @@ -11,8 +11,8 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1BF2468D-9579-462D-9153-4836E9C8721F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1BF2468D-9579-462D-9153-4836E9C8721F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1BF2468D-9579-462D-9153-4836E9C8721F}.Debug|Any CPU.ActiveCfg = Release|Any CPU + {1BF2468D-9579-462D-9153-4836E9C8721F}.Debug|Any CPU.Build.0 = Release|Any CPU {1BF2468D-9579-462D-9153-4836E9C8721F}.Release|Any CPU.ActiveCfg = Release|Any CPU {1BF2468D-9579-462D-9153-4836E9C8721F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index ed42db8..832e83a 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -18,7 +18,6 @@ namespace EnvyUpdate string onlineDriv = null; readonly string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\envyupdate\\"; readonly string startup = Environment.GetFolderPath(Environment.SpecialFolder.Startup); - readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); string gpuURL = null; readonly string exeloc = System.Reflection.Assembly.GetEntryAssembly().Location; bool isAtStartup = false; @@ -213,14 +212,12 @@ namespace EnvyUpdate { File.Copy(exeloc, appdata + "EnvyUpdateInstalled.exe", true); Util.CreateShortcut("EnvyUpdate", startup, appdata + "EnvyUpdateInstalled.exe", "Nvidia Updater Application."); - Util.CreateShortcut("EnvyUpdate", startmenu, appdata + "EnvyUpdateInstalled.exe", "Nvidia Updater Application."); } private void chkAutostart_Unchecked(object sender, RoutedEventArgs e) { File.Delete(appdata + "EnvyUpdateInstalled.exe"); File.Delete(startup + "\\EnvyUpdate.lnk"); - File.Delete(startmenu + "\\EnvyUpdate.lnk"); } private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)