|
|
#1 |
|
Junior Member
Join Date: Oct 2005
Posts: 21
|
I would make a custom page
Hy I would make a custom page for my installer.
In this custom page the user has an text field where he can write a password. The password must be insert in an *.txt file how can i do this ? Here is an example: http://www.mp-filebase.de/modules/my...9516f2128f7a1f Here you can write your steam id etc in the textfield and a script??? insert the words in the *.txt document. How can I do this ? Thx for your help |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Use InstallOptions with a Password control. There are many InstallOptions examples in NSIS\Examples\InstallOptions, and a Modern UI one NSIS\Examples\Modern UI\InstallOptions.nsi
The InstallOptions readme is under NSIS\Docs\InstallOptions -Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2005
Posts: 21
|
Hy
Thx for your reply I've read now all *.nsh in the example folder But I don't know how I can make it. So far I've made an custom page with password field. Can anybody help me and write the code in my nsh ? When you download my nsh there are two other files. The Password.ini is for the custom page. And in the users.ini must the new password. PLS help me. |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You need to use ReadINIStr in the Custom Page's Leave function and read from the State of your Field #.
Then use WriteINIStr to write the value to users.ini e.g. code: -Stu |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2005
Posts: 21
|
Hy Afrow UK thx for your help.
I've write my code now with Advanced Replace In File and this is my code: code: But it doesn't work. When I write a password in the password field my users.ini is further empty... What is wrong ? Pls help me |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
Try this example:
code: "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|