From 58a650d1b02d042ba2e819418720882117caa8d7 Mon Sep 17 00:00:00 2001 From: Xyueta Date: Thu, 14 Sep 2023 23:23:48 +0200 Subject: [PATCH] fix: applications not installing correctly --- .../AtlasDesktop/1. Software/Install Software.ps1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/playbook/Executables/AtlasDesktop/1. Software/Install Software.ps1 b/src/playbook/Executables/AtlasDesktop/1. Software/Install Software.ps1 index 1ad677930d..76d098c98f 100644 --- a/src/playbook/Executables/AtlasDesktop/1. Software/Install Software.ps1 +++ b/src/playbook/Executables/AtlasDesktop/1. Software/Install Software.ps1 @@ -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 @@ -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