From 84499614d0c3b088130c45a810e55efdbc8913b7 Mon Sep 17 00:00:00 2001 From: Cryostrixx Date: Mon, 23 Sep 2024 16:57:42 -0700 Subject: [PATCH] Reverts commit 3629916da4451ee05432337b2b857e4d7db3b843 --- windev.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windev.ps1 b/windev.ps1 index 0d8f18372..a969bd939 100644 --- a/windev.ps1 +++ b/windev.ps1 @@ -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 } }