Page 1 of 1

Different PB Versions - different Folders for settings?

Posted: Thu Apr 09, 2015 9:01 pm
by Thade
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

Re: Different PB Versions - different Folders for settings?

Posted: Thu Apr 09, 2015 9:09 pm
by ts-soft
See the cmdline options in helpfile, for example: /LOCAL
You should add the cmdline options to the shortcut to your pb version.

Re: Different PB Versions - different Folders for settings?

Posted: Thu Apr 09, 2015 9:10 pm
by skywalk
Create shortcuts using /portable.
C:\PureBasic\PureBasic.exe /portable
C:\PureBasic531\PureBasic.exe /portable

Re: Different PB Versions - different Folders for settings?

Posted: Thu Apr 09, 2015 9:14 pm
by Thade
Wow, that was quick

Thanks guys, for the quick answers :D

R.

Re: Different PB Versions -

Posted: Thu Apr 09, 2015 9:27 pm
by Thade
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

Re: Different PB Versions - different Folders for settings?

Posted: Thu Apr 09, 2015 9:33 pm
by skywalk
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.

Re: Different PB Versions - different Folders for settings?

Posted: Thu Apr 09, 2015 9:36 pm
by Thade
Ok - I will try to figure out what is possible with the commandline options

Thank you