Option to install as portable

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Option to install as portable

Post by Trond »

It would be nice with an option to install PureBasic as portable. This would not require any new functionality in PB itself, all this option would to is to create the shortcuts with the switches to store the prefs file in the program directory and not register file associations.
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: Option to install as portable

Post by flaith »

Code: Select all

PureBasic.exe /PORTABLE
:)
“Fear is a reaction. Courage is a decision.” - WC
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: Option to install as portable

Post by Foz »

Yes, that's fine, but what Trond is asking for is the installer to extract directly to the specified directory, not register extensions, and then automatically create a shortcut that has the /PORTABLE switch already active.

The issue is simple: you go to a public computer that will not all installations of programs - entirely understandable. However if there was a Zip file that could be downloaded from the PureBasic website, that could then be extracted to the "local" drive (usb/temp/whatever), and then if that has a shortcut with the /PORTABLE switch, you can get stuck in immediately.

However, I believe Trond's request, coupled with the timing of the release of 4.60b1, I think he wants an easy method of installing and trying without cocking up his perfectly good working version of 4.51. After all if you install everything to the defaults by accident, you will overwrite your 4.51 version and to return is then the uninstall, reinstall, add in all the addin's you've accumulated - a lot of wasted time and effort.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Option to install as portable

Post by Tenaja »

+1
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Option to install as portable

Post by Trond »

Foz wrote:However, I believe Trond's request, coupled with the timing of the release of 4.60b1, I think he wants an easy method of installing and trying without cocking up his perfectly good working version of 4.51. After all if you install everything to the defaults by accident, you will overwrite your 4.51 version and to return is then the uninstall, reinstall, add in all the addin's you've accumulated - a lot of wasted time and effort.
That's right, I don't want 4.60 to use the preferences file used by 4.51, as that may create problems.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Option to install as portable

Post by skywalk »

I know this has been asked before, but what is the safest way to install a new PB version without corrupting a prior release?
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Option to install as portable

Post by Little John »

Trond wrote:It would be nice with an option to install PureBasic as portable. This would not require any new functionality in PB itself, all this option would to is to create the shortcuts with the switches to store the prefs file in the program directory and not register file associations.
+ 1
skywalk wrote:what is the safest way to install a new PB version without corrupting a prior release?
The safest way probably is to install a new PB version on a separate computer. I'm not teasing you, in the past sometimes I actually installed new PB beta versions on a virtual machine for testing.

Currently, I have my stable PB version on a portable USB drive. On that drive, there is also Total Commander, which has internal "portable file associations" (great!!). I installed the new beta version on my system in C:\Programs\PureBasic460. When I double-click on a PB file in Total Commander, the file is opened with the stable PB release -- when I double-click on a PB file on the Desktop or Windows Explorer, the file is opened with the new beta release. :-)

Regards, Little John
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Option to install as portable

Post by Vera »

+1

I'd really appreciate a noninstaller-ZIP-version as well. :)

That would also make double/tribble-installations superfluous, which are needed right now to get hold of all the help-files.

4.60b1/2
Beware, the portable switch isn't working properly at the moment, the signalized fix isn't included yet.

greetings ~ Vera
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Option to install as portable

Post by MachineCode »

skywalk wrote:I know this has been asked before, but what is the safest way to install a new PB version without corrupting a prior release?
Just install it to its own folder and always run it with the "/portable" switch. As simple as that.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply