+ Reply to Thread
Results 1 to 5 of 5

Thread: Incorrect OS Version Returned

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Incorrect OS Version Returned

    On a Windows 10 PC, the following values are returned under the registry key HKLM\SOFTWARE\Microsoft\Windows NT

    CURRENTBUILD: 19041
    CURRENTMAJORVERSIONNUMBER: 10
    CURRENTMINORVERSIONNUMBER: 0
    CURRENTVERSION: 6.1
    EDITIONID: Professional
    RELEASEID: 2004



    Yet, the value of %WINVER% is 1024 ($WIN_7$). This is causing our installer to report as not supported on the PC. From where is %WINVER% populated?

    Thanks!

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Incorrect OS Version Returned

    Hello,

    which SetupBuilder version is this?

    Possible reasons: if the installer is running in compatibility mode, it can return WIN7 in this case. If the installer is not Windows 10 compliant, it can also return WIN7 here (this is by Windows design and the expected behavior). The %&WINVER$ comes from API calls (this is a Windows Development Guideline requirement).

    Please compile a small test.exe with your SetupBuilder version and upload it (or send it to support [at] lindersoft [dot] com) and we can tell you if it is #1 or #2.

    Friedrich

  3. #3
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Incorrect OS Version Returned

    BTW, I have uploaded a quick WINVER check app for you (compiled with the latest SetupBuilder version).

    http://www.lindersoft.com/projects/Check_Ver.zip

    It displays the correct value (65536) for Windows 10 here on our machines.

    Friedrich

  4. #4

    Default Re: Incorrect OS Version Returned

    Hello Friedrich,

    This is on only a few PCs globally. My team has been unable to reproduce it locally. I expect that on these PCs, either corruption has occurred, or the upgrade path to Windows 10 was unique. Are you able to specify which API calls are used?

    -Seth

  5. #5
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Incorrect OS Version Returned

    Seth,

    you can reproduce this on your machine! Just copy my "Check_Ver.exe" executable to a test folder on Windows 10. Right-click it and select "Properties". Go to the "Compatibility" tab and select "Run this program in compatibility mode for" WINDOWS 7. Click the Apply button and then OK. Run the App and it will display (as expected) 1024 on Windows 10 because it runs in Windows 7 compatibility mode ;-)

    I think your customer did the same. He can right-click your setup.exe and disable compatibility mode.

    Does this help?

    BTW, applications have to use the GetVersionEx API. The Registry values should never be used!

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •