It is currently Thu Jul 29, 2010 5:39 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Portable PureBasic
PostPosted: Sat Mar 08, 2008 3:08 pm 
Offline
User
User
User avatar

Joined: Sun Dec 30, 2007 7:24 pm
Posts: 50
Does anyone know, or has anyone tried and succeeded, in installing the PureBasic IDE and compiler to a USB pen drive, thus allowing them to take their compiler and projects with them to other computers?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 08, 2008 3:19 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 393
Location: ger
many people do this (i don't). there is a chapter in the help manual about the IDE commandline parameter.
..the /PORTABLE one is that for.

http://www.purebasic.com/documentation/reference/ide_commandline.html


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 08, 2008 6:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 02, 2004 6:49 pm
Posts: 680
Location: Australia
Yes, PB runs fine from a usb drive.

Copy your entire PB directory to your pen drive & add a compiled copy of the code below into the main PB directory on this pen drive. Use this to start it instead of the main PB.exe directly & it will run using localised preferences, etc.

At least this works for me.. :)

Code:
If ReadFile(0,"PureBasic.exe")
If RunProgram("PureBasic.exe","/PORTABLE","PureBasic")=0 
  MessageRequester("Fault","PB failed to open")
EndIf
  Else
MessageRequester("Fault","PureBasic.exe file not found")
EndIf

_________________
Image
My new website under construction atm.will post url when it's all good :)


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Sun Mar 09, 2008 11:34 am 
Offline
User
User
User avatar

Joined: Sun Dec 30, 2007 7:24 pm
Posts: 50
Thanks for that, it's pretty straightforward after all then :roll:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 9:08 am 
Offline
Addict
Addict
User avatar

Joined: Mon Apr 28, 2003 2:22 pm
Posts: 866
Location: Duisburg, NRW, GER
What is the difference with /portable flag? I have a copy on my stick too and I run it successfully with out the flag set.

_________________
Tranquil
Grab my Music at: http://www.uptrax.com/MikeDelling
PB4.30, Windows Vista Ultimate,DX 9.0c & DX10 on:Intel Core Quad 6600, 4Gig DDR2 Ram,ATI 4870 512MB,Asus P5N 32E-SLI Board


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 12:53 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 393
Location: ger
pb will not put the (tool)prefs and templates in the systems %APPDATA%\PureBasic\ directory, but stead in the pb-dir directly (i.e. on the stick), and it won't write in the registry, so the system will not be touched.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 1:50 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 3028
Location: Berlin - Germany
Here my simple "PureBasic portable" exe:
Code:
RunProgram(GetPathPart(ProgramFilename()) + "PureBasic\PureBasic.exe", "/PORTABLE", GetPathPart(ProgramFilename()) + "PureBasic\")

_________________
http://www.realsource.de


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye