PDA

View Full Version : How to create textbox and set variable


Russell81
25th March 2009, 14:19
Hello there,
I made an istaller and i got new challange that, i want to read a text file, find and replace some word from the text file. The idea is that installer will prompt a window with a text box and ask from the user with what they want to replace with!

For example:
I have "ContractorID" in text file an want to replace that with a number.

Comperio
26th March 2009, 01:16
You might find some help on the Wiki:
http://nsis.sourceforge.net/Category:Text_Files_Manipulation_Functions

(Here's one (http://nsis.sourceforge.net/Advanced_Replace_within_text_II) example and here's another (http://nsis.sourceforge.net/ReplaceInFile).)

Russell81
26th March 2009, 06:20
Thanks. Anyone can give me more details.