[英]What Windows registry key holds the path to the Chrome browser .exe
I want to check to see if Chrome is installed (on Windows XP+) and create a shortcut to Chrome to launch a specific website (that requires Chrome).我想检查是否安装了 Chrome(在 Windows XP+ 上)并创建一个指向 Chrome 的快捷方式来启动一个特定的网站(需要 Chrome)。
What Registry key has the Path to the Chrome .exe?哪个注册表项具有 Chrome .exe 的路径?
I think it's this (just from looking @ a Chrome install on Win xp and 7):我认为是这样的(仅从在 Win xp 和 7 上查看 @ Chrome 安装):
HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\Chrome.exe
This works on Windows XP and Windows 7 (and according to an answer below, Windows 8 and 8.1)这适用于 Windows XP 和 Windows 7(根据下面的答案,Windows 8 和 8.1)
HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\Chrome.exe
This path is also valid on Windows 8 and Windows 8.1, so I suspect that it'll work 99% of the time.此路径在 Windows 8 和 Windows 8.1 上也有效,因此我怀疑它在 99% 的情况下都能正常工作。 Keep in mind that these registry entries are not technically 100% reliable.
请记住,这些注册表项在技术上并非 100% 可靠。 You could also check here for 64-bit Windows.
您也可以在此处查看 64 位 Windows。 You shouldn't need the Wow6432Node node for 32-bit Windows.
对于 32 位 Windows,您不应该需要 Wow6432Node 节点。
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome
There is a DisplayIcon value there that points to the Chrome icon.那里有一个 DisplayIcon 值指向 Chrome 图标。 Just remove the index from the end of the path (ie. remove the ,0).
只需从路径末尾删除索引(即删除,0)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.