Old 26th May 2010, 10:57   #1
MilhouseNo1
Junior Member
 
Join Date: May 2010
Posts: 1
Question Function ReplaceBetween

Hello

I found this ingenious function for the NSIS Installer.

ReplaceBetween


For my purposes the function would have to be adapted however some more:
Momentarily the function searches downward from top to the bottom of the file, it means occur the markers several times, then also the text between them several times replaced. The code would have to be changed in such a way, everything between the first occurrence of the marker1 and the last occurrence of the marker2 is replaced. What has to be adapted in the program code?

Thank you

MilhouseNo1
MilhouseNo1 is offline   Reply With Quote
Old 26th May 2010, 11:27   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
This is quite difficult as you usually do not read lines backwards. However this may be doable using the functions provided in the user manual.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump