--------------------------------------------------------------------------------
               Matrox Imaging Library (6.1) redist.txt Readme File
                                  May 15, 2000
     Copyright  2000 by Matrox Electronic Systems Ltd. All rights reserved.
--------------------------------------------------------------------------------


This document explains the current limitations and particularities when 
redistributing MIL (subject to change in future releases). 


Contents

1. How to Redistribute MIL/ActiveMIL.
   1.1 Install a MIL or ActiveMIL redistribution (run-time) on a target system, 
       using the MIL CD.
   1.2 Distribute MIL or ActiveMIL redistribution files using your own custom 
       installation CD.
   1.3 Silent redistribution OR Automatic answers using a response file.
   1.4 Response file format.
   1.5 Possible errors for a response file.
   1.6 Error codes.
2. Important Notes.
   2.1 For Windows 98 users.
   2.2 For Windows NT\2000 users.
   2.3 To make a silent uninstallation of Matrox Imaging Products.
   2.4 To use a MIL run-time hardware key for the redistribution license.


1. How to Redistribute MIL/ActiveMIL.

   - There are 3 ways to redistribute MIL or Active MIL. They are listed below 
     under 1.1, 1.2, and 1.3.


   1.1 Install a MIL or ActiveMIL redistribution (run-time) on a target system, 
       using the MIL CD.

       a) Run MIL setup. The Matrox Imaging Master Setup dialog box appears.

       b) Perform a MIL or ActiveMIL redistribution installation (select the
          Redistribution option). This will copy the files and install the
          drivers necessary to run your MIL application.

       c) Copy your application files (.exe, ...)  


   1.2 Distribute MIL or ActiveMIL redistribution files using your own custom 
       installation CD (You will be prompted with questions when appropriate).

       a) Copy the \REDIST directory from the MIL CD to your application's CD. 
          Note, if you want to save some space on your target CD, you can remove 
          certain components in the \REDIST\... directory if they are not 
          required for your particular application. The main candidates that can 
          be removed to save space are:
          - \Redist\Matrox\ActiveMil directory if you are not using ActiveMIL.
          - \Redist\Genesis and Redist\Matrox\Drivers\Genesis directories if you 
            are not using a Matrox Genesis board.
          - \Redist\Matrox\Drivers\Meteor_II_Dig directory if you are not using 
            the Matrox Meteor-II/Digital board.
          Note that \Redist\Matrox\Corona directory is necessary if you are 
          using the Matrox Meteor-II or Meteor-II/Multi-Channel board.

       b) Copy the file MtxImage.inf and Mtximgci.dll in your CD's root 
          directory. These files are used in Windows 98 for the plug and play 
          installation of imaging board drivers. Note that under Windows 98 it 
          is only possible to install the Matrox frame grabber drivers if boards 
          are physically present in the computer at the time of installation. 

       c) Modify your installation program so it calls the 
          \REDIST\MATROX\redist.EXE file with the parameter, REDISTRIBUTION or
          REDISTRIBUTION_ACTIVEMIL. 

          - Examples:

            For MIL: C:\Redist\Matrox\redist.exe REDISTRIBUTION 

            For ActiveMIL: C:\Redist\Matrox\redist.exe REDISTRIBUTION_ACTIVEMIL 

            The setup.exe file installs the required run-time MIL DLL files and
            drivers on the target system.

          - Note: We use InstallShield 5.5 to run our installation program. Here 
            are some limitations of the InstallShield installation program (this 
            information was acquired from InstallShield documentation): You can 
            use the DoInstall function to run multiple scripts simultaneously or 
            to chain scripts. All scripts must be compatible with the version of 
            InstallShield you are running.


   1.3 Silent redistribution OR Automatic answers using a response file.
 
       a) Follow the steps for a normal "MIL or ActiveMIL redistribution from 
          your application's CD".

       b) Create a response file that provides all the answers necessary to 
          install MIL according to your target environment. See the example 
          RESPONSE.TXT file located in Redist\Matrox.

       c) Call the redistribution redist.exe program with the additional 
          "RESPONSEFILE=<filename>" -s parameter to specify the name and 
          location of your response file.

          - Examples:

            For MIL: C:\Redist\Matrox\redist.exe REDISTRIBUTION 
            RESPONSEFILE="c:\Redist\Matrox\response.txt" -s

            For ActiveMIL: C:\Redist\Matrox\redist.exe REDISTRIBUTION_ACTIVEMIL 
            RESPONSEFILE="c:\Redist\Matrox\response.txt" -s


   1.4 Response file format.

       - Automatic answers are provided by a response file. For an example 
         of such a file, refer to response.txt. The following is a list of the 
         available response file parameters:

       SILENTMODE             :Designate the Silent installation (i.e. no dialog 
                               box).

       INSTALLATION_DIRECTORY :The target installation directory (i.e. 
                               c:\Program Files\Matrox Imaging).
 
       DRIVERx                :The Drivers to install: CORONA, GENESIS, 
                               METEOR_II, METEOR_II_DIG, METEOR_II_1394, ORION 
                               and PULSAR. (i.e. DRIVER1=CORONA)

       DMA_MEMORY_SIZE        :Non-paged memory size for Windows NT\2000, in 
                               Mbytes. Minimum of 1 Mbytes, except for VGA and 
                               METEOR_II_1394 drivers, which now can have a 
                               minimum of 0 Mbytes. (i.e. DMA_MEMORY_SIZE=4)

       DMA_CORONA,
       DMA_METEOR_II,
       DMA_PULSAR             :Non-paged memory size for Windows 98 in Mbytes,
                               one for each installed board. (i.e. DMA_CORONA=4)

       GENESIS_INSTALLATION_PARAMETERS, 
       METEORII_DIG_INSTALLATION_PARAMETERS
                              :These two drivers have different libraries, each 
                               with its own installation programs. To install 
                               these libraries automatically in silent mode, you 
                               need to set the installation parameters as the 
                               following (note that each of these two parameter 
                               lines must be written as ONE, UNBROKEN line of 
                               code):
