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

Properly identify Windows 2019 in the install.ps1 #301

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Properly identify Windows 2019 in the install.ps1 #301

merged 1 commit into from
Dec 12, 2019

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Dec 12, 2019

Right now we're identifying Windows 2019 systems as being 2016. This isn't a critical issue as our 2016 and 2019 packages are actually the same thing, but it would be good to properly identify the OS we're on. At the very least this gets us better usage data for Windows releases. The unfortunate thing is that Microsoft hasn't bumped the NT major or minor versions for 2019. Instead, they just pumped the patch (build) of the release. 2016 is 14xxx and 2019 is 17xxx. The last match wins in these switch statements so if we see a 17xxx build then identify it as 2019. 18000 is Windows 10 so I don't see them releasing a 2019 build that is in the 18000 range. If they do for some reason we'll identify these as 2016, which would be fine. I think that's the overly cautious route to take unless someone has concerns.

Signed-off-by: Tim Smith tsmith@chef.io

Right now we're identifying Windows 2019 systems as being 2016. This isn't a critical issue as our 2016 and 2019 packages are actually the same thing, but it would be good to properly identify the OS we're on. At the very least this gets us better usage data for Windows releases. The unfortunate thing is that Microsoft hasn't bumped the NT major or minor versionns for 2019. Instead they just pumped the patch (build) of the release. 2016 is 14xxx and 2019 is 17xxx. Last match wins in these switch statements so if we see a 17xxx build then identify it as 2019. 18000 is Windows 10 so I don't see them releasing a 2019 build that is in the 18000 range. If they do for some reason we'll identify these as 2016, which would be fine. I think that's the overly cautious route to take unless someone has concerns.

Signed-off-by: Tim Smith <tsmith@chef.io>
Copy link

@jaymalasinha jaymalasinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tas50 tas50 merged commit e436e27 into master Dec 12, 2019
@chef-expeditor chef-expeditor bot deleted the 2019 branch December 12, 2019 16:46
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

3 participants