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
+1 -1
View File
@@ -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: 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. this means that your PowerShell session is in **Constrained Language Mode**, which prevents WinUtil from running.
+1 -1
View File
@@ -177,7 +177,7 @@ function Show-CustomDialog {
# Add "Winutil" text # Add "Winutil" text
$winutilTextBlock = New-Object Windows.Controls.TextBlock $winutilTextBlock = New-Object Windows.Controls.TextBlock
$winutilTextBlock.Text = "Winutil" $winutilTextBlock.Text = "WinUtil"
$winutilTextBlock.FontSize = $HeaderFontSize $winutilTextBlock.FontSize = $HeaderFontSize
$winutilTextBlock.Foreground = $LogoColor $winutilTextBlock.Foreground = $LogoColor
$winutilTextBlock.Margin = New-Object Windows.Thickness(10, 10, 10, 5) # Add margins around the text block $winutilTextBlock.Margin = New-Object Windows.Thickness(10, 10, 10, 5) # Add margins around the text block
+3 -3
View File
@@ -140,7 +140,7 @@ try {
if (-NOT ($readerOperationSuccessful)) { if (-NOT ($readerOperationSuccessful)) {
Write-Host "Failed to parse xaml content using Windows.Markup.XamlReader's Load Method." -ForegroundColor Red 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.Dispose()
$sync.runspace.Close() $sync.runspace.Close()
[System.GC]::Collect() [System.GC]::Collect()
@@ -364,7 +364,7 @@ $sync["Form"].Add_ContentRendered({
# Disable the install tab # Disable the install tab
$sync.WPFTab1BT.IsEnabled = $false $sync.WPFTab1BT.IsEnabled = $false
$sync.WPFTab1BT.Opacity = 0.5 $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 # Disable install-related buttons
$sync.WPFInstall.IsEnabled = $false $sync.WPFInstall.IsEnabled = $false
@@ -373,7 +373,7 @@ $sync["Form"].Add_ContentRendered({
$sync.WPFGetInstalled.IsEnabled = $false $sync.WPFGetInstalled.IsEnabled = $false
# Show offline indicator # 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 # Optionally switch to a different tab if install tab was going to be default
Invoke-WPFTab "WPFTab2BT" # Switch to Tweaks tab instead Invoke-WPFTab "WPFTab2BT" # Switch to Tweaks tab instead
+2 -2
View File
@@ -19,12 +19,12 @@ if ($Offline) {
} }
if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage') { 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 return
} }
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { 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 = @() $argList = @()
$PSBoundParameters.GetEnumerator() | ForEach-Object { $PSBoundParameters.GetEnumerator() | ForEach-Object {
+1 -1
View File
@@ -1056,7 +1056,7 @@
Margin="0,0,2,0" Margin="0,0,2,0"
FontFamily="Segoe MDL2 Assets" FontFamily="Segoe MDL2 Assets"
Content="N/A" Content="N/A"
ToolTip="Change the Winutil UI Theme" ToolTip="Change the WinUtil UI Theme"
/> />
<Popup Name="ThemePopup" <Popup Name="ThemePopup"
IsOpen="False" IsOpen="False"