Skip to content

Commit

Permalink
fix: applications not installing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Sep 14, 2023
1 parent ef1b312 commit 58a650d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Require admin privileges if User Account Control (UAC) is enabled
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
Start-Process PowerShell "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
exit
}

function PauseNul ($message = "Press any key to exit... ") {
Write-Host $message -NoNewLine
$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') | Out-Null
Expand Down Expand Up @@ -290,7 +284,7 @@ if ($global:install) {
Write-Host ""
Start-Sleep 1
foreach ($package in $installPackages) {
& winget install -e --id $package --accept-package-agreements --accept-source-agreements --disable-interactivity --force -h
& winget install -e --id $package --accept-package-agreements --accept-source-agreements --disable-interactivity --force -h
}
Write-Host ""
pause
Expand Down

0 comments on commit 58a650d

Please sign in to comment.