Google Chrome 版本的 Windows 注册表位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20203947/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 11:07:42  来源:igfitidea点击:

Windows Registry location for Google Chrome version

windowsgoogle-chromeregistryversion

提问by TrojanKnight13

Where does Google Chrome store its version information locally?

Google Chrome 在本地将其版本信息存储在何处?

I'm developing a Lua script to access application version information found in the Windows registry, but can't find a registry key associated with the current installed version of Google Chrome Browser.

我正在开发一个 Lua 脚本来访问在 Windows 注册表中找到的应用程序版本信息,但找不到与当前安装的 Google Chrome 浏览器版本关联的注册表项。

The closest I've found was this, which indicates that the version info can be found at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome.

我找到的最接近的是this,这表明可以在HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome.

However, on my system, there is no Google Chromesubkey under Uninstallin the HKCUhive or corresponding HKEY_USERSpaths. Any thoughts?

然而,我的系统上,没有Google Chrome在子项UninstallHKCU蜂巢或相应的HKEY_USERS路径。有什么想法吗?

采纳答案by AlvaHenrik

It could be that your installation of google chrome is somehow messed up. I do have this registry key and it contains two values with the current version number.

可能是您安装的谷歌浏览器不知何故搞砸了。我确实有这个注册表项,它包含两个具有当前版本号的值。

Another way although not through the registry would be to check the folders in Users/[username]/AppData/Local/Google/Chrome/Application. I have a folder with the latest version number in there. (and a folder with an older version).

另一种虽然不是通过注册表的方法是检查 Users/[username]/AppData/Local/Google/Chrome/Application 中的文件夹。我有一个包含最新版本号的文件夹。(和一个旧版本的文件夹)。

AND I found something in the registry which might also work on every client: HKEY_CLASSES_ROOT\Wow6432Node\CLSID{5C65F4B0-3651-4514-B207-D10CB699B14B}\LocalServer32 The values there contain the version number in the path.

我在注册表中发现了一些可能也适用于每个客户端的内容: HKEY_CLASSES_ROOT\Wow6432Node\CLSID{5C65F4B0-3651-4514-B207-D10CB699B14B}\LocalServer32 那里的值包含路径中的版本号。

回答by franckspike

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe\
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\

回答by Sarah Wessel

The version can be found under HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon

该版本可以在下面找到 HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon

回答by Al.Pertro

That's because you are logged in under admin user and when you setup google chrome you setup it under local machine you will find value in this path

那是因为您是在管理员用户下登录的,当您设置 google chrome 时,您会在本地机器下设置它,您会在此路径中找到值

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9C447DD7-5DD2-358C-90A2-1997BD1D69D1}

maybe this name will be different {9C447DD7-5DD2-358C-90A2-1997BD1D69D1}

也许这个名字会不同{9C447DD7-5DD2-358C-90A2-1997BD1D69D1}