Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows version detection #6

Merged
merged 1 commit into from
May 7, 2021
Merged

Add Windows version detection #6

merged 1 commit into from
May 7, 2021

Conversation

bkaestner
Copy link
Contributor

The Windows registry key "CurrentVersion" contains both "ProductName" as well as "BuildLab" to identify the currently running Windows variant.

As all returned reg lines are either values

name REG_ value

or the list of subkeys, we can just use a regular expression to filter the values from the input.

For a more generic variant, see Ashraz code on the Discord.

See also #4 for more progress on all OS detections.

The Windows registry key "CurrentVersion" contains both "ProductName"
as well as "BuildLab" to identify the currently running Windows
variant.

As all returned `reg` lines are either values

   name REG_<TYPE> value

or the list of subkeys, we can just use a regular expression to filter
the values from the input.

For a more generic variant, see Ashraz code on the Discord.

See also #4 for more progress on all OS detections.
@bkaestner bkaestner changed the title os: Add Windows detection Add Windows version detection May 2, 2021
@Phundrak Phundrak merged commit 6217784 into Phundrak:main May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants