Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

How-to preset help file on install

(1/2) > >>

sparkie:
I am trying to create an install of Code::Blocks that is tailored to creating plugins for my application. I would like to have my help file preinstalled and set as the F1 default when the user first launches C::B (without requiring the user to configure it.)

Anybody have any suggestions on the best approach?

oBFusCATed:
Probably modify the code of the help pluign and ship this modified version.

sparkie:
Thanks. That sounds workable.

But I am hoping to minimize deviating from C::B base line too much.  I was hoping that I might be able to do some type of startup script or install a pre-configured default.cfg or create a plugin that runs once to modify the configuration or ???

oBFusCATed:
There is no reliable way to know how many users are added to an OS.
Also you don't know if a users is added after the software is installed.
I think there is no master config file that is copied at first run.
I think a default file one is generated and saved on first run using the default values stored in the code.

Probably you can modify the plugin to read from registry (on windows), env variable or some default file.
Then you could provide a patch which could be discussed and possibly integrated.

sparkie:
Thanks.

I guess I have been staring at the portable version too long. Thanks for reminding me that each user will have his own APPs dir so modifying/installing the default.conf at install time would be fruitless (in the general case).  So, it makes sense to make changes at first run or if no help files are currently configured. 

If I modified the help plugin in a generic way that is usable to others (like fetch the default help file(s) configuration from an external file) then perhaps a patch would be accepted (and then I won't be deploying a custom version  :) )

Let me chew on this a bit.
Thanks for the inspiration.

Navigation

[0] Message Index

[#] Next page

Go to full version