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

Incorrect Windows Version Detection on Windows 11 #6232

Open
Rovo1211 opened this issue Dec 14, 2024 · 0 comments
Open

Incorrect Windows Version Detection on Windows 11 #6232

Rovo1211 opened this issue Dec 14, 2024 · 0 comments
Labels
bug Identifies work items for known bugs

Comments

@Rovo1211
Copy link

Rubberduck version information
The info below can be copy-paste-completed from the first lines of Rubberduck's log or the About box:

Rubberduck version 2.59.6321
Operating System: [Windows 11 Home 23H2]
Host Product: [MS Excel]
Host Version: [office365]
Host Executable: [excel.exe]

Description
I’m running Rubberduck version 2.5.9.6321 on Windows 11 Home, version 23H2 (build 22631.4602). However, the Rubberduck log file still identifies the operating system as Windows 10 Home 2009 x64.
Here is the relevant log entry:
[Log entry]
2024-12-14 12:56:23.6823;TRACE-2.5.9.6321;Rubberduck.Common.LogLevelHelper;
Rubberduck version 2.5.9.6321 loading:
Operating System: Windows 10 Home 2009 x64 (Microsoft Windows NT)
[/log entry]
To Reproduce
Steps to reproduce the behavior:

  1. Run Rubberduck on Windows 11 (version 23H2).
  2. Check the Rubberduck log file.

Expected behavior
The log should correctly identify the operating system as Windows 11 Home.
Actual Behavior
The log incorrectly identifies the operating system as Windows 10 Home

Screenshots
If applicable, add screenshots to help explain your problem.
RubberduckLog.txt

Logfile
Rubberduck generates extensive logging in TRACE-Level. If no log was created at %APPDATA%\Rubberduck\Logs, check your settings. Include this log for bug reports about the behavior of Rubberduck.

Additional context
This seems to occur because Windows 11 still shares certain internal version data with Windows 10 for backward compatibility. Rubberduck may be using outdated or legacy APIs (such as GetVersionEx) to retrieve the OS version.

@Rovo1211 Rovo1211 added the bug Identifies work items for known bugs label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs
Projects
None yet
Development

No branches or pull requests

1 participant