Re: [Gimp-user] Gimp does not recognize that Python is installed

2009-11-04 Thread Martijn Weisbeek
Don,

Thanks for your reply and good to hear that you succeeded.
I would not have expected that a Registry Cleaner would do the job,
but nonetheless congratulations.

Because I was curious about what registry entry the installer looks
for I downloaded some NSIS-source files of the Windows-installer for
GIMP.
At SourceForge I found a file with a name of
gimp+gtk-install-script-20061018.zip. 2006 sounds pretty old to me,
but it was the most recent I could find.

So I downloaded it and opened it and in gimp+gtk.iss I found a
function called EnablePython. This function looks in the Windows
registry for the key
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.4\InstallPath. In my
Windows registry I could only find a 2.5 and a 2.6 for Python, but
newer GIMP installers might be looking for a newer Python version in
the registry.
Then it looks in the directory that is listed in the InstallPath for a
sub-directory called Lib\site-packages\gtk-2.0 to check whether PyGTK
is installed.
When this is found, one can install GIMP-Python.

Perhaps one could also use a registry monitor to see what exact
Registry key a more recent GIMP version is checking.
Or perhaps also newer installer-sources can be found online.

-- 
Greetings,

Martijn
http://gimp.startpagina.nl
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Gimp does not recognize that Python is installed

2009-11-04 Thread Jernej Simončič
On Wed, 4 Nov 2009 22:32:33 +0100, Martijn Weisbeek wrote:

 Because I was curious about what registry entry the installer looks
 for I downloaded some NSIS-source files of the Windows-installer for
 GIMP.
 At SourceForge I found a file with a name of
 gimp+gtk-install-script-20061018.zip. 2006 sounds pretty old to me,
 but it was the most recent I could find.

The most recent installer source is
http://sourceforge.net/projects/gimp-win/files/GIMP%20%2B%20GTK%2B%20(stable%20release)/GIMP%202.6.5%20%2B%20GTK%2B%202.14.7/gimp-install-script-20090321.zip/download

And it's Inno, not NSIS - I'm not masochistic.

 Perhaps one could also use a registry monitor to see what exact
 Registry key a more recent GIMP version is checking.

Same as the script you found, except that it looks for Python 2.5 and 2.6
(GIMP 2.6 installers support both Python versions).

-- 
 Jernej Simončič  http://eternallybored.org/ 

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user