sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.78k stars 1.54k forks source link

Brave refuses to update #2520

Open NewKidOnTheBlock opened 1 year ago

NewKidOnTheBlock commented 1 year ago

Describe what you noticed and did

Issue updated June 2024

  1. Create a new sandbox for Brave
  2. Install an outdated version of BraveBrowserStandaloneSetup.exe (https://github.com/brave/brave-browser/releases) into the sandbox
  3. Launch sandboxed Brave
  4. Go to Settings -> About Brave
  5. Let the update check run brave1check
  6. Wait for Brave to download the update brave1download
  7. Click on Relaunch brave2relaunchprompt

-> When Brave has restarted, you are back at 5.) with your old version 1.66

This loop can be repeated endlessly. Brave never manages to actually update itself to version 1.67

How often did you encounter it so far?

always

Affected program

Brave x64

Download link

https://github.com/brave/brave-browser/releases

Where is the program located?

The program is installed only inside a sandbox (NOT in the real system anyway).

Expected behavior

Brave should be able to update.

What is your Windows edition and version?

Windows 10 22H2 64bit

In which Windows account you have this problem?

A local or Microsoft account without special changes.

Please mention any installed security software

Microsoft Defender

What version of Sandboxie are you running?

Sandboxie Plus 1.13.7

Is it a new installation of Sandboxie?

I recently did a new clean installation.

In which sandbox type you have this problem?

In a standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on an empty sandbox?

Not relevant to my request.

Sandboxie.ini configuration

#
# Sandboxie configuration file
#

[GlobalSettings]
NetworkEnableWFP=y
FileRootPath=D:\Sandbox\%SANDBOX%
KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
Template=WindowsRasMan
Template=OfficeLicensing
TemplateReject=Edge_Fix
TemplateReject=WindowsLive
TemplateReject=AdobeAcrobatReader
TemplateReject=7zipShellEx
DefaultBox=NoWeb
UsbSandbox=USB_Box

[UserSettings_0C980217]
SbieCtrl_AutoStartAgent=SandMan.exe -autorun
SbieCtrl_EnableAutoStart=y

[Brave]
Enabled=y
BlockNetworkFiles=y
BorderColor=#00ffff,ttl,6
Template=AutoRecoverIgnore
Template=LingerPrograms
Template=BlockPorts
Template=qWave
Template=FileCopy
Template=SkipHook
Template=OpenBluetooth
ConfigLevel=10
ClosePrintSpooler=y
AllowNetworkAccess=<BlockNetAccess>,n
ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
DropAdminRights=y
FakeAdminRights=y
FakeAdminRights=CredentialUIBroker.exe,n

[Template_Local_SharedTemplate]
Tmpl.Title=Shared Template
Tmpl.Class=Local
#DisableWizardSettings=n
#RemoveDefaultAll=n
#RemoveDefaultRecovers=n
#RemoveDefaultTemplates=n
Tmpl.Comment=Add your settings after this line.
DaneXtream commented 1 year ago

Not entirely sure, but Brave installs some update services which are required for update and should be started with:

StartService=brave

image

Source: https://community.brave.com/t/why-does-brave-need-to-install-windows-services/174721/4

NewKidOnTheBlock commented 1 year ago

Must be something along those lines. I've given Brave its own dedicated sandbox and never deleted its contents. I've noted that the update check takes pretty long.

NewKidOnTheBlock commented 1 year ago

Brave 1.47 came out. The Brave in my sandbox refuses to update and stays at 1.46 brave

NewKidOnTheBlock commented 1 year ago

Retry with Brave 1.51 Good News: The downloading part is working now: working now Bad News: ...but when you restart Brave, the update loop starts all over again working now 2 ...go back to the top screenshot, because the update doesn't stick.

NewKidOnTheBlock commented 4 months ago

I've done a full update on the issue with a current version of Sandboxie Plus and Brave and new screenshots.

offhub commented 4 months ago

When relaunching after the update, new_chrome.exe should be renamed to brave.exe, but this does not happen.

  1. Set a trigger as shown below.
    Example trigger
StartProgram=cmd.exe /c "cd /d "%ProgramFiles%\BraveSoftware\Brave-Browser\Application" && if exist "new_chrome.exe" move /Y "new_chrome.exe" "brave.exe""

  1. Instead of clicking the Relaunch button, restart the browser after killing (or exiting) all processes in the sandbox.
NewKidOnTheBlock commented 4 months ago

The trigger-execution-on-shutdown is a brand-new feature that was introduced only a couple of months ago. I've searched the settings menu up and down, but couldn't find where to put the trigger. Could you tell me where the trigger has to go?