Using the following PowerShell command,
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* |
Select-Object DisplayName, DisplayVersion |
Select-String 'Application Name'
I get an output like this:
@{DisplayName=Application Name; DisplayVersion=52.4.1521}
If this was on Unix, I could probably figure out a sed or awk command to extract the version number, but on Windows I don't even know where to begin. How do I get that version number out as the value of a variable?