Skip to content

Commit bc27c96

Browse files
committed
Add some basic anaconda installed prefix validation
1 parent e18ceda commit bc27c96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/windows/PythonHelpers.nsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
ReadRegStr $2 ${ROOT_KEY} \
120120
"${__CONDA_REG_PREFIX}\$1\InstallPath" ""
121121
${If} $2 != ""
122+
${AndIf} ${FileExists} "$2\python.exe"
123+
${AndIf} ${FileExists} "$2\Scripts\conda.exe"
122124
${LogWrite} "${ROOT_KEY} ${__CONDA_REG_PREFIX}\$1\InstallPath: $2"
123125
Exch $2 # <stack> $0, $1, $2, "prefix"
124126
${EndIf}

0 commit comments

Comments
 (0)