Closed AScott-WWF closed 3 months ago
There is already a separate module VcRedist that caters for these (by the same author as Evergreen, Aaron Parker). I don't want to support any apps in Nevergreen that are already in Evergreen or VcRedist, unless there's a good reason.
Thanks @DanGough I'd overlooked that module - Now added to my PowerShell module arsenal ;-)
Not required as VcRedist PowerShell Module solves this issue
As Microsoft have not until recently published the latest version number on the VC++ release url (https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170), it was previously necessary to download the version available and then check the version of the downloaded file. This appears to be no longer necessary as they are finally publishing the release version on the page, This can be found directly below the heading on this link: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version
So it is now possible (with the Nevergreen script below) to return the release number and resolve the urls for x86, x64 and ARM64 version downloads.
N.B. Evergreen currently serves a very good 3rd Party alternative product "VisualCppRedistAIO" from https://github.com/abbodi1406/vcredist for VC++ redistributables, but as this software is not directly from the source vendor (Microsoft), some users / orgs may prefer not to use this repackaged version.
The script: