Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 31st May 2006, 13:23   #1
sandeepsirsgi
Junior Member
 
Join Date: May 2006
Location: INDIA
Posts: 15
Unhappy 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
sandeepsirsgi is offline   Reply With Quote
Old 31st May 2006, 17:30   #2
Jnuw
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
Jnuw is offline   Reply With Quote
Old 31st May 2006, 19:56   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 2nd June 2006, 06:07   #4
sandeepsirsgi
Junior Member
 
Join Date: May 2006
Location: INDIA
Posts: 15
Thanks for help.
sandeepsirsgi is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump