Mercurial > gub
changeset 6174:084fa9385fed
Stops Windows PATH being changed
author | Phil Holmes <mail@philholmes.net> |
---|---|
date | Fri, 06 Jan 2012 17:23:15 +0000 |
parents | 6e26a95864dc |
children | c248a6b5dfac |
files | nsis/lilypond-prepost.nsh nsis/lilypond.nsi |
diffstat | 2 files changed, 0 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/nsis/lilypond-prepost.nsh Fri Jan 06 12:33:06 2012 +0000 +++ b/nsis/lilypond-prepost.nsh Fri Jan 06 17:23:15 2012 +0000 @@ -41,9 +41,6 @@ Function registry_lilypond - ReadRegStr $R0 HKLM "${ENVIRON}" "PATH" - WriteRegExpandStr HKLM "${ENVIRON}" "PATH" "$R0;$INSTDIR\usr\bin" - WriteRegStr HKCR ".ly" "" "LilyPond" WriteRegStr HKCR ".ly" "LilyPond" "LilyPond" WriteRegStr HKCR ".ly" "Content Type" "text/lilypond-source"
--- a/nsis/lilypond.nsi Fri Jan 06 12:33:06 2012 +0000 +++ b/nsis/lilypond.nsi Fri Jan 06 17:23:15 2012 +0000 @@ -94,7 +94,6 @@ CreateDirectory "$INSTDIR\usr\bin" Call registry_installer -;; Call registry_path ;; Use tested lilypad for now StrCpy $EDITOR "$INSTDIR\usr\bin\lilypad.exe" @@ -113,11 +112,6 @@ Call postinstall_lilypad SectionEnd -Function registry_path - ReadRegStr $R0 HKLM "${ENVIRON}" "PATH" - WriteRegExpandStr HKLM "${ENVIRON}" "PATH" "$R0;$INSTDIR\usr\bin" -FunctionEnd - ;; Optional section (can be disabled by the user) Section "Bundled Python" ;; Only make bundled python interpreter the default @@ -239,21 +233,6 @@ DeleteRegKey HKCU "Applications\lilypond-windows.exe" DeleteRegKey HKCU ".ly" - ReadRegStr $R0 HKLM "${ENVIRON}" "PATH" - ${UnStrLoc} $0 $R0 "$INSTDIR\usr\bin;" > - -path_loop: - StrCmp $0 "" path_done - StrLen $1 "$INSTDIR\usr\bin;" - IntOp $2 $0 + $1 - StrCpy $3 $R0 $0 0 - StrCpy $4 $R0 10000 $2 - WriteRegExpandStr HKLM "${ENVIRON}" "PATH" "$3$4" - ReadRegStr $R0 HKLM "${ENVIRON}" "PATH" - ${UnStrLoc} $0 $R0 "$INSTDIR\usr\bin;" > - StrCmp $0 "" path_done path_loop - -path_done: ;; Remove files and uninstaller ;; Try only to delete ${PRETTY_NAME} (and not user) stuff