mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-11 23:53:52 -05:00
Removed duplicate 'Running the selected WinUtil release' message from Start-LatestWinUtil
This commit is contained in:
@ -133,12 +133,12 @@ function Start-LatestWinUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# If the WinUtil script is not running as administrator, relaunch the script with administrator permissions.
|
# 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) {
|
if (!$ProcessIsElevated) {
|
||||||
Write-Host "WinUtil is not running as administrator. Relaunching..." -ForegroundColor DarkCyan
|
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
|
Start-Process $ProcessCommand -ArgumentList $WinUtilLaunchArguments -Wait -Verb RunAs
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Running the selected WinUtil release: Version '$($WinUtilReleaseTag)'." -ForegroundColor Green
|
|
||||||
Start-Process $ProcessCommand -ArgumentList $WinUtilLaunchArguments -Wait
|
Start-Process $ProcessCommand -ArgumentList $WinUtilLaunchArguments -Wait
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user