User forums > Help

CodeBlocks and Compiler

<< < (2/4) > >>

prr:

--- Quote ---
If you know of a registry key for MinGW, please tell me about it :)

--- End quote ---


Don't know if it can be useful, but MinGW installer is built with innosetup, that uses this key:

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\mingw32_is1\Inno\App Path

The problem is that it's not a mingw feature, but only an innosetup feature.
The key may obviously change if MinGW developers change the install system of for intenal innosetup modifications.

walter

mandrav:

--- Quote from: prr ---The problem is that it's not a mingw feature, but only an innosetup feature.
The key may obviously change if MinGW developers change the install system of for intenal innosetup modifications.
--- End quote ---

That's right Walter.

--- Quote from: prr ---HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\mingw32_is1\Inno\App Path
--- End quote ---

Even if I wanted to use this registry key, I couldn't because the "_is1" part in "mingw32_is1" is automatically tacked by innosetup and the number is not guaranteed to be the same...
Anyway, I 'll perform a MinGW installation to a non-default path and check the mingw.ini file. If it points to the default path, then this is a MinGW installation error and should be reported to the MinGW team...

Yiannis.

prr:

--- Quote from: mandrav ---
Anyway, I 'll perform a MinGW installation to a non-default path and check the mingw.ini file. If it points to the default path, then this is a MinGW installation error and should be reported to the MinGW team...

--- End quote ---


Just to increase the sample size:
I've installed MinGW (3.2.0 rc3) in a non-default path, and in my windows dir such file is present but void (0 byte length).

walter

bszente:
Maybe the best way would be to write a code to search for the mingw32-gcc.exe file in the installation process, and ask the user to confirm if realy that is the installation path for mingw.

You may do the following:
1. look for the mingw.ini file.
2. if it contains an entry, look after mingw32-gcc.exe based on that path. if you find it, than in 99% the path is the right one.
3.  if no valid entry or no file, then look for some standard possible locations like
        c:\mingw
        c:\program files\mingw
 4. in last instance do a search for mingw32-gcc.exe or let the user to enter the installation path.

Urxae:
I installed MinGW in a non-default location and C:\WINNT\MinGW.ini contains the correct path, so it's not on every non-default install. I'm running Windows 2000 though, maybe that makes a difference...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version