Prover package: the elevated setup window stays open
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
3308de6839
commit
91befa0862
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ $distro = 'Ubuntu-24.04'
|
|||
function Is-Admin { ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) }
|
||||
if (-not (Is-Admin)) {
|
||||
Write-Host 'Asking for administrator rights (WSL install needs them)...'
|
||||
Start-Process powershell -Verb RunAs -ArgumentList @('-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', "`"$PSCommandPath`"")
|
||||
Start-Process powershell -Verb RunAs -ArgumentList @('-NoExit', '-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', "`"$PSCommandPath`"")
|
||||
exit
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue