Open MisterDA opened 1 month ago
I have used this before (see https://github.com/tarides/infrastructure/blob/791e0f8bb6ff5c8dd9e3f54122edcaa158087ec5/hopi.caelum.ci.dev/windows-desktops/roles/visual-studio/tasks/main.yml#L3) however, I found Chocolatey to be more reliable when running under Ansible.
I noticed that we jump through a lot of hoops to install WinGet on Windows Server Core, where it isn't actually supported. Then, we only use it to install Git. I wondered if we could actually dispense with WinGet altogether and just use the Git installer.
The idea was to use WinGet to install other things in the future, and to make sure we have one default package manager for Windows things. I'm not surprised that another package manager would be more reliable.
Have a look at Use winget to install or modify Visual Studio: