Skip to content

WinVersion: add support for Windows 10 October 2020 Update (Version 20H2/2009)#11666

Merged
feerrenrut merged 1 commit into
nvaccess:masterfrom
josephsl:winTen20h2
Sep 30, 2020
Merged

WinVersion: add support for Windows 10 October 2020 Update (Version 20H2/2009)#11666
feerrenrut merged 1 commit into
nvaccess:masterfrom
josephsl:winTen20h2

Conversation

@josephsl

Copy link
Copy Markdown
Contributor

Link to issue number:

None

Summary of the issue:

Let's NVDA detect build 19042 as Windows 10 Version 20H2/2009 (October 2020 Update). Note that release Id of 2009 is used for consistency with other Windows 10 version map until the spec is changed.

Description of how this pull request fixes the issue:

Adds "2009" entry to Windows 10 version map to record build 19042.

Testing performed:

Tested to make sure Version 20H2 is properly detected (source code copy).

Known issues with pull request:

None

Change log entry:

None

Additionao context:

October 2020 Update is May 2020 Update (Version 2004/build 19041) with an enablement package. Also, at some point in the future, it would be handy to update Windows 10 version map spec to include string keys so versions such as 20H2 and such can be recorded easily.

Thanks.

…0H2/build 19042).

Although it will be marketed as Version 20H2, release ID is still '2009'. Unless this changes next year, 2009 will be used to refer to 20H2.

@codeofdusk codeofdusk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

  • Is there a new Windows SDK to merge (like #10922)?
  • Maybe isWin10 could map xxh1 to xx03 and xxh2 to xx09?

@josephsl

josephsl commented Sep 25, 2020 via email

Copy link
Copy Markdown
Contributor Author

@feerrenrut

Copy link
Copy Markdown
Contributor

It would be helpful if this (and similar PRs in the future) include a link to an official source to verify this is the appropriate build number.

@josephsl

josephsl commented Sep 29, 2020 via email

Copy link
Copy Markdown
Contributor Author

@josephsl

Copy link
Copy Markdown
Contributor Author

Hi,

As requested by Reef, official reference for 20H2:

https://blogs.windows.com/windows-insider/2020/09/18/preparing-the-windows-10-october-2020-update-ready-for-release/

Thanks.

@feerrenrut

Copy link
Copy Markdown
Contributor

Thanks for adding the link @josephsl

@feerrenrut

Copy link
Copy Markdown
Contributor

As for:

it would be handy to update Windows 10 version map spec to include string keys so versions such as 20H2 and such can be recorded easily.

I'd suggest making the keys for WIN10_VERSIONS_TO_BUILDS strings and then doing the following:

def isWin10(version: int = 1507, atLeast: bool = True):
def isWin10(version: Union[int, string] = 1507, atLeast: bool = True):
	if isinstance(version, int):
		version = str(version)
	assert isinstance(version, str)

Though this should be done in a subsequent PR.

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @josephsl

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.

4 participants