diff --git a/EnvyUpdate/DashboardPage.xaml.cs b/EnvyUpdate/DashboardPage.xaml.cs index 2eadc5a..6e7cbb0 100644 --- a/EnvyUpdate/DashboardPage.xaml.cs +++ b/EnvyUpdate/DashboardPage.xaml.cs @@ -422,6 +422,8 @@ namespace EnvyUpdate if (!Directory.Exists(destinationDir)) Directory.CreateDirectory(destinationDir); + Debug.LogToFile("INFO Starting extraction of driver files."); + Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo { @@ -442,11 +444,14 @@ namespace EnvyUpdate Application.Current.Dispatcher.Invoke(new Action(() => { ShowSnackbar(Wpf.Ui.Common.ControlAppearance.Success, Wpf.Ui.Common.SymbolRegular.FolderZip24, Properties.Resources.info_extract_complete, Properties.Resources.info_extract_complete_title); })); + Debug.LogToFile("INFO Extraction exited, deleting 7-zip executable."); File.Delete(Path.Combine(GlobalVars.exedirectory, "7zr.exe")); Util.CleanInstallConfig(Path.Combine(extractedPath, "setup.cfg")); + Debug.LogToFile("Starting driver setup."); + Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo { @@ -464,9 +469,11 @@ namespace EnvyUpdate private void InstallFinished(object sender, EventArgs e) { Application.Current.Dispatcher.Invoke(new Action(() => { - ShowSnackbar(Wpf.Ui.Common.ControlAppearance.Success, Wpf.Ui.Common.SymbolRegular.FolderZip24, Properties.Resources.info_install_complete, Properties.Resources.info_install_complete_title); + ShowSnackbar(Wpf.Ui.Common.ControlAppearance.Success, Wpf.Ui.Common.SymbolRegular.CheckmarkCircle24, Properties.Resources.info_install_complete, Properties.Resources.info_install_complete_title); })); + Debug.LogToFile("INFO Driver setup complete. Cleaning up setup files."); + File.Delete(Path.Combine(GlobalVars.exedirectory, onlineDriv + "-nvidia-installer.exe")); Directory.Delete(Path.Combine(GlobalVars.exedirectory, onlineDriv + "-extracted"), true); } diff --git a/EnvyUpdate/Util.cs b/EnvyUpdate/Util.cs index 5c41283..b4216eb 100644 --- a/EnvyUpdate/Util.cs +++ b/EnvyUpdate/Util.cs @@ -586,6 +586,8 @@ namespace EnvyUpdate client.DownloadFile(new Uri("https://www.7-zip.org/a/7zr.exe"), path); } + Debug.LogToFile("INFO Downloaded 7-zip."); + return path; }