Editing text files with NSIS or creating a dll to do so
Hi,
I've been using NSIS for a few years now, not only as a installer but also to configure existing applications and scripting stuff in general, and as a non programmer I think it is a brilliant language, simple to learn, excellent help, useful forums and able to simply do almost anything that I could want... except edit text files.
I've searched the help, forums, plugin's and google and keep struggling when I want to modify text files. I want to do simple stuff line find and replace text as well as things like
- * Find a line like foo and replace the whole line with foo=bar
* Append line foo=bar if foo doesn't exist
* Find line like foo and return the line number and/or whole line
* Insert foo at line number 3 moving everything else down
Recently this has been bugging me enough that I tried making a dll to use as a plugin but failed miserably, I ended up writing a simple cli application in VB.net (I know some vb via excel) and used ExecWait, the logic and code turned out to be incredibly simple. I'd really like to do the dll as opposed to the cli but have been unable to find a simple example. Is there a Hello World tutorial for creating dll's? Is Visual Studio Express suitable to create dll's with? Am I biting off more than I can chew?