User forums > Help
Portability
killerbot:
--- Quote from: guigz on May 03, 2006, 09:46:19 am ---I use the RC2..
Code::Blocks creates entries in my registry (HKEY_CURRENT_USER\Software)/
It also create a directory in my userprofile dir.
What I want is something more simple:1 config file in the same directory of the Code::Block exe.
--- End quote ---
what you want is not robust and user friendly, let me explain :
1) config files should (this config file is also some sort of profile : eg : I have added some more compilers) not be put real close to the program. Say you want to upgrade and you first uninstall, say it's a bad (un)installer (there exist plenty of those!!!) and it removes everything in the folder of the application --> bye bye your prescious config file
2) say you have your M$ profiles on another harddisk then windows (advice advice advice, just do that), when winBLOWS it can't take down your profile, and you can copy from it after fresh windows install (after the blow, probably your apps are gone to ;-) )
3) multi-users, say there are different users on your machine, maybe I don't like your settings, and I want things to look a bit different, or maybe you don't like the compilers I added. Every user should have his/her own settings. So where do you put such stuff then : in the home directory (linux) or M$ profile (windows)
guess where the default.conf is now ;-)
as Thomas explained you can do what you want, use the startup parameter, and create an shortcut that always starts up with your profile as the extra param towards CB
But I guess the majority of users will prefer things that provide/solve the above 3 issues
kind regards,
Lieven
thomas:
Maybe I did not explain myself thoroughly enough.
You can copy your config file to the executable's folder. It is just not the default location.
Code::Blocks will always use a configuration file that it finds in your user profile directory. However, it will also accept a configuration file that is inside the executable folder, if none is found elsewhere.
--- Quote ---Code::Blocks creates entries in my registry (HKEY_CURRENT_USER\Software)/
It also create a directory in my userprofile dir.
--- End quote ---
Then you have two versions of Code::Blocks on your machine (or the registry settings are old).
Code::Blocks only does one or the other, not both (RC2 = registry, newer versions = config file).
guigz:
I do know that this kind of things is not very good for multiuser system,but suppose I take code::block on an usb key and use it on my friend's computers.I'll leave garbages in his registry and user account, and this guy won't be my friend anymore....
With a MonoUser version,I can have My Code::Blocks with my settings on my USB key which can work on his own,without leaving any Garbages on any computer....It's better than MultiUsers since I don't even need a user account....It's easier for me to go on other machines since I do not have to install a whole new CodeBlock and compilers and libraries to be able to work.You'll tell me that it's a waste of space in a multiuser environment, yes it is. But: Code blocks with MingW is 90Mo without wxwidget. An external HardDrive of 40Go is 90euros.You can get a 1Gb USB key for less....I don't care about a multiuser environment. They are good only at work. I just have one account on my laptop.When I go at my friend, he won't create an account for me, he'll just log on his account.It's better for me to have my portable CodeBlocks than a big multiuser-care one which I do not use.If you don't believe it's interesting,just check portableapps.com or www.portablefreeware.com.
Why not add this feature?
Just add a command line command to tell codeblock to write all his settings in a subdirectory called \settings(for example).That way,to upgrade code blocks,you just have to replace binaries and keep the settings as is...
I use the RC2 version of codeblocks(I downloaded it yesterday)
The directory in my userprofile is an empty one.So it's garbage.
Where can I get newer versions?
killerbot:
allrighty here we go :
1) RC2 --> uninstall, it is old
2) manually install MingW (or maybe you had it already installed somewhere, then just keep it)
3) download the latest nightly, they are advertised daily in the nightly builds forum (http://forums.codeblocks.org/index.php?board=20.0)
4) reread Thomas's reply, with these newer version you can specify which configuration file to use (--profile=anyname).
Come to think of it, should check ; anyname is profile name or just the conf file name (@Thomas : do you know this by heart ?)
If 4) is a "profile" name then it won't work from the stick since it will look for that profile on your friends computer .... if that profile does not exist -> won't find it, it will fall back to the conf file next to the exe (where you have put your PC's default.conf), so in the end it might work.
Lieven
PS: I also like the "portable" software, so no need to convince me for that ;-)
mandrav:
--- Quote ---Come to think of it, should check ; anyname is profile name or just the conf file name (@Thomas : do you know this by heart ?
--- End quote ---
It's the profile name, not the filename.
@guigz:
Why are you making such a big deal out of this? Please read carefully what's been written here. There is no problem to use it like you want.
Just create an empty file named default.conf on your USB stick and you 're ready to go.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version