![]() option_name will be set to the value in "Command Line Name" (cliOptionName) or to the property name if it is not defined.The given information can be modified using the properties inside the "Command Line" tab in the parameter window or adding the properties "cliOptionName", "cliOptionText" and "cliOptionShow" to its definition in the XML file: Each parameter is shown with a message similar to: When the installer is run with the -help option, the whole list of available command line switches is displayed. In order to configure the default values for each parameter, you need to edit the field "default" which appears in the "Main" tab inside parameter window or adding the property "default" to its definition inside the XML file:Īs mentioned earlier, each parameter will have its own command line option. Let's take a look at how you can configure the installer so it behaves as expected in unattended mode and provides the appropriate feedback to the user through "-help". For instance:Ĭonfiguring Unattended Mode Parameters in an Installer Where optionfile should contain a list of pairs =. "$ installer_binary -mode unattended -optionfile optionfile" This will instruct the installer to take the values from the specified file. This is possible using the command line switch "-optionfile ". "Īs the number of parameters grows, it may be best to define the options values inside a text file. "$ installer_binary -mode unattended -param1 value1 -param2 value2. If we want to use specific values, we should run the installation as follows: You can also define the values through command line switches which are generated for each parameter definition inside the InstallBuilder project. Note that you are not forced to use only the default values when running the installer in this mode. That way, it is possible to incorporate the installer execution into scripts since no input is required from the user during the installation. With this mode, the installer will not prompt the user for any information and will instead take the default settings configured for each of the parameters. The mode "unattended" is particularly useful when we need to incorporate installations into an automated process. As you may know, installers generated with InstallBuilder provide different execution modes using the command line option "-mode".
0 Comments
Leave a Reply. |