Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome may be installed into %AppLocalData% folder #21

Open
XcantloadX opened this issue May 18, 2024 · 1 comment
Open

Chrome may be installed into %AppLocalData% folder #21

XcantloadX opened this issue May 18, 2024 · 1 comment

Comments

@XcantloadX
Copy link

https://stackoverflow.com/a/40674915/21950762

for i in range(2):
path = "C:\\Program Files" + (" (x86)" if i else "") + "\\Google\\Chrome\\Application"
if os.path.isdir(path):
paths = [f.path for f in os.scandir(path) if f.is_dir()]
for path in paths:
filename = os.path.basename(path)
pattern = "\d+\.\d+\.\d+\.\d+"
match = re.search(pattern, filename)
if match and match.group():
# Found a Chrome version.
return match.group(0)

@hasansezertasan
Copy link
Owner

If you navigate to "%ProgramFiles%\Google\Chrome\Application" in the Explorer, the new directory will look something like this: "C:\Program Files\Google\Chrome\Application".

Which is already supported (check out your permalink highlights).

But when I navigate to "%LocalAppData%\Google\Chrome\Application", I get an error, that such a directory doesn't exist.

Is this the new directory that the Chrome application will be installed on, in the next versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants