Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Universal path to chrome.exe

I am making an application and I want to make it installable on the user's desktops using chrome URL shortcut. Therefore, is there a universal path to the chrome.exe that can launch my app on all Windows versions ( XP, Seven and vista )

like image 567
Sirine Hlima Avatar asked Jul 19 '13 00:07

Sirine Hlima


People also ask

Where can I find Chrome exe?

Otherwise, LEAPWORK may not be able to find Chrome.exe file in its default location, usually, the default location in 64-bit Windows operating system is C:\Program Files (x86)\Google\Chrome\Application\chrome.exe and in 32-bit Windows operating system it is C:\Program Files\Google\Chrome\Application\chrome.exe.

What is the file path for Google Chrome?

If you didn't change your default download location, then Google Chrome downloads files to the following locations: Windows 10, 8, 7 and Vista: \Users\<username>\Downloads. Mac: /Users/<username>/Downloads. Linux: /home/<username>/Downloads.


2 Answers

Chrome installs by default to the User's AppData Local folder:

XP: C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome  Vista: C:\Users\UserName\AppDataLocal\Google\Chrome  Windows 7: C:\Program Files (x86)\Google\Application\chrome.exe 

Update: As mentioned in a comment, it appears the path to chrome.exe has changed in Win7/8. It's now in: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

Best bet is to use some OS detection code, then use an environment variable to detect the User's AppData folder (i.e. %LOCALAPPDATA%) or the ProgramFiles folder, and then append the difference in OS's to the end of the variable.

like image 70
J. Scott Elblein Avatar answered Sep 21 '22 06:09

J. Scott Elblein


You can look in the Registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe 
like image 22
Clay Nichols Avatar answered Sep 18 '22 06:09

Clay Nichols