Removed duplicate 'Running the selected WinUtil release' message from Start-LatestWinUtil

This commit is contained in:
Cryostrixx 2024-09-23 14:43:02 -07:00
parent e29ce43147
commit 3629916da4
No known key found for this signature in database
GPG Key ID: 2FC11420AFB82801

View File

@ -133,12 +133,12 @@ function Start-LatestWinUtil {
}
# If the WinUtil script is not running as administrator, relaunch the script with administrator permissions.
Write-Host "Running the selected WinUtil release: Version '$($WinUtilReleaseTag)'." -ForegroundColor Green
if (!$ProcessIsElevated) {
Write-Host "WinUtil is not running as administrator. Relaunching..." -ForegroundColor DarkCyan
Write-Host "Running the selected WinUtil release: Version '$($WinUtilReleaseTag)'." -ForegroundColor Green
Start-Process $ProcessCommand -ArgumentList $WinUtilLaunchArguments -Wait -Verb RunAs
} else {
Write-Host "Running the selected WinUtil release: Version '$($WinUtilReleaseTag)'." -ForegroundColor Green
Start-Process $ProcessCommand -ArgumentList $WinUtilLaunchArguments -Wait
}
}