mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Second attempt at autodetect install
This commit is contained in:
parent
2efc6161f2
commit
16c8769ab9
1 changed files with 4 additions and 6 deletions
|
@ -13,9 +13,8 @@
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro autodetect component
|
!macro autodetect component
|
||||||
|
Push ${${component}}
|
||||||
Call autodetect_${component}
|
Call autodetect_${component}
|
||||||
Pop $0
|
|
||||||
SectionIn $0
|
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro download url filename
|
!macro download url filename
|
||||||
|
@ -111,11 +110,10 @@
|
||||||
; Functions
|
; Functions
|
||||||
|
|
||||||
Function autodetect_python
|
Function autodetect_python
|
||||||
StrCpy $0 "1 2"
|
Pop $0
|
||||||
ReadRegStr $1 HKLM "SOFTWARE\Python\PythonCore\${PYTHON_VERSION}\InstallPath" ""
|
ReadRegStr "" HKLM "SOFTWARE\Python\PythonCore\${PYTHON_VERSION}\InstallPath" ""
|
||||||
IfErrors 0 +2
|
IfErrors 0 +2
|
||||||
StrCpy $0 "2"
|
SectionSetInstTypes $0 3
|
||||||
Push $0
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function set_python_dir
|
Function set_python_dir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue