Improve support for windows installer

svn: r16199
This commit is contained in:
Stephen George
2010-11-18 02:17:38 +00:00
parent f63d2cdd2f
commit 0ee88c4b5a
2 changed files with 38 additions and 3 deletions

View File

@@ -133,6 +133,11 @@ Page custom DependenciesPageFunction DependenciesPageLeave
IfFileExists $3 HavePython 0
; Handle the case where python is installed but not on the path - So check Registry keys
; reg key (Python version 2.7)
ReadRegStr $3 HKLM 'Software\Python\PythonCore\2.7\InstallPath' ""
StrCpy $3 "$3pythonw.exe" ; append "pythonw.exe"
IfFileExists $3 HavePython 0
; reg key (Python version 2.6)
ReadRegStr $3 HKLM 'Software\Python\PythonCore\2.6\InstallPath' ""
StrCpy $3 "$3pythonw.exe" ; append "pythonw.exe"