From 37cf8174cad8be84ec00ce1afc74f47a20cde321 Mon Sep 17 00:00:00 2001 From: Mark Hessling Date: Sat, 23 Aug 2003 06:58:57 +0000 Subject: [PATCH] Fix bug with removal of directory from PATH --- common/path.nsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/path.nsh b/common/path.nsh index 6fea37ac..140ee04f 100644 --- a/common/path.nsh +++ b/common/path.nsh @@ -90,6 +90,7 @@ Function un.RemoveFromPath Goto unRemoveFromPath_done unRemoveFromPath_NT: + StrCpy $0 ";$0" StrLen $2 $0 ReadRegStr $1 HKCU "Environment" "PATH" Push $1 @@ -100,7 +101,7 @@ Function un.RemoveFromPath ; else, it is in path StrCpy $3 $1 $0 ; $3 now has the part of the path before our dir IntOp $2 $2 + $0 ; $2 now contains the pos after our dir in the path (';') - IntOp $2 $2 + 1 ; $2 now containts the pos after our dir and the semicolon. +; IntOp $2 $2 + 1 ; $2 now containts the pos after our dir and the semicolon. StrLen $0 $1 StrCpy $1 $1 $0 $2 StrCpy $3 "$3$1"