Google Chrome Path in Windows 10
Asked Answered
S

7

41

Google repeatedly changed the path to the .exe of Chrome. Sometimes it's hidden in %APPDATA%, in Version 35/36 they changed the path back to program files. There are also differencies across the Windows versions.

Where is Google Chrome located in Windows 10?

Sassaby answered 18/11, 2016 at 10:36 Comment(1)
See #45385393Acolyte
C
56

Please see the screenshot which gives you the ability to seek for the current path of google chrome path or any other application Task Manager - Windows 10

enter image description here

Composite answered 15/10, 2017 at 12:51 Comment(2)
It isn't work in my OS Open file location for Chrome is disabledKalynkam
Check the sub processes and not the main one.Tenpenny
S
30

Windows 10:

  • %ProgramFiles%\Google\Chrome\Application\chrome.exe
  • %ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe
  • %LocalAppData%\Google\Chrome\Application\chrome.exe

Windows 7:

  • C:\Program Files (x86)\Google\Application\chrome.exe

Vista:

  • C:\Users\UserName\AppDataLocal\Google\Chrome

XP:

  • C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome

There are also Registry Keys and environment variables to use. Check out this post for universal use for programming.

Sassaby answered 18/11, 2016 at 10:36 Comment(1)
It changed again. On Windows 10 the path might as well be C:\Users\USER\AppData\Local\Google\Chrome\Application\chome.exeTenpenny
A
8

Chrome can be installed in various places on Windows, for a given user or "all users", in which case it's installed in Program Files.

To determine where it is programmatically:

Batch file:

set exe=
FOR /F "tokens=2* skip=2" %%a in ('reg query HKCR\ChromeHTML\shell\open\command /ve') do set exe=%%b
set exe=%exe:"=%
set exe=%exe:~0,-6%

PowerShell:

(gp Registry::HKCR\ChromeHTML\shell\open\command)."(Default)" -match '"(.*?)"' | Out-Null
$exe=$matches[1]

C#:

var exe = System.Text.RegularExpressions.Regex.Match((string)Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(@"ChromeHTML\shell\open\command").GetValue(null),
          @"""(.*?)""",
          System.Text.RegularExpressions.RegexOptions.None)
      .Groups[1].Value;

Python

import winreg
import re
command = winreg.QueryValueEx(winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, "ChromeHTML\\shell\open\\command", 0, winreg.KEY_READ), "")[0]
exe=re.search("\"(.*?)\"", command).group(1)

VBA / VBScript

Set objShell = CreateObject("WScript.Shell")
cmd = objShell.RegRead("HKCR\ChromeHTML\shell\open\command\")
exe = Mid(cmd, 2, 999)
exe = Left(exe, InStr(exe, Chr(34)) - 1)
Acolyte answered 23/9, 2020 at 4:43 Comment(3)
Thank you for a programmatic answer - not sure why you would want another else on stack overflow! :)Tonus
Tried the batch version and did not work for me since my registry has: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --single-argument %1Corri
Thanks! About the python solution. Is the reg path missing a "\"?: "ChromeHTML\\shell\\open\\command"Dmso
F
2

The answer I am writing is applicable for any software/application installed on windows.

Windows 10
  1. Click on windows button and search for the application, in this case Chrome. Right click on application name and click on "Open file location". enter image description here

  2. You will reach at location of the shortcut of that application. Again right click on the application shortcut and then click on "Open file location" and you will get the path from top url/path bar of explorer or you can click on properties to get the path as shown in image. enter image description here

And you will get your path for desired application from tab shown in image. enter image description here

PS: Doesn't works for apps installed from windows store.

Franglais answered 5/5, 2020 at 18:10 Comment(0)
F
1

To find the location of Google, type the following command...

chrome://version

And then look for Command Line on the left side of the screen.

Fridell answered 7/2, 2022 at 11:54 Comment(1)
Thanks! On MacOS (for me) It's /Applications/Google Chrome.app/Contents/MacOS/Google ChromeKaph
R
0

Right click on the sub process to see the open file location :

Screenshot

Remark answered 1/6, 2020 at 18:14 Comment(0)
S
0

I found something in the Registry when I installed Chrome Canary at the same time.

in a batch file, using chrome.exe it always opens Canary...

then I change from: Equipo\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe "C:\Users\heratess\AppData\Local\Google\Chrome SxS\Application\chrome.exe"

To: Equipo\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe C:\Program Files\Google\Chrome\Application\chrome.exe

and it worked for me.

maybe it could help you.

Satisfaction answered 1/9, 2022 at 7:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.