mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-27 16:44:46 -05:00
Remove force install of Winget + Small improvements (#2083)
* Compile Winutil * Add Run switch to Run winutil automatically after compilation * Remove Winutil ForceInstall and unnecessary loading bar --------- Co-authored-by: Marterich <Marterich@users.noreply.github.com>
This commit is contained in:
@ -133,9 +133,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
|
||||
|
||||
#===========================================================================
|
||||
@ -145,9 +153,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
|
||||
|
Reference in New Issue
Block a user