Regex & Rainmeter - Clarification of Win 10 "winver" output

I'm using the following to get a version build from Window's Registry:

Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\Software\Microsoft
RegValue=BuildLab

Open in new window


The output from Windows is: 16299.rs3_release.170928-1534

MeasureName=Measure.OS_Service_Pack
Meter=STRING
X=#X#
Y=#Line_05#
W=#Width#
StringStyle=NORMAL
StringAlign=CENTER
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
Antialias=1
Text="Version: %1"

Open in new window


The final output on Rainmeter is: Version: 16299.rs3_release.170928-1534

I need to update this to: Version: 1709 (OS Build 16299.125) - the same result as the output from running "winver" on a Win 10 machine.

Any ideas?
Mike DiasAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
You have an Insider release on this machine.  See if you can run a Repair Install from the Microsoft Media Creation Link to get to V1709.

Otherwise update the machine to V1803. My insider machine is at V1803.

All else fails Microsoft says be prepared to format and reinstall a production version
0
zvitamConsultantCommented:
You can get the current version from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId (Value 1709)

You can get the current build from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuild (Value 16299)

You Can get the minor build nuber from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\UBR (Value 125)

In order to get the same output as winver you just have to do some formatting.

Hope that helps,
Zvitam.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike DiasAuthor Commented:
Thanks Zvitam. I can bridge the two registry values (1709) and (16299) without needing Regex.

Wasn't aware of the minor build reference.
0
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Mike DiasAuthor Commented:
I can bridge the two registry values (1709) and (16299) without needing Regex.
0
JohnBusiness Consultant (Owner)Commented:
I was addressing getting back to production. The only production release you can get now (as of today) is V1803 . You cannot get back to V1709 now without formatting and installing fresh
0
zvitamConsultantCommented:
The question was not about the installed version but how to display the windows version using  registry values
(The version was an example)
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.