question

osvbnet avatar image
0 Votes"
osvbnet asked XingyuZhao-MSFT answered

Check Windows 10 Release ID

Hey,
I need to check if my Windows 10 Release ID is, for example (1809 and newer) or (older)?
Is the best way checking the "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId" or there is some better .NET (4.6) built-in functions to do so?
Thanks for the advise.

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AddWebSolution-0525 avatar image
0 Votes"
AddWebSolution-0525 answered cheong00 commented

2 Ways to determine the Windows Feature Version / Release ID, check this :-
windows-get-windows-feature-version-release-id


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks dude, but my tag: dotnet-visual-basic means VB.NET not CMD/PS

0 Votes 0 ·

If you're not checking the registry value, remember to add corresponding supportedOS in manifest file or the system will lie to you.


0 Votes 0 ·

I already have added it to the manifest, my question was: is there a better way to check it? like .net fw 4.6 embedded function etc?

0 Votes 0 ·

IMO the registry version is already the most hassle-free approach if all you need is revision name.

Whether or not there is more appropriate approach would be depending on why you need this information. Say whether you need it for feature detection or what.

0 Votes 0 ·
XingyuZhao-MSFT avatar image
0 Votes"
XingyuZhao-MSFT answered

Hi @osvbnet ,

Is the best way checking the "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId"

Yes, for example:

 Dim releaseId As String = 
     Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId", "").ToString()

Hope it could be helpful.
Best Regards,
Xingyu Zhao


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.