Brave portable - Download and install the latest portable setup where you want then run brave-portable.exe.
If you have already installed Brave from the original setup, move the following files:
%APPDATA%\BraveSoftware\Brave-Browser\User Data\* to data
Then run brave-portable.exe and remove Brave from your computer.
Upgrade
For an upgrade, simply download and install the latest portable setup.
Modifications
Here is what differs from the original release to ensure portability:
Following switches are passed to the process.
--user-data-dir=data_path : Directory where the browser stores the user profile. data_path is dynamically generated at launch.
--disable-brave-update : Disable automatic update to avoid regressions.
--no-default-browser-check : Stops Brave from checking if it is the default browser at startup.
--disable-logging : Force logging to be disabled.
--disable-breakpad : Disables the crash reporting.
--disable-machine-id : Allows disabling the machine ID generation on Windows.
--disable-encryption-win : Allows disabling encryption on Windows for cookies, passwords, settings
A shortcut is created at launch to allow native notifications and removed when Brave is closed
--disable-machine-id and --disable-encryption-win have been specially crafted to ensure portability.