mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
Removed duplicate 'Running the selected WinUtil release' message from Start-LatestWinUtil
This commit is contained in:
parent
e29ce43147
commit
3629916da4
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user