Skip to content
⌘ NSIS Forum Archive

How to edit config.nt for dos

5 posts

brweb#

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#
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#
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
brweb#
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.