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 )
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.
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.
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.
You can look in the Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With