mirror of
https://github.com/aphrody-labs/NuGet.Client.git
synced 2026-10-14 13:29:05 +00:00
16 lines
372 B
PowerShell
16 lines
372 B
PowerShell
. "$PSScriptRoot\Utils.ps1"
|
|
. "$PSScriptRoot\NuGetFunctionalTestUtils.ps1"
|
|
|
|
$success = IsAdminPrompt
|
|
|
|
if ($success -eq $false)
|
|
{
|
|
$errorMessage = 'ERROR: Please re-run this script as an Administrator! ' +
|
|
'Updating registry require admin privileges.'
|
|
|
|
Write-Error $errorMessage
|
|
exit 1
|
|
}
|
|
|
|
# Already checked if the prompt is an admin prompt
|
|
DisableCrashDialog |