diff --git a/Windows_10/packages_install.ps1 b/Windows_10/packages_install.ps1 index 10bede549..932503239 100644 --- a/Windows_10/packages_install.ps1 +++ b/Windows_10/packages_install.ps1 @@ -95,6 +95,9 @@ $WINGET_PACKAGES = @( 'Doist.Todoist' ) +# refresh Path variable (in case Winget was just installed now) +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") + $WINGET_PACKAGES | ForEach-Object { echo "### Winget is installing a package: $PSItem" winget install --accept-source-agreements --accept-package-agreements `