From a280ddb1fa631a0e1898dd56aa69ce080310dc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gwozdowski?= Date: Tue, 9 Jun 2026 19:22:56 +0200 Subject: [PATCH] correct case of "WinUtil" in GUI / user-facing messages (#4675) * WinUtil in .ps1 * WinUtil in GUI * Update KnownIssues.md --- docs/content/KnownIssues.md | 2 +- functions/private/Show-CustomDialog.ps1 | 2 +- scripts/main.ps1 | 6 +++--- scripts/start.ps1 | 4 ++-- xaml/inputXML.xaml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/content/KnownIssues.md b/docs/content/KnownIssues.md index c0c19624..fcb846ab 100644 --- a/docs/content/KnownIssues.md +++ b/docs/content/KnownIssues.md @@ -15,7 +15,7 @@ try using a **VPN** and if that doesn't work than report the issue to https://gi If you run WinUtil and get the error: -`"WinUtil is unable to run on your system, powershell execution is restricted by security policies,"` +`"WinUtil is unable to run on your system. PowerShell execution is restricted by security policies"` this means that your PowerShell session is in **Constrained Language Mode**, which prevents WinUtil from running. diff --git a/functions/private/Show-CustomDialog.ps1 b/functions/private/Show-CustomDialog.ps1 index e4fa3a00..560891d3 100644 --- a/functions/private/Show-CustomDialog.ps1 +++ b/functions/private/Show-CustomDialog.ps1 @@ -177,7 +177,7 @@ function Show-CustomDialog { # Add "Winutil" text $winutilTextBlock = New-Object Windows.Controls.TextBlock - $winutilTextBlock.Text = "Winutil" + $winutilTextBlock.Text = "WinUtil" $winutilTextBlock.FontSize = $HeaderFontSize $winutilTextBlock.Foreground = $LogoColor $winutilTextBlock.Margin = New-Object Windows.Thickness(10, 10, 10, 5) # Add margins around the text block diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 5e72b1e6..a5e1a1bf 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -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 diff --git a/scripts/start.ps1 b/scripts/start.ps1 index 715194bd..e590a29a 100644 --- a/scripts/start.ps1 +++ b/scripts/start.ps1 @@ -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 { diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index fa272d91..8730fb0c 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -1056,7 +1056,7 @@ Margin="0,0,2,0" FontFamily="Segoe MDL2 Assets" Content="N/A" - ToolTip="Change the Winutil UI Theme" + ToolTip="Change the WinUtil UI Theme" />