How do I request a text string from the user?

Author: BitRock Support       Date: October 30, 2007 09:33       Tags: User input and custom installer pages

You can request a text string from the user during installation using a string parameter. You will have to include a section like the one below inside the parameterList section of your xml installer project file.


   <stringParameter>
     <name>hostname</name>
     <default>localhost</default>
     <title>Application Server</title>
     <value></value>
     <ask>1</ask>
     <description>Hostname</description>
     <explanation>Please enter the hostname for \r your application server.</explanation>
   </stringParameter>
This will create an installer environment variable called
hostname
that will contain the string introduced by the user. You can later refer to the value of that variable using ${hostname}. Click here to download a sample project.xml file that integrates this functionality.

 

 

Back You should login to comment

 

You are
currently not
logged in.

 Log in 

or

Sign up