mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 11:21:46 +00:00
bugfix: wait for admin installation process to complete
This commit is contained in:
parent
cb66813a8b
commit
509ebf7437
@ -11,6 +11,6 @@ function ChocolateyInstall
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Start admin process, import this script, run 'InstallPackages' function
|
# 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'"
|
-ArgumentList "-C", "'Import-Module ./chocolatey.psm1; InstallPackages'"
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ function WingetInstall
|
|||||||
if ($install.ToLower() -ne 'n')
|
if ($install.ToLower() -ne 'n')
|
||||||
{
|
{
|
||||||
# Start admin process, import this script, run 'InstallPackages' function
|
# 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'"
|
-ArgumentList "-C", "'Import-Module ./winget.psm1; InstallWinget'"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user