correct case of "WinUtil" in GUI / user-facing messages (#4675)

* WinUtil in .ps1

* WinUtil in GUI

* Update KnownIssues.md
This commit is contained in:
Paweł Gwozdowski
2026-06-09 19:22:56 +02:00
committed by GitHub
parent 01c0e999c1
commit a280ddb1fa
5 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -140,7 +140,7 @@ try {
if (-NOT ($readerOperationSuccessful)) {
Write-Host "Failed to parse xaml content using Windows.Markup.XamlReader's Load Method." -ForegroundColor Red
Write-Host "Quitting winutil..." -ForegroundColor Red
Write-Host "Quitting WinUtil..." -ForegroundColor Red
$sync.runspace.Dispose()
$sync.runspace.Close()
[System.GC]::Collect()
@@ -364,7 +364,7 @@ $sync["Form"].Add_ContentRendered({
# Disable the install tab
$sync.WPFTab1BT.IsEnabled = $false
$sync.WPFTab1BT.Opacity = 0.5
$sync.WPFTab1BT.ToolTip = "Internet connection required for installing applications"
$sync.WPFTab1BT.ToolTip = "Internet connection required for installing applications."
# Disable install-related buttons
$sync.WPFInstall.IsEnabled = $false
@@ -373,7 +373,7 @@ $sync["Form"].Add_ContentRendered({
$sync.WPFGetInstalled.IsEnabled = $false
# Show offline indicator
Write-Host "Offline mode detected - Install tab disabled" -ForegroundColor Yellow
Write-Host "Offline mode detected - Install tab disabled." -ForegroundColor Yellow
# Optionally switch to a different tab if install tab was going to be default
Invoke-WPFTab "WPFTab2BT" # Switch to Tweaks tab instead
+2 -2
View File
@@ -19,12 +19,12 @@ if ($Offline) {
}
if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage') {
Write-Host "WinUtil is unable to run on your system, powershell execution is restricted by security policies" -ForegroundColor Red
Write-Host "WinUtil is unable to run on your system. PowerShell execution is restricted by security policies." -ForegroundColor Red
return
}
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Output "Winutil needs to be run as Administrator. Attempting to relaunch."
Write-Output "WinUtil needs to be run as Administrator. Attempting to relaunch."
$argList = @()
$PSBoundParameters.GetEnumerator() | ForEach-Object {