How can I direct the installer to ask the user to enter a file or directory?

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

You can direct the installer to ask the user to enter a file or directory using a file or directory parameter. You will have to include a section like the following inside the parameterList section of your installer project file.

    <directoryParameter>
           <name>mydir</name>
           <value></value>
           <title>Title for you directory page</title>
           <description>Some Directory</description>
           <explanation>Please specify the directory requested</explanation>
           <default></default>
           <cliOptionName>prefix</cliOptionName>
           <ask>yes</ask>
           <mustBeWritable>yes</mustBeWritable>
    </directoryParameter>
This will create an installer environment variable called
mydir
that will contain the directory or file introduced by the user. You can later refer to the value of the variable using ${mydir}. 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