packer-windows-templates
packer-windows-templates copied to clipboard
Cannot install Chocolatey / .NET without Windows Updates
Original issue: https://github.com/packer-community/packer-windows-plugins/issues/56
- Chocolatey can't be installed with the "elevated" directives anymore
- .NET can't be installed without the "elevated" directives
- Chocolatey wants to install .NET if it's not been installed by something else
The "elevated" directives run scripts via Windows Scheduled Tasks. This fails in the newer, better Chocolatey here: https://github.com/chocolatey/choco/blob/9775c21e82ad9676d8f7c33a4322eb053ea3b443/nuget/chocolatey/tools/chocolateysetup.psm1#L172-L189
Workaround is to always run Windows Updates and not install Chocolatey with the "elevated" directives.