diff --git a/win32/deluge.nsi b/win32/deluge.nsi index 9963f9fcc..dd297d60d 100644 --- a/win32/deluge.nsi +++ b/win32/deluge.nsi @@ -362,7 +362,7 @@ SectionGroupEnd Function autodetect_python Pop $0 - ReadRegStr "" HKLM "SOFTWARE\Python\PythonCore\${PYTHON_VERSION}\InstallPath" "" + ReadRegStr $1 HKLM "SOFTWARE\Python\PythonCore\${PYTHON_VERSION}\InstallPath" "" IfErrors 0 +3 SectionSetInstTypes $0 3 SetCurInstType 0