mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Oops, $PYVER should be ${PYVER}
This commit is contained in:
parent
b04f8a5db8
commit
998f8a3e8f
@ -252,17 +252,17 @@ Section -post
|
||||
Push "$INSTDIR\bin"
|
||||
Call AddToPath
|
||||
|
||||
ReadRegStr $0 HKLM "Software\Python\PythonCore\$PYVER\InstallPath" ""
|
||||
ReadRegStr $0 HKLM "Software\Python\PythonCore\${PYVER}\InstallPath" ""
|
||||
StrCmp $0 "$INSTDIR\python" RegPath 0
|
||||
StrCmp $0 "" RegPath 0
|
||||
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||
"Your system already has a copy of Python installed. Panda3D installs its own copy of Python, which will install alongside your existing copy. Would you like to make Panda's copy the default Python? If you choose 'No', you will have to configure your existing copy of Python to use the Panda3D libraries." \
|
||||
"Your system already has a copy of Python installed. Panda3D installs its own copy of Python ${PYVER}, which will install alongside your existing copy. Would you like to make Panda's copy the default Python? If you choose 'No', you will have to configure your existing copy of Python to use the Panda3D libraries, keeping in mind that this version of Panda3D can only run with Python ${PYVER}." \
|
||||
IDNO SkipRegPath
|
||||
|
||||
RegPath:
|
||||
DetailPrint "Adding registry keys for python..."
|
||||
WriteRegStr HKLM "Software\Python\PythonCore\$PYVER\InstallPath" "" "$INSTDIR\python"
|
||||
WriteRegStr HKLM "Software\Python\PythonCore\${PYVER}\InstallPath" "" "$INSTDIR\python"
|
||||
SkipRegPath:
|
||||
!endif
|
||||
|
||||
@ -288,9 +288,9 @@ Section Uninstall
|
||||
Push "$INSTDIR\bin"
|
||||
Call un.RemoveFromPath
|
||||
|
||||
ReadRegStr $0 HKLM "Software\Python\PythonCore\$PYVER\InstallPath" ""
|
||||
ReadRegStr $0 HKLM "Software\Python\PythonCore\${PYVER}\InstallPath" ""
|
||||
StrCmp $0 "$INSTDIR\python" 0 SkipUnReg
|
||||
DeleteRegKey HKLM "Software\Python\PythonCore\$PYVER"
|
||||
DeleteRegKey HKLM "Software\Python\PythonCore\${PYVER}"
|
||||
SkipUnReg:
|
||||
!endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user