Run PureBasic from USB Flash Drive

Everything else that doesn't fall into one of the other PB categories.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Run PureBasic from USB Flash Drive

Post by josku_x »

Hello!

I am going the next week to Sweden for some time, and I wanted to know if I could copy PureBasic to my USB Flash Drive. Because, I am sure I cannot install anything in a internet cafe.

What I would like to know is if I could just copy the standalone PB debugger and the compilers including all residents etc...

So, if this is possible please tell me what should I copy and what not.

Thank you.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

copy the whole dir, excluding samples

anyway, it's so small, you could copy all and still run it from a stick
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

With USB Flash Drive I mean an USB stick.

Looking though, my PB folder is 50 Megs :shock: It's because I have all kinds of UserLibs and I have the Win API helpfile..

And my USB "stick" can take 32 Megs. And the problem is, I have about 6 Megs free space, because I have all kind of bullsh*t on it :wink:


:arrow: I looked how much the PB folder is without the UserLibs and the help files, and it seems to be about 10 Megs :evil:
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

THen delete some bullsh*t from it! :wink:
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

128 mb stick: 14 euro ex vat
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Yeah, I'm going to buy one...

BTW, I don't know much on hardware, but is this one good for the price?:

"Kingston DataTraveler Elite 2GB" for 158.99 €

I thought I might need bigger storage, as I hate to use my 32MB bullsh*t.
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

You can get a 32MB for free now :wink:

BTW: I have PB on my 1GB USB key (iPod Shuffle) and it works perfectly.. :D
Last edited by Bonne_den_kule on Tue Jan 31, 2006 6:04 pm, edited 1 time in total.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Good to hear that, and I got my 32MB from a subscription.. If I remember right, it was something like: "subscribe to get our magazine every week and get a USB Flash Drive"...
:lol:

But, I am going to buy that Kingston one, it seems to be cheap.. or, what do you say?
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Post by Baldrick »

I just had a play around with a couple of flash memory sticks I have here.
The result is 1 works fine, a little slow but works well. - { SanDisk Cruzer Micro 256MB }
The other is just "NO" It failed, failed & failed, even crashed my computer once. - { Manac.com.au flash memory 256MB }

For WIW, the Cruzer unit I have, I have set up as a bootable drive to allow me to run some old DOS programs I still use with my work which the manufacturers havent updated. - Don't intend to update.
This allows me to keep my home computer as NTFS & be able to run these old DOS programs via my bootable Flash drive.
Also for people interested, if you want, there are a couple of Linux versions around which you can setup to run directly from a bootable Flash memory stick now. - Knoppix is 1 of them
I don't know enough about Linux to bother trying to set 1 up, but would be interested to know if anyone else has done this. :)
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

ok. I bought the Kingston stick and copied the whole PB directory including the examples and the help files. It is very sad to say but, PB doesn't work when I run it. First, it needs very much to load, then it says Not Responding and I have to kill the process. I tried several times, but without luck :cry:
I hate that Kingston one. But I'll use it to store my bullsh*t :wink:
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

I Have PB on a 1GB Transcend USB2 stick, works fast, no problems at all.
killfreak
New User
New User
Posts: 7
Joined: Fri May 12, 2006 3:27 pm

Post by killfreak »

Great to hear that PureBasic runs from a stick well. But would like to know if current version (PB4) is running in "true" portable mode?

To be specific:
- does not write anything to the registry
- all file references (eg help, pref files) are accessed by relative path (in case the USB drive is assigned a different letter)
- does not write anything to Window's current user App Data folder.
- does not require Administrator windows user account.

To save me the trouble, has anyone tried running it with a registry and file monitor? I believe the /NOEXT is important here.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

> - does not write anything to the registry

The IDE writes the *.pb file association to the registry on startup
Disable that with the /NOEXT switch

> - all file references (eg help, pref files) are accessed by relative path (in case the USB drive is assigned a different letter)
> - does not write anything to Window's current user App Data folder.
> - does not require Administrator windows user account.

All these are the case without needing any extra steps.
quidquid Latine dictum sit altum videtur
killfreak
New User
New User
Posts: 7
Joined: Fri May 12, 2006 3:27 pm

Post by killfreak »

that's great to know, thanks!
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

@killfreak
you have animosity against freak?
Post Reply