Archive: Editing File


Editing File
Hi,
I am new to NSIS.
I had gone through tutorial.
I want a script that should prompt for user information while installing (ex user name, passwd) , then put these information in to a file.
Can any one help me on that.

Regards
Sandeep


You probably need to make a custom page. Check out these references:

This will show you how to make a custom page:
C:\Program Files\NSIS\Docs\InstallOptions\Readme.html

This is an example of an nsis script with custom pages.
C:\Program Files\NSIS\Examples\Modern UI\InstallOptions.nsi

Then use FileWrite to write to your text file. From the tutorial:
ClearErrors
FileOpen $0 $INSTDIR\file.dat w
IfErrors done
FileWrite $0 "some text"
FileClose $0
done:


Hope this helps.
Jnuw


Use the PassDialog plugin which has built in user name and password page:

http://nsis.sf.net/File:PassDialog.zip

-Stu


Thanks for help.