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.
Packing - please help
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Packing - please help
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:
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
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
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
Make sure you have read the HOW TO POST thread