It is currently Sat Jan 23, 2021 9:33 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Different PB Versions - different Folders for settings?
PostPosted: Thu Apr 09, 2015 9:01 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Aug 03, 2003 12:06 am
Posts: 264
Location: Austria
Hi

There are more than 3000 Articles about Version - so I ask instead of reading them all

I need to run 3 different versions of PB (4.61 5.11 5.31) because in each I have added different UserLibs which do not work in later PB Versions and the software of that time does not compile with the newer versions also.

What I do not need is, that each time I change the version ... history and all settings are written into the same folder and the old setting are destoyed.
C:\Users\[Computername]\AppData\Roaming\PureBasic\PureBasic.prefs
C:\Users\[Computername]\AppData\Roaming\PureBasic\Templates.prefs
C:\Users\[Computername]\AppData\Roaming\PureBasic\Tools.prefs
etc.

Is there a way to tell PB to write settings (prefs) to different folders for each version without always copying, deleting and renaming folders before starting and after finishing work with another version?

Thanks in advance

_________________
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg


Top
 Profile  
Reply with quote  
 Post subject: Re: Different PB Versions - different Folders for settings?
PostPosted: Thu Apr 09, 2015 9:09 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5756
Location: Berlin - Germany
See the cmdline options in helpfile, for example: /LOCAL
You should add the cmdline options to the shortcut to your pb version.

_________________
PureBasic 5.71 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 19.3 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Different PB Versions - different Folders for settings?
PostPosted: Thu Apr 09, 2015 9:10 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3377
Location: Boston, MA
Create shortcuts using /portable.
C:\PureBasic\PureBasic.exe /portable
C:\PureBasic531\PureBasic.exe /portable

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: Different PB Versions - different Folders for settings?
PostPosted: Thu Apr 09, 2015 9:14 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Aug 03, 2003 12:06 am
Posts: 264
Location: Austria
Wow, that was quick

Thanks guys, for the quick answers :D

R.

_________________
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg


Top
 Profile  
Reply with quote  
 Post subject: Re: Different PB Versions -
PostPosted: Thu Apr 09, 2015 9:27 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Aug 03, 2003 12:06 am
Posts: 264
Location: Austria
Hi again

That works for settings because they are now stored in the base folder of the PB version. That is ok.

But when I have 4.61 open and make a doubleclick on and old PB File it is now opened with 5.31 - what did not happen before ... any idea why?

Although this is at the end of the file
;+

; IDE Options = PureBasic 4.61 (Windows - x86)
; CursorPosition = 5567
; FirstLine = 5542
; Folding = ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
; Markers = 3451,5512
; EnableXP
; UseIcon = Kohle.ico
; Executable = Struktur_151.exe
; DisableDebugger
; CompileSourceDirectory
; Compiler = PureBasic 4.61 (Windows - x86)
; EnableCompileCount = 1054
; EnableBuildCount = 399

_________________
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg


Top
 Profile  
Reply with quote  
 Post subject: Re: Different PB Versions - different Folders for settings?
PostPosted: Thu Apr 09, 2015 9:33 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3377
Location: Boston, MA
Yeah, the "open with" class settings are assigned to the last install you ran.
Just make specific shortcuts and don't rely on the default case of Windows.

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: Different PB Versions - different Folders for settings?
PostPosted: Thu Apr 09, 2015 9:36 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Aug 03, 2003 12:06 am
Posts: 264
Location: Austria
Ok - I will try to figure out what is possible with the commandline options

Thank you

_________________
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg


Top
 Profile  
Reply with quote  
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 3 guests


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