Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a configuration file with the properties from a dialog ?

Status
Not open for further replies.

JeromeD

Programmer
May 2, 2005
3
CA
Hi !

i use wise installer to create a msi.

The user inputs datas (text field) during installation, using dialog boxes.

I'd like to put those values (properties) in a text file that will be a configuration file for my application.
How can i do that ?

For example, i want the user to enter the database server name and port, and i want to put those values in a text file that will be a configuration file.

example :

----------------------------
SERVERNAME=myserver
PORT=1234
----------------------------

thx in advance

bye

Jerome
 
Jerome,

You can use the insert command to modify a test file. I have used this before to keep a running list of installed clients with a particular app. You will need two inserts one for each item to write. Ensure you instruct it to append the next line.

item: Insert Line into Text File
Pathname=%MAINDIR%\test.dat
New Text=Server_ID=R%ARNUM%
Search Text=Server_ID=R
Line Number=0
Flags=00001000
end


I hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top