Page 1 of 1

Packing - please help

Posted: Thu Feb 25, 2010 10:09 pm
by HJarausch
Hi,

I've installed CodeLite-2.2.0, I've replaced compilers, built new libraries, installed new include files.
And it works just fine.

But now I need to make an installable package for my students.
Being a total novice to Inno Setup, I created a package which seems to
contain all files, but when trying to build a project, it cannot find
mingw32-make.exe though it's in the same position as on the running system.
Obviously some PATH environment variable does not get set when I re-install
my generated package on a different machine.
I compared all files in the config directory but they were equal.
Where is the hidden PATH information?

Many thanks for your help,
Helmut.

Re: Packing - please help

Posted: Thu Feb 25, 2010 11:00 pm
by eranif
When codelite starts up, it looks in the registry for this path:

HKEY_CURRENT_USER\Software\CodeLite\mingw

This entry contains the path to your installed mingw (by default it is placed under C:\MinGW4.4.0).

If this entry is found, codelite updates the PATH environment variable like this:

Code: Select all

$(PATH);<value-read-from-registry>\bin
So all you have to do is to insert the registry entry with the path to MinGW.

Since codelite also uses InnoSetup for the Windows installer, you might want to have a look at codelite's packaging script:

There are 3: codelite standalone, codelite+mingw and codelite+mingw+wxWidgets

The one that will interest you is this one:
http://codelite.svn.sourceforge.net/vie ... iew=markup

Eran