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

Polish the Windows upgrade experience #1916

Closed
3 tasks done
bsclifton opened this issue Oct 31, 2018 · 7 comments
Closed
3 tasks done

Polish the Windows upgrade experience #1916

bsclifton opened this issue Oct 31, 2018 · 7 comments

Comments

@bsclifton
Copy link
Member

bsclifton commented Oct 31, 2018

Steps we can take to make sure the Windows upgrade is as smooth as possible

  • Ensure the name that shows in Default app settings is accurate. This gets updated during the upgrade... but doesn't always seem to be reflected. We may need to flush the MUI cache
  • If a shortcut is pinned to the taskbar (before the upgrade), it needs to work after upgrade is done. It should launch into Brave Core
  • @simonhong finished work on the offline installers for Windows. We should consider packaging these instead of using a stub installer. This would still need to do a silent install (ex: not escalating via UAC). The download of the Muon update will be bigger, but the install should be much quicker (especially if our CDNs experience an outage or folks are experiencing a slow connection)
@bsclifton
Copy link
Member Author

The behavior for the taskbar pin is a little odd, but it DOES work 😄 (not sure why it didn't work during the demo). Basically, it launches brave-core (which has a different icon). So the pinned item never gets focus/underline (since a different executable was launched)

@bsclifton
Copy link
Member Author

bsclifton commented Nov 2, 2018

For the first item, I did notice the wrong name was present in the MUI cache:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache

Deleting this key will cause it to get "re-calculated"... but even after doing that, the UI didn't update. The original key which gets set is here:
brave/browser-laptop@ff26edb#diff-ac3c512cd6ab5e2c8b8956234544a8a1R70

Somehow, the entry was removed from HKEY_CURRENT_USER\Software\Classes\Applications. I wonder if BraveDefaults.exe (which can add and remove the key) was ran during the upgrade and removed it

edit: I'm an idiot 🤦‍♂️ I never added the above change for Nightly (which is the channel I'm testing 😂 )

@bsclifton
Copy link
Member Author

OK two of the items fixed above last nite 😄

@simonhong hooked me up with an offline omaha installer and I verified it works and also doesn't open the browser afterwards. He got me a copy of the one for master- I'll need one for 0.56.x on 32-bit and 64-bit cc: @mbacchi (basically blocked until we can get those

@bsclifton
Copy link
Member Author

bsclifton commented Nov 5, 2018

I looked at several approaches without luck. Basically, I tried creating a file master_preferences and putting it into place BEFORE the install (into the directory the brave.exe is installed into). It never gets loaded, even with a fresh profile. The contents of the master_preferences file I was using are:

{
  "distribution": {
    "do_not_launch_chrome": true
  }
}

It looks like Omaha does support passing arguments to the mini_installer.exe. I tried using the /appargs command line switch for Omaha client and it throws an error. Specifically, I was trying to pass installdata= and then the above JSON in a URL encoded format:

BraveBrowserStandaloneSetup_70_0_56_8.exe /silent /appargs "installerdata=%7B%22distribution%22%3A%20%7B%22do_not_launch_chrome%22%3A%20true%7D%7D" /install

But it appears this isn't available to Omaha client (it must be a step on the Omaha server side; perhaps when calling ApplyTag.exe)

@bbondy bbondy added this to the 1.x Backlog milestone Nov 5, 2018
@simonhong
Copy link
Member

simonhong commented Nov 6, 2018

With https://github.com/brave/omaha/pull/13/files, we could migrate muon to brave silently with standalone installer.

@bsclifton
Copy link
Member Author

bsclifton commented Nov 6, 2018

For next steps:

Earlier today, I verified an executable @simonhong created from master using brave/omaha#13, so this approach should work great 😄

@bsclifton bsclifton removed the blocked label Nov 6, 2018
@bsclifton
Copy link
Member Author

We can move forward with just 64-bit (which I confirmed works as expected!)

We'll be having a release which quickly follows 0.56.x. For that final release, we'll need to update the binaries for all platforms

@bsclifton bsclifton modified the milestones: 1.x Backlog, Dupe / Invalid / Not actionable Nov 29, 2018
@bbondy bbondy removed this from the Dupe / Invalid / Not actionable milestone May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants