I want to replace "/s" as empty
Here's my code:
!include "StrFunc.nsh"
${StrRep}
....
StrCpy $1 "/s"
${StrRep} $0 $SOME_STRING $1 ""
But I found all special characters like ':' and '/' are missing and "s" wasn't replaced.
${StrRep} is not working properly.
3 posts
are you using an outdated version, perhaps?
gives messagebox:
!include "StrFunc.nsh"
${StrRep}
Name "Test"
OutFile "SetupTest.exe"
InstallDir "$PROGRAMFILES\Test"
Section "A" "aSection"
StrCpy $1 "/s"
${StrRep} $0 "hello: /s /worlds/" $1 ""
MessageBox MB_OK "[$0]"
SectionEnd
Seems to me like only "/s" got replaced?
---------------------------
Test Setup
---------------------------
[hello: /worlds/]
---------------------------
OK
---------------------------