Skip to content

Commit

Permalink
Reverts commit 3629916
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryostrixx committed Sep 23, 2024
1 parent 3629916 commit 8449961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 8449961

Please # to comment.