The following code slightly modified to jump based on a numerical value does not:!insertmacro FileSearch 'C:\test.txt' 'Value o'
StrCmp $1 No 0 replace
!insertmacro WriteEnd 'C:\test.txt' 'Value x'
Goto end
replace:
!insertmacro ReplaceBefore 'Value o' '%RBPH%' 'C:\test.txt'
!insertmacro ReplaceLineStr 'C:\test.txt' '%RBPH%' 'Value x'
end:
$1 returns Yes or No. This isn't the end of the world but I've tried raising and lowering the jump number and regardless, the last two of three lines are always skipped. Is this a bug or am I doing something wrong?!insertmacro FileSearch 'C:\test.txt' 'Value o'
StrCmp $1 No 0 +3
!insertmacro WriteEnd 'C:\test.txt' 'Value x'
Goto end
!insertmacro ReplaceBefore 'Value o' '%RBPH%' 'C:\test.txt'
!insertmacro ReplaceLineStr 'C:\test.txt' '%RBPH%' 'Value x'
end:
My 2nd question is, it is possible to break up long lines of code into several lines by simply adding a \ at the end. OK. What is the opposite of this so to compress several lines of short code into one line? is this an option? Just curious.
Thank you for your time!