Unset PYTHONHOME when starting the service

Means that installing Python on the system shouldn't break Salt
This commit is contained in:
Ben Woodward 2015-05-29 15:28:35 +01:00
parent 19fa43c290
commit 6632d06e94

View file

@ -249,6 +249,7 @@ Section -Post
WriteRegStr HKLM "SYSTEM\CurrentControlSet\services\salt-minion" "DependOnService" "nsi"
ExecWait "nssm.exe install salt-minion $INSTDIR\bin\python.exe $INSTDIR\bin\Scripts\salt-minion -c $INSTDIR\conf -l quiet"
ExecWait "nssm.exe set salt-minion AppEnvironmentExtra PYTHONHOME="
RMDir /R "$INSTDIR\var\cache\salt" ; removing cache from old version
Call updateMinionConfig