Skip to content

Incorrect Windows Installer Check for VC++ Redistributable Dependency #4665

@mirichmo

Description

@mirichmo

The root cause of this issue is that the check is specific to a registry key that gets created when the VC++ redistributable package is directly installed via the suggested link. It overlooks scenarios where those files are installed via Windows Update.

A secondary issue is that the test should be tagged to only execute on Windows systems.

Steps to reproduce

Build the MSI for a Windows SKU using commit 54e892a and run it on a system that does not have Visual Studio 2015 or the VC++ redistributable package installed via MSI. The dependency is required, but it can be installed via Windows Update.

Expected behavior

The MSI installs without error.

Actual behavior

The failure message is, "PowerShell requires the Visual Studio C++ 2015 x64 redistributables to be installed..." This occurs on a fully patched system that has the dependency installed via Windows Update.

Environment data

Beta.5 + commit 54e892a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions