SyMenu Forum

SyMenu

 

HomeGeneral discussion & questions

Talk about SyMenu or post suggestions, requests, or how-to questions

low space flash drive Messages in this topic - RSS

QQQQ
QQQQ
Posts: 3


27/11/2021
QQQQ
QQQQ
Posts: 3
Love using SyMenu for running portable apps in a portable mode without the need to install it. Thank you for your hard work and effort.

I have issues with Brave, although I don't think that the issue is only related to Brave, it relate to programs that have lots of saved data.
Brave has 4g of data saved in the profile, when trying to update it with the new version, it ends up failing since it does have not enough space on the drive to clone the entire 4g and then install the new version. However, the installation/updating process needs only to replace a couple of files and folders, without touching the Brave user files. When copying those files manually, its works without the need to clone everything.

Is there a solution to low space using portable apps?

Thanks
link
Gianluca
Gianluca
Administrator
Posts: 1062


28/11/2021
Gianluca
Gianluca
Administrator
Posts: 1062
Welcome to the community.

You are right, the Brave installation process needs to duplicate the used disk space when updating to temporary preserve a program backup copy in the trash folder.
I don't know exactly the file structure for Brave but trashing the entire folder, installing the new version and restoring the user folders, is a quite common way to proceed for our suite programs, especially for those ones that we don't know very well.

Anyway your problem is easy to workaround in two ways.

1)

Brave browser is built atop Chromium and for this reason the program has the same exact options and behaviors.

If I was in your shoes I will redirect the user folders in a path outside the Brave root. SyMenu has a special folder for this purpose called [SyMenu]\Profiles but you are free to choose whatever else folder you want. This way every update will ask for an additional 300MB space only for the temporary trashed copy.

How can you redirect the user folders?

For any Chromium browser is easy to do because you have to redefine the environment variable pointing to the appdata\local folder (SyMenu allows to do this kind of hacks with advanced parameters - environment variables - LOCALAPPDATA env var).
Unfortunately Brave portable launcher already redirects the roaming folder to the Data folder located inside the program root folder. And the portable launcher is stronger than the SyMenu launcher.

To solve that you can bypass the Brave portable launcher, pointing to the real Brave executable and the trick is served.

To sum up:
  • create by hand a Brave entry pointing to .\ProgramFiles\SPSSuite\SyMenuSuite\Brave_portable_(x64)_sps\app\brave.exe file. You can call it My Brave portable (x64);
  • in the program advanced parameters add these environment variables: LOCALAPPDATA=.\..\..\..\..\..\Profiles\BraveRoaming or change the target folder as you desire;
  • save the item;
  • start the program through the new item to check if the paths is right (a bunch of folders and files must be created inside the Profiles\BraveRoaming folder);
  • close the program;
  • move the old Data folder, that one with your personal data, inside the new BraveRoaming folder (please respect the right relative paths);
  • hide the old item pointing to the original Brave portable entry (please remember you have not to delete it, otherwise SyMenu will physically remove the entire program, only hide it with F3).
  • done! From now on your Brave folder will weigh less than 300MB and the additional disk space required during the update will weigh accordingly.


2)

If the previous workaround is too much for you, the other way is simpler: increase the available space for your portable installation by buying a new disk and move the entire SyMenu to the new one.



If you choose the 1) method (the smarter one... that one I think you should choose), please report your experience and results here to be helpful for other users.
+1 link
QQQQ
QQQQ
Posts: 3


28/11/2021
QQQQ
QQQQ
Posts: 3
Thank you, option 1 works like a charm.
link



UGMFree.NET ©2002-2022
By Gianluca Negrelli - Contact me