Archive: Help on combining user-entries and replace in a ascii-file


Help on combining user-entries and replace in a ascii-file
Dear folks,

is there anybody out there who can help me?

1.) What I am looking for, is the code for a textfield, where users enter some information (ok, that's not all...-->) After userinfo was given, this information must be written to a text-file (ascii). (e.g. The user enters his e-mailaddress which is written to a specific position in the ascii-file)

2.) I also need a solution where users click a checkbox and according to their "check" a text-file is edited.
(e.g. checked means: remove a '#' somewhere in a file, unchecked means: leave the '#' where it is)

The best of all, I need this bi-lingual. Is there a possibility to seperate english and german descriptions according to the selected language?

Simple, ähh ;-) ?

But not for me ;-(

Thx 4 help
Mo


You can use InstallOptions to show a page with a text entry box, try reading the Contrib\InstallOptions\Readme.html file and the example .nsi and .ini files in that directory. In essence you want something like:

[Settings]
NumFields=1

[Field 1]
Type=Text
..whatever other settings you want...


A checkbox would just be a different type.

This page will show you how to replace lines in a text file. This should give you some ideas about how to do both of the file operations you mentioned.

The InstallOptions Readme.html tells you how to get the state of the controls once the page has been dismissed.

I'll gibe it a try,

Thx