| Customize Help

Silent redistribution under Linux

A silent redistribution does not prompt your user for any MIL or MIL-Lite information; instead, it uses a configuration file to provide the necessary setup parameters for the intended computer. You would use a silent redistribution when you are including MIL or MIL-Lite within your application and you do not want to have any Matrox Imaging setup questions appear at the command prompt. You could also use a silent redistribution if you wanted to control the setup parameters for your client.

It is not possible to create a configuration file for only a few of the setup parameters and ask the customer for the rest of the setup information. If you are going to use a configuration file, you must provide answers to all of the setup questions.

To redistribute the MIL or MIL-Lite DLLs and device drivers using a silent redistribution:

  1. Copy the mil-10_XXXX-installer.run file from the MIL or MIL-Lite DVD to an empty working directory on a temporary computer. Note that your working directory should be on a computer that does not have MIL installed. The mil-10_XXXX-installer.run file is a packed file that includes all MIL files to install. Optionally, to reduce the number of MIL components (files) that will be installed on your customer's computer, remove the unnecessary files in the mil-10_XXXX-installer.run file as described in the Creating an interactive redistribution for your custom DVD under Linux section earlier in this chapter.

  2. Record in the configuration file the setup options that should be used when MIL is installed on your customer's computer. To record your setup options, you will need to install MIL on your temporary computer with the required options. To install MIL and record the choices made during the installation, execute:

    mil-10_XXXX-installer.run -- --recordfile=/home/MIL10/mil-install-recording.ini

    where /home/MIL10/mil-install-recording.ini can be any absolute path to a configuration file that will record all the options you will select during the installation process.

    Note that if you do not specify a path with the --recordfile parameter, your Linux /var/tmp directory is used by default.

    The mil-10_XXXX-installer.run file will unpack and then begin installing MIL. If MIL is already installed, an error message appears asking you to first uninstall MIL.

    The MIL installation program poses a series of questions via a command prompt. You can select which MIL setup options will be used during the installation of MIL on your customer's computer. Once all selections are made, MIL is installed. Note that MIL is installed in a predetermined directory.

  3. Copy the configuration file along with the mil-10_XXXX-installer.run file to the location from which you are building your installation DVD or package.

  4. Have your installation program call the MIL installer as follows:

    mil-10_XXXX-installer.run -– --play=mil-install-recording.ini

    The MIL installer will silently install MIL or MIL-Lite with the options that you selected during the recording phase and stored in the mil-install-recording.ini file.

    When running the installation program with a configuration file (mil-install-recording.ini), you must use the same version of the MIL installer file (mil-10_XXXX-installer.run) as the one used to generate the configuration file; otherwise, an error will occur.