Page 1 of 1

Portable

Posted: Mon Feb 02, 2015 9:20 pm
by PureGuy
Currently I use PE mostly portable cause I switch places very often lately.

Instead of these 3 switches we have:

/NOEXT
/LOCAL
/PORTABLE

why not make it portable by default, in case PureBasic.prefs exists next to PureBasic.exe?

And one thing i found to be annoying on my home pc, where I often switch between LTS and last stable
is the file registration.

Unlike every esle software PE register it file types everytime one starts Purebasic.exe :shock:

It should be done once with setup PB and than be an option in IDE, but not done every time.

Re: Portable

Posted: Mon Feb 02, 2015 9:45 pm
by Shield
PureGuy wrote:why not make it portable by default, in case PureBasic.prefs exists next to PureBasic.exe?
Because you cannot just write to application directories, they might be protected and used by multiple different users.
PureGuy wrote:It should be done once with setup PB and than be an option in IDE, but not done every time.
I agree on that one.

Re: Portable

Posted: Mon Feb 02, 2015 9:46 pm
by c4s
Yes, a very important feature request!

I hope you don't mind if I use this chance to refer to my related request: IDE - Relative paths for all preferences

Re: Portable

Posted: Mon Feb 02, 2015 10:25 pm
by PureGuy
Well shield, let me re phase it.

"why not make it portable by default, in case PureBasic.prefs exists next to PureBasic.exe (and the PB folder is writable)?"

Good point c4s, that something I forgot to mention. :D

Re: Portable

Posted: Mon Feb 02, 2015 11:16 pm
by PB Fanatic
PureGuy wrote:why not make it portable by default
That's how PureBasic used to work. It got changed many versions ago. I just created my own exe instead which launches PureBasic.exe with the /PORTABLE switch, and I run that exe instead of PureBasic.exe to always open the app portably.

Re: Portable

Posted: Mon Feb 02, 2015 11:34 pm
by juror
Or from a shortcut

Target YourLocation\PureBasic.exe /portable

Re: Portable

Posted: Mon Feb 02, 2015 11:57 pm
by PB Fanatic
Shortcuts are not portable. ;) I can take my PureBasic folder (on SD card) to any PC and run it portably. A shortcut is tied to the PC on which it's created.

Re: Portable

Posted: Tue Feb 03, 2015 1:00 am
by juror
It was just a suggestion PB ;)

Didn't mean to imply it was better than yours. I'm not an expert.

Re: Portable

Posted: Tue Feb 03, 2015 1:14 am
by PB Fanatic
juror wrote:Didn't mean to imply it was better than yours.
Don't worry; I didn't take it that way. Relax. :) But the topic is portability, so I was just pointing out that a shortcut won't allow that.

Re: Portable

Posted: Tue Feb 03, 2015 11:37 am
by Vera
+1 for old friendly portability 8)

Yes, I'm too very unhappy with PB not being portable anymore without bigger issues.
Also fiddling around with the file registration is annoying to be made undone everytime it happens and if you're very unlucky it even corrupts your portable prefs by overwriting them. [better keep save-copies - just in case ;-) ]

As alternative for shortcuts you could also use batch-files.

@PB Fanatic
you might like to have a look at Horst's ShortExe which enables you to start any app on (from) portable drives.
And as you're switching places often you might find his launcher-apps (Qsel, PopSel) which too regard drive-changes, handy to use.

greets ~ Vera

Re: Portable

Posted: Tue Feb 03, 2015 11:59 am
by Lord
I use a shortcut next to PureBasic.exe in PureBasic folder
with the /PORTABLE switch.
I have some version of PB in seperate folders, each folder
has its own shortcut.
I run PB not on a system partition. All PB related folder
reside on a seperate drive. Temp exes are created in
source code folder. Each PB version has its own source
folder.
If a new PB version is out, I just copy *.prefs from the
last version in the new folder and create a new shortcut
in this folder. That's all.