Previously, you could simply run this:
- name: "Install Visual C++ 2010"
run: |
choco install windows-sdk-7.1 -f -y
choco install KB2519277 -f -y
However the situation was changed by two parts:
- After https://github.com/actions/runner-images/pull/6247 , GitHub windows-2022 runners now have Visual C++ 2010 redistributable due to https://community.chocolatey.org/packages/imagemagick.app#dependencies .
- It needs to be uninstalled first.
- After https://community.chocolatey.org/packages/windows-sdk-7.1/7.1.7600.202200915 , windows-sdk-7.1 has been migrated to web installer.
- Downloading ISO is faster, so previous version is recommended.
These changes can be solved by this
- name: "Install Visual C++ 2010"
run: |
MsiExec.exe /passive '/X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}'
MsiExec.exe /passive '/X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}'
choco install windows-sdk-7.1 -f -y --version 7.1.7600.20220204
choco install KB2519277 -f -y
msiexec /x
has to be quoted on powershell, otherwise need to run on cmd.
note
Who wants to install Visual C++ 2010? I don't come up with other use cases than testing Python 3.4...