2007-08-09 04:06:41 +00:00
|
|
|
;Python include file for NSIS
|
|
|
|
;Written by Tisham Dhar(what_nick) (mailto:tisham at apogee.com.au)
|
|
|
|
!ifndef PYTHON_USED
|
|
|
|
!define PYTHON_USED
|
|
|
|
|
|
|
|
!macro CHECK_PYTHON
|
|
|
|
# Read handler for python files from registry
|
|
|
|
ReadRegStr $9 HKEY_LOCAL_MACHINE "SOFTWARE\Python\PythonCore\2.5\InstallPath" ""
|
|
|
|
|
2007-08-10 14:00:24 +00:00
|
|
|
# The point pythonskip needs to be defined
|
|
|
|
IfFileExists $9\python.exe ok ng
|
|
|
|
|
2007-08-09 04:06:41 +00:00
|
|
|
ng:
|
|
|
|
MessageBox MB_OK "Python is not installed on this system.$\nPlease install Python2.5 first."
|
2007-08-10 14:00:24 +00:00
|
|
|
goto pythonskip
|
2007-08-09 04:06:41 +00:00
|
|
|
ok:
|
|
|
|
MessageBox MB_OK "Python located $9"
|
|
|
|
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
!endif
|