changeset 3487:692559513c2f

set PATH after installation.
author Han-Wen Nienhuys <hanwen@lilypond.org>
date Sat, 12 May 2007 00:02:56 -0300
parents ebca952244d4
children dd43b3119b98
files nsis/git.nsi
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nsis/git.nsi	Fri May 11 19:05:15 2007 -0300
+++ b/nsis/git.nsi	Sat May 12 00:02:56 2007 -0300
@@ -31,8 +31,8 @@
 ${UnStrLoc}
 
 ;;SetCompressor lzma  ; very slow
-SetCompressor zlib
-;; SetCompressor bzip2  ;;
+;;SetCompressor zlib
+SetCompressor bzip2  ;;
 
 Name "${PRETTY_NAME}"
 
@@ -96,8 +96,15 @@
 	CreateDirectory "$INSTDIR\usr\bin"
 
 	Call registry_installer
+	Call registry_path 
 SectionEnd
 
+
+Function registry_path
+	ReadRegStr $R0 HKLM "${ENVIRON}" "PATH"
+	WriteRegExpandStr HKLM "${ENVIRON}" "PATH" "$R0;$INSTDIR\usr\bin"
+FunctionEnd
+
 ;; copy & paste from the NSIS code examples 
 Function un.install_installed_files
  IfFileExists "$INSTDIR\${UninstLog}" +3