GENESIS_INSTALLATION_PARAMETERS = path c:\genesis type full var registry vcf single dcf rs170.dcf ramdrive current dma 1024 

METEORII_DIG_INSTALLATION_PARAMETERS = path c:\genesis type full var registry vcf single dcf rs170.dcf ramdrive current dma 1024  


       MGA_DRIVER             :Action to take if the MGA driver is not installed 
                               or a previous version is found. (i.e. MGA_DRIVER=
                               INSTALL or MGA_DRIVER=IGNORE)

       SUPERPRO               :Whether or not SuperPro is installed, this driver 
                               is needed to communicate with the MIL run-time 
                               hardware key. (i.e. SUPERPRO=INSTALL or SUPERPRO=
                               IGNORE)

       Notes: 

       - In the sample RESPONSE.TXT provided, you can comment out (that is,
         disable) an option by preceding the line with two slashes: //. Please 
         note that putting // anywhere on the line will also disable the option.

       - For backwards compatibility, response file parameters METEOR2 and 
         METEOR2D for Matrox Meteor-II and Matrox Meteor-II/Digital can also be 
         used for DRIVERx. We recommend you use the new definitions METEOR_II 
         and METEOR_II_DIG.


   1.5 Possible errors for a response file.
   
       - "Invalid response file path or name."
     
       - "Invalid parameters" (for example, invalid installation directory, no 
          driver selected, error in non-paged memory size.)
   
       - Missing parameters.

   You will find the installation status in the following registry key: 
   HKEY_CURRENT_USER\ Software\ Matrox entry: Status 

 
   1.6 Error codes.

       ERR_COMPLETED                   0   //"Installation completed"
       ERR_INVALID_RESPONSEFILE        1   //"Error: Invalid response file"
       ERR_USER_CANCEL                 2   //"Error: Installation cancelled by 
                                              the user"
       ERR_PROTECTION                  3   //"Error: Not able to set the 
                                              protection"
       ERR_VERSION                     4   //"Error: Previous MIL version found"
       ERR_SYSTEM_REQUIREMENT          5   //"Error: System requirement missing"
       ERR_INVALID_DIRECTORY           6   //"Error: Invalid installation 
                                              directory"
       ERR_INVALID_DMA                 7   //"Error: Invalid non-paged memory"
       ERR_INVALID_MGA                 8   //"Error: Invalid MGA driver 
                                              installed"
       ERR_INVALID_DIRECTX             9   //"Error: Invalid DirectDraw version"
       ERR_INVALID_PARAM_SILENTMODE   10   //"Error: Invalid response file 
                                              parameter: SILENTMODE"
       ERR_INVALID_PARAM_INST_DIR     11   //"Error: Invalid response file 
                                              parameter: INSTALLATION_DIRECTORY"
       ERR_INVALID_PARAM_DRIVER       12   //"Error: Invalid response file 
                                              parameter: DRIVERX"
       ERR_INVALID_PARAM_DMA          13   //"Error: Invalid response file 
                                              parameter: DMA"
       ERR_INVALID_PARAM_MGA          14   //"Error: Invalid response file 
                                              parameter: MGA_DRIVER"
       ERR_INVALID_PARAM_DIRECT_DRAW  15   //"Error: Invalid response file 
                                              parameter: DIRECT_DRAW"
       ERR_INVALID_PARAM_SUPERPRO     16   //"Error: Invalid response file 
                                              parameter: SUPERPRO"
       ERR_GENESIS_UNINSTALL          19   //"Error: not able to call Genesis 
                                              uninstall setup"
       ERR_GENESIS_SETUP              20   //"Error: not able to call Genesis 
                                              setup"
       ERR_UNINSTALLMIP_UPGRADE       22   //"Error: not able to do 
                                              UnInstallMIP.exe upgrade"
       ERR_COMPONENT_SELECT           23   //"Error: ComponentSelect: problem 
                                              with file transfer"
       ERR_COMPONENT_MOVE_DATA        24   //"Error: ComponentMoveData: problem 
                                              with file transfer"
       ERR_COPY_SHARED_DLL            25   //"Error: not able to copy shared 
                                              DLL"
       ERR_REGISTER_ACTIVEMIL_OCX     26   //"Error: not able to register 
                                              ActiveMIL OCX"
       ERR_REGISTER_OCX               27   //"Error: not able to register OCX"
       ERR_LITE_DIFFERENT_VERSION     28   //"Error: More recent MIL-Lite 
                                              version installed"
       ERR_VERSION_MORE_RECENT        29   //"Error: More recent MIL version 
                                              installed"
       ERR_DIGITIZER_DEFAULT_VALUE    30   //"Error: Unable to read default DCF 
                                              file"
       ERR_NOT_ENOUGH_DISK_SPACE      31   //"Error: Not enough disk space for 
                                              the installation"
       ERR_INITIALIZE                100   //"Initialization at beginning of 
                                              installation"


