installer: support for Python 2.6

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@27193 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-10-30 01:18:28 +00:00
parent 39b5267801
commit c2e5e2a16c

View File

@ -85,9 +85,12 @@ Function MissingPrograms
${endif}
# test if Python is installed
# only use an existing python when it is version 2.5 because many Compaq and Dell PC are delivered
# with outdated Python interpreters
# only use an existing python when it is version 2.5 or newer because some
# Compaq and Dell PCs were delivered with outdated Python interpreters
ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\2.5\InstallPath" ""
${if} $PythonPath == ""
ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\2.6\InstallPath" ""
${endif}
${if} $PythonPath != ""
StrCpy $PythonPath $PythonPath -1 # remove the "\" at the end
StrCpy $DelPythonFiles "True"