Old 4th May 2004, 22:17   #1
seanw
Junior Member
 
Join Date: May 2004
Posts: 2
Text-file manipulation within an installer

I'm wondering if there's any convenient way to manipulate large text files within an installer: Specifically, to perform large-scale simple search-and-replace (it does not need to be so complicated as a regex; simple search-and-replace is fine). Strings are too small to contain the quantity of data involved: In most cases, I'm dealing with text files of 40-50 Kb each, extracted by the installer itself. Thus they're too big to simply use the standard string library. Obviously, I could write an extension DLL to do this, but that's a waste of time if there's already something written. So I'm wondering if anybody has already built a DLL for this, or if there's an existing chunk of code I can slap in from somewhere to do it.
seanw is offline   Reply With Quote
Old 4th May 2004, 22:39   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
the ReplaceInFile function is one of multiple scripts, which can search&replace text
Yathosho is offline   Reply With Quote
Old 4th May 2004, 23:53   #3
seanw
Junior Member
 
Join Date: May 2004
Posts: 2
Thanks. It's not exactly the most efficient piece of code I've ever seen, but it should do the job in a pinch.
seanw is offline   Reply With Quote
Old 5th May 2004, 04:27   #4
bluenet
Senior Member
 
Join Date: Mar 2004
Posts: 138
I want somebody make a DLL to do this,because this function seem too large.
bluenet is offline   Reply With Quote
Old 5th May 2004, 11:26   #5
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
What? If you see my Advanced StrStr you will be impressed with its size (and with the "Advanced" word correctly put on the title...).

My Wiki Pages

Working now on:
New projects. (language: any)
deguix 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