2. Important Notes.

   2.1 For Windows 98 users.

       - Be sure that the O/S has a standard VGA display adapter installed prior 
         to the installation of the MGA drivers. 
	
       - The MGA drivers are only installed for boards that have an on-board 
         display adapter (Matrox Corona, Matrox Genesis, Matrox Orion & Matrox 
         Pulsar only!). For any other product, please install the MGA drivers 
         prior to the silent redistribution installation.  


   2.2 For Windows NT\2000 users.

       - Be sure that the O/S has a standard VGA display adapter installed prior 
         to the installation of the MGA drivers.  

       - The MGA drivers are only installed for boards that have an on-board 
         display adapter (Matrox Corona, Matrox Genesis, Matrox Orion & Matrox
         Pulsar ONLY!). For any other product, please install the MGA drivers 
         prior to the silent redistribution installation.  


   2.3 To make a silent uninstallation of Matrox Imaging Products.

       - Call the Matrox Imaging Products Uninstallation program with the
         appropriate combination of the following parameters and specify the 
         products you want to uninstall.

         Parameters:
         /s   Silent mode (no dialog box)
         /n   no reboot at the end of uninstallation
         /m   Uninstall MIL
         /a   Uninstall ActiveMIL
         /i   UnInstall Intellicam
         /l   UnInstall LicenseGenerator
         /h   Display the parameters

         For example, if you want to uninstall MIL and ActiveMIL in silent mode 
         without rebooting your system, call:

         C:\Winnt\UnInstallMIP.exe /s /n /m /a  

         Note: Matrox Imaging Products Uninstallation program is copied to the 
         Windows directory at the time of installation.

       - You will find the uninstallation status in the following registry key: 
         HKEY_CURRENT_USER\ Software\ Matrox 
          entry: uninstall_status 
 
       - Error codes:
         ERR_COMPLETED      0   //"Uninstallation completed with no error"
         ERR_LOGFILE        1   //"Error: See log file uninstallMIP.log in
                                   windows directory"

 
   2.4 To use a MIL run-time hardware key for the redistribution license.

       - If you use a MIL run-time hardware key instead of a software license
         for your target system, you must install the driver for the hardware 
         key, otherwise MIL or ActiveMIL redistribution will not recognize it.

       - To install the Sentinel hardware key driver, in addition to your 
         regular redistribution setup:

         For Windows NT\2000, call the 
         Matrox\drivers\SuperPro\winnt\Setupx86.exe program and select 
         Functions, and then Install Sentinel Driver.

         For Windows 98, call the \Matrox\drivers\SuperPro\win98\Sentw9x.exe 
         program and select Functions, and then Install Sentinel Driver.

         Note: For more information about installing the Sentinel driver, refer 
         to the README.TXT file in the SuperPro directory.

       - If you do a silent redistribution of MIL or ActiveMIL, set the 
         response file parameter SUPERPRO to INSTALL. The Sentinel hardware 
         key driver will be installed with the redistribution of MIL or 
         ActiveMIL.
 