User forums > General (but related to Code::Blocks)

code::blocks : how to make it a portable app (on usb drives)?

<< < (2/2)

Michael:

--- Quote from: cyber igor on March 14, 2006, 07:28:27 pm ---thansk  :D
but where's that <devpak_plugin> ?

--- End quote ---

In the default.conf file :D.

Best wishes,
Michael

cyber igor:
2nd question  :):
I have a code like that

--- Code: ---[devpak_plugin]
master_path=K:\Data\logiciels\CodeBlocks
--- End code ---
(i assume
--- Code: ---[main_frame]
maximized=1
[main_frame/layout]
left_block_selection=0
bottom_block_selection=3
--- End code ---
, which is just after, is not for devpack plugin)
Is the [str] tag to indicate the windows directory location?
And in this case, do I write

--- Code: ---[str]
C:\windows...

--- End code ---
?

thomas:
What you have there looks like a registry dump rather than an xml file... are you using RC2?

If so, you should be able to set the path using the config dialog, too (which is easier).

Anyway, master_path=... is what you want to change.


The section in the config file if you use HEAD looks like this:
<devpak_plugin>
   <MASTER_PATH>
      <str>D:\Eigene Dateien</str>
   </MASTER_PATH>
</devpak_plugin>
The italic text is what you need to change.

takeshimiya:

--- Quote from: thomas on March 14, 2006, 09:09:44 pm ---What you have there looks like a registry dump rather than an xml file... are you using RC2?

--- End quote ---
Yes, cyber igor is using RC2. :P
In any case, that's how a C::B configuration export in RC2 did looked, an ini file.

EDIT:
cyber igor: in any case, if you edit that exported data, it will not work, because C::B can't import exported settings.
You can edit the registry setting directly though, but you are better off using a C::B nightly build.

thomas:

--- Quote from: Takeshi Miya on March 14, 2006, 09:49:49 pm ---Yes, cyber igor is using RC2. :P
In any case, that's how a C::B configuration export in RC2 did looked, an ini file.
--- End quote ---
Thanks for the clarification. I did not know :)

Anyway, if you want to use RC2, the easiest and safest way is to set the install path in the dialog that shows up when you first load the plugin. I don't remember how you call that dialog again later (it's like half a year since I last used that plugin), there is probably  some small button somewhere in its main dialog.
If you want to use the HEAD version (or a nightly build), then change the xml file as described above, the respective config dialog got lost, as mentioned.

The forementioned "just place a config file on a CDROM" feature will obviously only work with a recent build (RC2 uses the registry to store settings, there's no way to make it "independent").

Navigation

[0] Message Index

[*] Previous page

Go to full version