Different PB Versions - different Folders for settings?

Working on new editor enhancements?
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Different PB Versions - different Folders for settings?

Post 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
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Different PB Versions - different Folders for settings?

Post 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.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
skywalk
Addict
Addict
Posts: 4000
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Different PB Versions - different Folders for settings?

Post by skywalk »

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
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Different PB Versions - different Folders for settings?

Post by Thade »

Wow, that was quick

Thanks guys, for the quick answers :D

R.
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Different PB Versions -

Post 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
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
User avatar
skywalk
Addict
Addict
Posts: 4000
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Different PB Versions - different Folders for settings?

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Different PB Versions - different Folders for settings?

Post by Thade »

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
Post Reply