1 ;-------------------------------------
2 ; Supplemental Function
3 ; StrRep - String Replace v4.0
4 ; http://nsis.sourceforge.net/StrRep
6 !define StrRep "!insertmacro StrRep"
7 !macro StrRep output string old new
39 StrCpy $R5 $R0 $R4 $R3
42 IntOp $R3 $R3 + 1 ;move offset by 1 to check the next character
50 IntOp $R3 $R3 + $R9 ;move offset by length of the replacement string
70 !insertmacro Func_StrRep ""