windowsazure-pipelineschocolatey

How to install specific version of windows sdk using chocolatey?


I have C++ project with its target platform version type as 10.0.15063.0 and target platform as Windows 10.

I tried to create a azure pipeline that builds and publishes the artifacts, but I am facing issue to install windows sdk of specific version using choco(i.e 10.0.15063.x).

command tried :

choco install windows-sdk-10.0 --version=10.0.15063

I am getting error saying the package not found in the sources listed. Is there any way to fix the issue.


Solution

  • The version 10.0.15063.0 is not in the choco package list. As an alternative, you can download the installation from link, and install it via command.

    Download bash command:

    curl -LO "https://download.microsoft.com/download/E/1/B/E1B0E6C0-2FA2-4A1B-B322-714A5586BE63/windowssdk/winsdksetup.exe"
    chmod 777 winsdksetup.exe            # add permission for execution
    

    Install in powershell silently:

    Start-Process winsdksetup.exe -ArgumentList "/q" -Wait
    

    Verify the version on my local machine: enter image description here

    However, the version number is strange, it shows 10.1.15063 actually in control panel. enter image description here

    So I can install it with choco command instead:

    choco install windows-sdk-10.1 --version=10.1.15063.468 -y
    

    Please check the version in regedit and control panel.