1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Install Windows SDK 7.1 (Visual C++ 2010) on GitHub Windows runner

Last updated at Posted at 2023-01-08

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:

  1. 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.
  2. 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...

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?