diff --git a/util/chocolatey.psm1 b/util/chocolatey.psm1 index bbb4091..fdb1718 100644 --- a/util/chocolatey.psm1 +++ b/util/chocolatey.psm1 @@ -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'" } diff --git a/util/winget.psm1 b/util/winget.psm1 index ff3e94d..d6df2db 100644 --- a/util/winget.psm1 +++ b/util/winget.psm1 @@ -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'" }