dfbvdfbsdfb sadgasdgsadbsadb
asgsadgsdgsdgsadgsdag
- d
- dvbg
- b
- a
- w
123
2 posts
asgsadgsdgsdgsadgsdag
123
anyway... now it seems to work. figures.
ReadRegStr $1 HKLM "Software" "Microsoft" "IsShit"
...before, $1 was getting mangled into [.
; removes $9 from $1. keep $9 intact.
Function removeFromClassPath
Push $2
Push $3
Push $4
StrCpy $2 0 ; search start
StrLen $3 $9 ; get length of string to remove
loop:
StrCpy $4 $1 $3 $2 ; copy substring of string starting at $2
StrCmp $4 "" done
StrCmp $4 $9 found
IntOp $2 $2 + 1
Goto loop
found:
StrCpy $4 $1 $2 ; $4 is start of string
IntOp $2 $2 + $3
StrCpy $3 $1 "" $2 ; $3 is end of string
StrCpy $1 $4$3 ; $1 is new string
done:
Pop $4
Pop $3
Pop $2
FunctionEnd