Skip to content

Unable to detect Visual Studio if installed by admin user and never launched by normal user #62

Description

@sgtcoolguy

If I install Visual Studio 2015 as an Administrator, windowslib detects the install and emulators fine. If I switch over to a normal user account that can run Visual Studio but hasn't yet - it does not detect Visual Studio. Once I run it one time, it will generate the registry key we're searching for and find the VS install - but will not find the emulators.

It looks like it's because we're searching for a registry key ending in "_Config" which is generated by the install for the installing user, or on first run for other users. I'm not sure we need that registry entry for the most important data needed by the detection code. Specifically, it seems that we can grab the install directory via another registry key that's always there for VS 2015+.

HKLM\Software\Wow6432Node\Microsoft\VisualStudio\14.0

For older versions, I don't think it contains the data we need.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions