B4X FEED GetSystemProperty "os.name" and "os.version" not working for Windows 11

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: GetSystemProperty \"os.name\" and \"os.version\" not working for Windows 11 است. این موضوع تا کنون 95 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع GetSystemProperty \"os.name\" and \"os.version\" not working for Windows 11
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
95
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,517
4,383
I provide system info in my B4J application, and ever since I upgraded to Windows 11 I'm still getting "Windows 10" and "10.0" returned values, respectively - even though my developer laptop's Windows System info shows/displays this:

OS Name Microsoft Windows 11 Pro
Version 10.0.22593 Build 22593

My simple code is:

B4X:

Dim strSystemInfo = "{ B4J v9.30 / JRE v" & GetSystemProperty("java.version","-unknown") & " / " & GetSystemProperty("os.name","-unknown") & " OS v" & GetSystemProperty("os.version","-unknown") & " }"


Any reason why? Note, in case it's important, that I upgraded from Windows 10 to Windows 11 via the MS Windows Insider Program (first choosing Dev Channel and now the Beta Channel).

*Also, might there be a way to also dynamically gather the B4J compiler version (so no hard-coded value is necessary) from a running B4J application?

 

عقب
بالا