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

[Desktop] Install 64bit to C:\Program Files\ #11152

Closed
mattmill30 opened this issue Aug 10, 2020 · 5 comments
Closed

[Desktop] Install 64bit to C:\Program Files\ #11152

mattmill30 opened this issue Aug 10, 2020 · 5 comments
Labels
closed/works-for-me OS/Desktop OS/Windows priority/P5 Not scheduled. Don't anticipate work on this any time soon. setup/installer

Comments

@mattmill30
Copy link

mattmill30 commented Aug 10, 2020

BraveBrowserStandaloneSetup.exe (64bit) doesn't install to C:\Program Files, but rather C:\Program Files (x86)\

Description

Installing from BraveBrowserStandaloneSetup.exe (64bit) on a 64bit Windows 10 places Brave into C:\Program Files (x86)\ rather than C:\Program Files\

Steps to Reproduce

On 64bit Windows:

  1. Download BraveBrowserStandaloneSetup.exe from GitHub releases - https://github.com/brave/brave-browser/releases/tag/v1.11.104
  2. Right click downloaded file and "Run as administrator"
  3. Find BraveSoftware folder in C:\Program Files (x86)\

Actual result:

Brave installs to C:\Program Files (x86)\ rather than C:\Program Files\

Expected result:

Install a 64bit version of Brave to C:\Program Files\

Brave version (brave://version info)

v1.11.104

  • Can you reproduce this issue with the current release?
    Yes
  • Can you reproduce this issue with the beta channel?
    Not tried
  • Can you reproduce this issue with the nightly channel?
    Not tried

Miscellaneous Information:

Given Brave uses the Chrome installer, how does one produce installation logs or an MSI?

  • I tried using the --msi, but I couldn't find the MSI, if one was created
@bsclifton
Copy link
Member

This is behavior of the installer unfortunately. We do have an issue open for being able to change the install directory, if you'd like to subscribe
#598

Closing this issue as a duplicate

@bsclifton bsclifton added closed/duplicate Issue has already been reported OS/Windows labels Aug 14, 2020
@mattmill30
Copy link
Author

mattmill30 commented Aug 14, 2020

I don't believe this is an intentional behaviour of the installer, because the installer has support for

      L"PROGRAMFILES",  // With or without " (x86)" according to exe bitness.
      L"PROGRAMFILES(X86)",  // Always "C:\Program Files (x86)"
      L"PROGRAMW6432",       // Always "C:\Program Files" under WoW64.

https://github.com/chromium/chromium/blob/6efa1184771ace08f3e2162b0255c93526d1750d/base/base_paths_win.cc#L56
https://github.com/chromium/chromium/blob/55f44515cd0b9e7739b434d1c62f4b7e321cd530/chrome/install_static/product_install_details.cc#L62

I also note that #598 refers to a duplicate Chromium bug, which has been closed in favour of https://bugs.chromium.org/p/chromium/issues/detail?id=302491#c27 in which [email protected] has requested enterprise users make contact to confirm the demand for this feature.

Two reasons why I don't believe this should be closed as a duplicate.

  1. this should be a relatively easy fix, because it relates to correctly handling the ENVIRONMENT variable, which should require a tweaking of the existing code, rather than the addition of a new feature. I've checked the "exe bitness" of the installer files using a superuser guide and since they are 64bit, the installer should be correctly selecting the target path as C:\Program Files
  2. although the linked bug requests a feature to "change the install location", which would potentially allow users to correctly direct the installation to C:\Program Files, that feature is completely different to the installer automatically selecting the correct target_path according to the system architecture

@bsclifton bsclifton reopened this Aug 14, 2020
@bsclifton bsclifton added setup/installer and removed closed/duplicate Issue has already been reported labels Aug 14, 2020
@rebron
Copy link
Collaborator

rebron commented Sep 11, 2020

@bsclifton Are we waiting for an upstream fix for this one?

@rebron rebron added priority/P5 Not scheduled. Don't anticipate work on this any time soon. Chromium/waiting upstream Issue is in Chromium; we'll likely wait for the fix labels Sep 11, 2020
@bsclifton
Copy link
Member

@rebron can't hurt to wait for upstream; would be a nice to fix

@bsclifton
Copy link
Member

Looks like this has been fixed since last comment - maybe a Chromium rebase fixed a bad patch we had (if Chromium was working as expected)?

Closing - maybe you can recheck @mattmill30 😄

@bsclifton bsclifton added closed/works-for-me and removed Chromium/waiting upstream Issue is in Chromium; we'll likely wait for the fix labels Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed/works-for-me OS/Desktop OS/Windows priority/P5 Not scheduled. Don't anticipate work on this any time soon. setup/installer
Projects
None yet
Development

No branches or pull requests

3 participants