Code::Blocks Forums

User forums => Help => Topic started by: oldenhero on April 30, 2014, 04:34:36 am

Title: Updating C::B in Windows
Post by: oldenhero on April 30, 2014, 04:34:36 am
Isn't there a way to update my IDE version without uninstalling mine and installing the new one?
Title: Re: Updating C::B in Windows
Post by: stahta01 on April 30, 2014, 05:57:29 am
Isn't there a way to update my IDE version without uninstalling mine and installing the new one?

Edit: Remember to install to different/new folders.
Edit2: I suggest making a backup copy of default.conf.
Edit3: I suggest installing the codeblocks using a zip file; if one, does NOT exist install on a computer without CB and zip the CB installation folder.

You do NOT need to uninstall the old CB; but, you need to be careful to NOT overwrite the configs.
The config files are located in "%APPDATA%/codeblocks" the main info is in default.conf.

If you start the CB with a different personality name it will not over write that file.

Here is the command from my short cut used to start an old cb version.
Code
"C:\Program Files\CodeBlocks_12_11\codeblocks.exe" /na /nd /p cb1211

For options see http://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments (http://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments)

Tim S.
Title: Re: Updating C::B in Windows
Post by: thomas on April 30, 2014, 04:56:06 pm
The whole concept of "installing" is a stupefied Microsoft idea, there shouldn't really be much, or anything, you have to "install" for a program.

As for Code::Blocks, the configuration is one of two things to keep an eye on, and file associations are the other.

If you want to use two versions with the same config, that will ... probably... work, if they are somewhat similar versions, but it may spectacularly fail, too (no guarantees there).
If you just copy the existing config into the existing Code::Blocks executable dir, it will use that one instead of the global one, and you're on the safe side. Code::Blocks is relocatable, or "portable" as people like to call it insofar as it will consider any config found in its executable directory first, if not told anything different.

Alternatively, you can just start each version of Code::Blocks from a link or start menu entry that has the --profile switch on the commandline, and specify a config file that is whereever you like. You can even use this to start the same version with different settings on different occasions, if you need to do that for some reason (Code::Blocks developers do that since if you accidentially fuck up your config while playing around, it's not the one you need to run the program to fix things!).

File associations, i.e. which program will be launched if you double-click a .cpp file, are the only kind of "install" thing that you need to do, and you can conveniently manage these from within the running Code::Blocks instance ("Environment Settings").
Title: Re: Updating C::B in Windows
Post by: oldenhero on May 01, 2014, 05:14:48 am
Thank you for the answers, guys. I thought I could have these two versions in separated folders, but your explantions aced it, really helped me. See you.