Skip to content
⌘ NSIS Forum Archive

Editing File

4 posts

sandeepsirsgi#

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
Jnuw#
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
Afrow UK#
Use the PassDialog plugin which has built in user name and password page:



-Stu