add logging for new features
This commit is contained in:
parent
15202c9dfd
commit
3fb5799b00
2 changed files with 10 additions and 1 deletions
|
@ -422,6 +422,8 @@ namespace EnvyUpdate
|
||||||
if (!Directory.Exists(destinationDir))
|
if (!Directory.Exists(destinationDir))
|
||||||
Directory.CreateDirectory(destinationDir);
|
Directory.CreateDirectory(destinationDir);
|
||||||
|
|
||||||
|
Debug.LogToFile("INFO Starting extraction of driver files.");
|
||||||
|
|
||||||
Process process = new Process();
|
Process process = new Process();
|
||||||
ProcessStartInfo startInfo = new ProcessStartInfo
|
ProcessStartInfo startInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
|
@ -442,11 +444,14 @@ namespace EnvyUpdate
|
||||||
Application.Current.Dispatcher.Invoke(new Action(() => {
|
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);
|
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"));
|
File.Delete(Path.Combine(GlobalVars.exedirectory, "7zr.exe"));
|
||||||
|
|
||||||
Util.CleanInstallConfig(Path.Combine(extractedPath, "setup.cfg"));
|
Util.CleanInstallConfig(Path.Combine(extractedPath, "setup.cfg"));
|
||||||
|
|
||||||
|
Debug.LogToFile("Starting driver setup.");
|
||||||
|
|
||||||
Process process = new Process();
|
Process process = new Process();
|
||||||
ProcessStartInfo startInfo = new ProcessStartInfo
|
ProcessStartInfo startInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
|
@ -464,9 +469,11 @@ namespace EnvyUpdate
|
||||||
private void InstallFinished(object sender, EventArgs e)
|
private void InstallFinished(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Application.Current.Dispatcher.Invoke(new Action(() => {
|
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"));
|
File.Delete(Path.Combine(GlobalVars.exedirectory, onlineDriv + "-nvidia-installer.exe"));
|
||||||
Directory.Delete(Path.Combine(GlobalVars.exedirectory, onlineDriv + "-extracted"), true);
|
Directory.Delete(Path.Combine(GlobalVars.exedirectory, onlineDriv + "-extracted"), true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -586,6 +586,8 @@ namespace EnvyUpdate
|
||||||
client.DownloadFile(new Uri("https://www.7-zip.org/a/7zr.exe"), path);
|
client.DownloadFile(new Uri("https://www.7-zip.org/a/7zr.exe"), path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debug.LogToFile("INFO Downloaded 7-zip.");
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue