|
|
#1 |
|
Junior Member
Join Date: May 2006
Location: INDIA
Posts: 15
|
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 |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Sep 2004
Location: Wisconsin, US
Posts: 258
|
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 |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Use the PassDialog plugin which has built in user name and password page:
http://nsis.sf.net/File:PassDialog.zip -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: May 2006
Location: INDIA
Posts: 15
|
Thanks for help.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|