You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
winVersion.winVersionText: text representation of Windows version information for use at startup and update checks
As noted on #11837, winVersion.WinVersion class and helper functions (including winVersion.getWinVer function) will record Windows version information for the current system and other Windows releases. Also, new constants will be added to winVersion module that will represent all supported Windows releases (for example, winVersion.WIN7_SP1) which can be used to provide rich comparisons, replacing version.major/version.minor checks and so on. Therefore, if winVersion.winVersion/winVersionText is kept, it will confuse developers.
Describe the solution you'd like
Remove winVersion.winVersion and winVersion.winVersionText altogether in favor of using winVersion.WinVersion class, winVersion.getWinVer function, and using winVersion.WIN* constants.
Describe alternatives you've considered
Leave winVersion.winVersion/winVersionText alone.
Additional context
This issue is blocked by #11837 and will be done as part of PR #11909 based on deprecation/removal comments recorded in the pull request mentioned. However, to provide backward compatibility for update checks, contents of winVersion.winVersion/winVersionText will be transfered to update check module in order to build version text as is done in 2020.4 and earlier (build string, service pack if any, product type).
Thanks.
The text was updated successfully, but these errors were encountered:
Recommended by Reef Turner (Nv Access): remove winVersion.winVersion/winVersionText to reduce confusion. In preparation for it, remove winVersion.winVersion/winVersionText calls from other modules, notably app modules, app module handler, UIA objects and places where winVersion.winVersion is used. Most are replaced by winVersion.getWinVer() function call, and in case build and other information must be retrieved, whatever winVersion.getWinVer returns will be used as a starting point.
Convenience methods and types have been added to the winVersion module for getting and comparing Windows versions.
- isWin10 function found in winVersion module has been removed.
- class winVersion.WinVersion is a comparable and order-able type encapsulating Windows version information.
- Function winVersion.getWinVer has been added to get a winVersion.WinVersion representing the currently running OS.
- Convenience constants have been added for known Windows releases, see winVersion.WIN* constants.
Closes#11795Closes#11837Closes#11933
Replaces #11796
Replaces #11799
Hi,
Blocked by #11837
Is your feature request related to a problem? Please describe.
winVersion module includes two variables (more towards constants) that record Windows version information:
As noted on #11837, winVersion.WinVersion class and helper functions (including winVersion.getWinVer function) will record Windows version information for the current system and other Windows releases. Also, new constants will be added to winVersion module that will represent all supported Windows releases (for example, winVersion.WIN7_SP1) which can be used to provide rich comparisons, replacing version.major/version.minor checks and so on. Therefore, if winVersion.winVersion/winVersionText is kept, it will confuse developers.
Describe the solution you'd like
Remove winVersion.winVersion and winVersion.winVersionText altogether in favor of using winVersion.WinVersion class, winVersion.getWinVer function, and using winVersion.WIN* constants.
Describe alternatives you've considered
Leave winVersion.winVersion/winVersionText alone.
Additional context
This issue is blocked by #11837 and will be done as part of PR #11909 based on deprecation/removal comments recorded in the pull request mentioned. However, to provide backward compatibility for update checks, contents of winVersion.winVersion/winVersionText will be transfered to update check module in order to build version text as is done in 2020.4 and earlier (build string, service pack if any, product type).
Thanks.
The text was updated successfully, but these errors were encountered: