bugfix: wait for admin installation process to complete

This commit is contained in:
Baipyrus 2024-11-24 21:35:50 +01:00
parent cb66813a8b
commit 509ebf7437
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ function ChocolateyInstall
}
# Start admin process, import this script, run 'InstallPackages' function
Start-Process powershell.exe -Verb RunAs `
Start-Process powershell.exe -Verb RunAs -Wait `
-ArgumentList "-C", "'Import-Module ./chocolatey.psm1; InstallPackages'"
}

View File

@ -15,7 +15,7 @@ function WingetInstall
if ($install.ToLower() -ne 'n')
{
# Start admin process, import this script, run 'InstallPackages' function
Start-Process powershell.exe -Verb RunAs `
Start-Process powershell.exe -Verb RunAs -Wait `
-ArgumentList "-C", "'Import-Module ./winget.psm1; InstallWinget'"
}