在注册表中查找Chrome浏览器的版本 [英] Find version of Chrome browser in registry
本文介绍了在注册表中查找Chrome浏览器的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用PowerShell获得Chrome版本?我尝试了以下查询:
How do I get Chrome version using PowerShell? I tried the following query:
(Get-ItemProperty 'HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome').DisplayVersion
这行不通.
推荐答案
这可能就是您想要的(它读取可执行文件的版本,而不是注册表中的值):
This is probably what you want (it reads the version of the executable, not a value from the registry):
(Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo
这篇关于在注册表中查找Chrome浏览器的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文