brweb
27th August 2007 10:30 UTC
How to edit config.nt for dos
Hi,
I am a new user of NSIS.
I have my program which is dos based. My program requires files=254 in config.nt file which is available at is location
"$WINDIR/system32/config.nt"
I want to automatically edit the file and replace the line "files=*" (I have added * because the number may be differnt on some systems) with line "files=254". The original file contains any number at "files=" default is 40 on some systems.
Now, I want a method to do this with NSIS as automatically. Is there any way to do this?
Thanks in advance...
kichik
27th August 2007 19:15 UTC
LineFind can do this for you. It searches a file for some lines and allows you to replace those lines with your own text.
brweb
4th September 2007 11:20 UTC
Hey thanks... but I don't know how to use it. I am a very newbie in NSIS. Please provide more help in how to use it
kichik
5th September 2007 00:29 UTC
The links contains a few examples. Try those.
brweb
5th September 2007 04:42 UTC
Thanks for fast reply.. I will try.
But, is there any site which provides an easy way to learn NSIS? The help file is not so descriptive for newbie like me.