From 1d142f15b2353b87cb0aedad90cb2e6a2c44f0a4 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 14 Jul 2020 17:15:07 +0200 Subject: [PATCH 001/173] Update version.txt --- res/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/version.txt b/res/version.txt index 5625e59..7e32cd5 100644 --- a/res/version.txt +++ b/res/version.txt @@ -1 +1 @@ -1.2 +1.3 From 8a56d2f2b3ae3f523e6e2e65f3534823306278a6 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 14 Jul 2020 17:18:30 +0200 Subject: [PATCH 002/173] Delete version.txt --- res/version.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 res/version.txt diff --git a/res/version.txt b/res/version.txt deleted file mode 100644 index 7e32cd5..0000000 --- a/res/version.txt +++ /dev/null @@ -1 +0,0 @@ -1.3 From f762e91cb4a977dd35f54ff5f502302650575532 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 14 Jul 2020 17:21:42 +0200 Subject: [PATCH 003/173] Create version.txt --- res/version.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 res/version.txt diff --git a/res/version.txt b/res/version.txt new file mode 100644 index 0000000..7e32cd5 --- /dev/null +++ b/res/version.txt @@ -0,0 +1 @@ +1.3 From 20020b91ee19f99d9210d8518d9a6d89963d5e14 Mon Sep 17 00:00:00 2001 From: fyr77 Date: Tue, 14 Jul 2020 17:27:06 +0200 Subject: [PATCH 004/173] remove debug feature --- EnvyUpdate/MainWindow.xaml.cs | 40 ++++++++++++++++------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index 74d2058..e338617 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -21,7 +21,8 @@ namespace EnvyUpdate private readonly string exeloc = System.Reflection.Assembly.GetEntryAssembly().Location; private readonly string exepath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\"; private readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); - private readonly string version = "1.3"; + private readonly string version = "1.4"; + readonly string over = Util.GetNewVer(); public MainWindow() { @@ -38,7 +39,7 @@ namespace EnvyUpdate { Directory.CreateDirectory(appdata); } - + MessageBox.Show(over); // Check if application is in Autorun mode and update if (exepath == appdata) { @@ -54,28 +55,23 @@ namespace EnvyUpdate //Silently fail. } } - try + /* + if (Environment.GetCommandLineArgs()[1] == "--ignore-gpu") { - if (Environment.GetCommandLineArgs()[1] == "--ignore-gpu") - { - MessageBox.Show("Skipping GPU check!"); - textblockGPU.Text = "Check skipped."; - } - else - { - if (Util.GetLocDriv() != null) - { - localDriv = Util.GetLocDriv(); - textblockGPU.Text = localDriv; - } - else - { - MessageBox.Show("No NVIDIA GPU found. Application will exit."); - Environment.Exit(255); - } - } + MessageBox.Show("Skipping GPU check!"); + textblockGPU.Text = "Check skipped."; + } + */ + if (Util.GetLocDriv() != null) + { + localDriv = Util.GetLocDriv(); + textblockGPU.Text = localDriv; + } + else + { + MessageBox.Show("No NVIDIA GPU found. Application will exit."); + Environment.Exit(255); } - catch (IndexOutOfRangeException) { } if (File.Exists(appdata + "nvidia-update.txt")) { From 1d7ba7a29aa94bee3f98aadd964e6c215876de6b Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 14 Jul 2020 17:30:15 +0200 Subject: [PATCH 005/173] Update version.txt --- res/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/version.txt b/res/version.txt index 7e32cd5..c068b24 100644 --- a/res/version.txt +++ b/res/version.txt @@ -1 +1 @@ -1.3 +1.4 From d7ccddd0ec430fe65aafb5b37b7e43d46ae0708e Mon Sep 17 00:00:00 2001 From: fyr77 Date: Tue, 14 Jul 2020 17:32:40 +0200 Subject: [PATCH 006/173] Update MainWindow.xaml.cs --- EnvyUpdate/MainWindow.xaml.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index e338617..1c78927 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -22,7 +22,6 @@ namespace EnvyUpdate private readonly string exepath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\"; private readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); private readonly string version = "1.4"; - readonly string over = Util.GetNewVer(); public MainWindow() { @@ -39,7 +38,6 @@ namespace EnvyUpdate { Directory.CreateDirectory(appdata); } - MessageBox.Show(over); // Check if application is in Autorun mode and update if (exepath == appdata) { From 8231a295887fd4ddcd418780f67332079b8cb37d Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 14 Jul 2020 17:35:56 +0200 Subject: [PATCH 007/173] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 5aefc53..437caa7 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,10 @@ Simply download the latest release from the [releases page](https://github.com/f The application is compatible with all Nvidia GPUs that have their drivers available on the nvidia.com download page and runs on Windows 7 and up. -## Planned features - -* Translation support - ## Licenses * This project: [MIT](https://github.com/fyr77/EnvyUpdate/blob/master/LICENSE) * Fody (for embedding DLLs into the main executable): [MIT](https://github.com/Fody/Fody/blob/master/License.txt) * wpf-notifyicon (for showing an icon in the system tray): [CPOL](https://github.com/hardcodet/wpf-notifyicon/blob/master/LICENSE) * Notifications.Wpf: [MIT](https://github.com/Federerer/Notifications.Wpf/blob/master/LICENSE) -* Icon made by Freepik from www.flaticon.com \ No newline at end of file +* Icon made by Freepik from www.flaticon.com From 55806694974368efde9a0f40cb20caa5dbb703e2 Mon Sep 17 00:00:00 2001 From: fyr77 Date: Thu, 23 Jul 2020 15:54:42 +0200 Subject: [PATCH 008/173] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 437caa7..74bba5c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ![Issues](https://img.shields.io/github/issues/fyr77/envyupdate?style=for-the-badge) ![Version](https://img.shields.io/github/v/release/fyr77/envyupdate?style=for-the-badge) - ## How to use +## How to use 1. Download the [latest release](https://github.com/fyr77/EnvyUpdate/releases/latest/download/EnvyUpdate.exe) (or as a [.zip](https://github.com/fyr77/EnvyUpdate/releases/latest/download/EnvyUpdate.zip)) and run it. Windows SmartScreen Messages can be safely ignored. They only happen because this project is not digitally signed. 2. If you want to use the application without saving any settings to your drive, keep the "Portable mode" checkbox checked. Otherwise uncheck it to automatically save your configuration. From bf9814cfd09a62dedf7604b3fa5683cb43ebfd09 Mon Sep 17 00:00:00 2001 From: Jakob Date: Sat, 25 Jul 2020 13:29:15 +0200 Subject: [PATCH 009/173] working towards 2.0 add better version detection add new licenses working on automatic GPU, lang and os detection add debug mode for non-nivida --- EnvyUpdate.sln | 3 + EnvyUpdate/EnvyUpdate.csproj | 16 ++++ EnvyUpdate/GlobalVars.cs | 14 ++++ EnvyUpdate/InfoWindow.xaml | 5 +- EnvyUpdate/InfoWindow.xaml.cs | 4 + EnvyUpdate/MainWindow.xaml.cs | 46 +++++++---- EnvyUpdate/Util.cs | 147 ++++++++++++++++++++++++++++++++-- EnvyUpdate/packages.config | 1 + README.md | 1 + 9 files changed, 212 insertions(+), 25 deletions(-) create mode 100644 EnvyUpdate/GlobalVars.cs diff --git a/EnvyUpdate.sln b/EnvyUpdate.sln index 6878393..5225e06 100644 --- a/EnvyUpdate.sln +++ b/EnvyUpdate.sln @@ -7,10 +7,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvyUpdate", "EnvyUpdate\En EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug - ignoregpu|Any CPU = Debug - ignoregpu|Any CPU Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1BF2468D-9579-462D-9153-4836E9C8721F}.Debug - ignoregpu|Any CPU.ActiveCfg = Debug - ignoregpu|Any CPU + {1BF2468D-9579-462D-9153-4836E9C8721F}.Debug - ignoregpu|Any CPU.Build.0 = Debug - ignoregpu|Any CPU {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}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/EnvyUpdate/EnvyUpdate.csproj b/EnvyUpdate/EnvyUpdate.csproj index ebdeb8b..4baef38 100644 --- a/EnvyUpdate/EnvyUpdate.csproj +++ b/EnvyUpdate/EnvyUpdate.csproj @@ -43,6 +43,17 @@ false + + true + bin\Debug\ + DEBUG;TRACE + full + AnyCPU + 7.3 + prompt + MinimumRecommendedRules.ruleset + true + ..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll @@ -50,12 +61,16 @@ ..\packages\Hardcodet.NotifyIcon.Wpf.1.0.8\lib\net451\Hardcodet.Wpf.TaskbarNotification.dll + + ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll + ..\packages\Notifications.Wpf.0.1.1\lib\net461\Notifications.Wpf.dll + @@ -74,6 +89,7 @@ MSBuild:Compile Designer + InfoWindow.xaml diff --git a/EnvyUpdate/GlobalVars.cs b/EnvyUpdate/GlobalVars.cs new file mode 100644 index 0000000..4556a87 --- /dev/null +++ b/EnvyUpdate/GlobalVars.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EnvyUpdate +{ + class GlobalVars + { + public static string gpuName = null; + public static bool mobile = false; + } +} diff --git a/EnvyUpdate/InfoWindow.xaml b/EnvyUpdate/InfoWindow.xaml index 86ce504..991bc88 100644 --- a/EnvyUpdate/InfoWindow.xaml +++ b/EnvyUpdate/InfoWindow.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:EnvyUpdate" mc:Ignorable="d" - Title="InfoWindow" Height="224.547" Width="285.714"> + Title="InfoWindow" Height="238.853" Width="285.714">