I have a bootstrap script which does a lot of things to setup a new Windows installation. It calls other scripts within that script, including this one which installs some packages using winget:
@echo off:: Install essential packageswinget install -e --id Git.Gitwinget install -e --id Google.Chromewinget install -e --id Logitech.OptionsPluswinget install -e --id M2Team.NanaZipwinget install -e --id Microsoft.PowerToyswinget install -e --id Microsoft.VCRedist.2015+.x64winget install -e --id Microsoft.VCRedist.2015+.x86winget install -e --id Microsoft.WindowsTerminalwinget install -e --id Mozilla.Firefoxwinget install -e --id Notion.Notionwinget install -e --id SomePythonThings.WingetUIStorewinget install -e --id WinDirStat.WinDirStat --include-unknownwinget install -e --id WinSCP.WinSCPwinget install -e --id chrisant996.Clinkwinget install -e --id gerardog.gsudowinget install -e --id hluk.CopyQwinget install -e --id qutebrowser.qutebrowser -l "C:\Program Files\qutebrowser"winget install -e --id vim.vim
It installs every up to Notion and then install WingetUIStore, but that takes quite a long time (I know this as it starts running when it finally does intstall), but then the next 6 packages are skipped and only vim gets installed after that. Running the script again installs the 6 missing packages.
Why is this happening and what can I do about it?