From 1f01933cc08b86d7c0d12d24c0702b8ce6b22b33 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Tue, 25 Jun 2024 19:10:42 +0000 Subject: [PATCH] Compile Winutil --- winutil.ps1 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 21cb477e..ccded69b 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -15062,9 +15062,17 @@ $sync.keys | ForEach-Object { # Load computer information in the background Invoke-WPFRunspace -ScriptBlock { - $sync.ConfigLoaded = $False - $sync.ComputerInfo = Get-ComputerInfo - $sync.ConfigLoaded = $True + try{ + $oldProgressPreference = $ProgressPreference + $ProgressPreference = "SilentlyContinue" + $sync.ConfigLoaded = $False + $sync.ComputerInfo = Get-ComputerInfo + $sync.ConfigLoaded = $True + } + finally{ + $ProgressPreference = "Continue" + } + } | Out-Null #=========================================================================== @@ -15074,9 +15082,6 @@ Invoke-WPFRunspace -ScriptBlock { # Print the logo Invoke-WPFFormVariables -# Install Winget if not already present -Install-WinUtilWinget - # Set the titlebar $sync["Form"].title = $sync["Form"].title + " " + $sync.version # Set the commands that will run when the form is closed