X
1467 Rate this article:
No rating

ENVI50/IDL82 Silent Install Script Options

Anonym

Provided below is an example of a silent install script that shows how to launch a non-interactive Exelis Visual Information Solutions product installation and the options that are available.Discussion:
To perform a silent installation of your Exelis Visual Information Solutions product you need to use a silent configuration file with the binary installer file. You can use a configuration file provided with your installation disk or you can register a response file that captures the user interaction that would normally be entered through dialogs. This response file is passed to the setup.exe so the installation can be run without any user interaction. Below is an example of how to record a response file and how to launch a non-interactive installation and the options that are available.

Note: The instructions provided below will also work with all the installers binaries for Windows platform provided by Exelis Visual Information Solutions on our website . A fully customizable silent and unattended installation script can be recorded and used with IDL  and ENVI  as described in the Installation and Licensing Guide under the section "Installing IDL or ENVI Silently and Unattended."


Example:

There are two approaches for using the InstallShield "unattend.iss" silent configuration file for IDL  and ENVI:

  1. Use the provided "unattend.iss" silent and unattended installation script

    1. Using the unattend.iss file without modification

    2. Using a customized copy of the unattend.iss file
  2. Record and use a "custom" silent and unatttended install script *.iss file

    1. Recording and using a silent/unattended installation script

    2. Recording and using a silent/unattended uninstallation script

    3. Creating a debug log during a silent/unattended installation



APPROACHES

  1. Use the provided "unattend.iss" silent and unattended installation script:

    Both the IDL and ENVI for Windows CD-ROMs contain a pre-built silent and unattended installation script file called "unattend.iss". The 32-bit version of the file is located on the CD at:

      \setup\x86\unattend.iss

    The 64-bit version of the unattend.iss file is located on the CD at:

      \setup\x86_64\unattend.iss
    1. Using the unattend.iss file without modification (/s switch)

      The prebuilt unattend.iss script that is provided on installation CD-ROM can be used without modification. This script installs all of the available product components from the CD, except for the IDL Script Node for LabVIEW component, and installs IDL or ENVI to the default directory location, C:\Program files\itt\idlxx (for versions prior to 8.2) C:\Program files\exelis\idlxx (for current and future versions)


      To run the unmodified unattend.iss file, include the /s switch when running the setup command:

        :\setup\\setupxx.exe /s /f1"drive-letter:\path\filename.iss"

      For example, to invoke a 32-bit IDL 7.1 installation using the script "E:\setup\x86\unattend.iss", where E: is the drive letter that has mounted the IDL 7.1 CD:

        e:\setup\x86\setup32.exe /s /f1"e:\setup\x86\unattend.iss"
    2. Using a customized copy of the unattend.iss file

      The unattend.iss script file may also be copied to a convenient location and modified to specify a custom installation directory.

      1. Customizing the unattend.iss script

        Some parameter definitions in the pre-built unattend.iss file can be modified without disabling the script, such as the installation directory (as well as the company name and user name properties).

        After copying the unattend.iss file, for example to "c:\unattend.iss", edit the file with a plain text editor like Notepad, and change the "szDir" assignment to the desired custom installation location. For example, to specify installation of IDL 8.2 to C:\Program Files\exelis\idl82, find the following section in the unattend.iss file:

          ...
          IDLVMSelection=0
          [{0250F6B4-796C-4845-9BD8-1008935FB70A}-SdAskDestPath-0]
          szDir=c:\RSI\
          Result=1
          [{0250F6B4-796C-4845-9BD8-1008935FB70A}-SdComponentTree-0]
          szDir=c:\RSI\
          Component-type=string
          ...

        --then alter the szDIR assignments to specify the new installation directory:

          ...
          IDLVMSelection=0
          [{0250F6B4-796C-4845-9BD8-1008935FB70A}-SdAskDestPath-0]
          szDir=c:\Program Files\
          Result=1
          [{0250F6B4-796C-4845-9BD8-1008935FB70A}-SdComponentTree-0]
          szDir=c:\Program Files\
          Component-type=string
          ...

        For ENVI, you would alter the "szDir" assignment in similar locations in the unattend.iss file. Using this approach, you should also be able to modify user name (szName) and the company name (szCompany) script parameters.



      2. Running the script (/s switch)

        To run the modified unattend.iss file, use the /s switch to the setup command:

          :\setup\\setupxx.exe /s /f1"drive-letter:\path\filename.iss"

        For example, to invoke a 32-bit installation using the script c:\myunattend.iss:

          e:\setup\x86\setup32.exe /s /f1"c:\myunattend.iss"
  2. Record and use a "custom" silent and unatttended install script *.iss file

    If you need a silent and unattended installation script file that does not install the Network License Server component, you would need to record your own version of the script, selecting all of the presented installer components, except for the IDL Script Node for LabView and the Network License Server components. All other components must be selected in order to generate a functional installer script.

    Below is the syntax to record and use the silent install or uninstall script. Also included are instructions for recording a log file to trouble-shoot a silent/unattended installation.

    1. Recording and using a silent/unattended installation script

      1. Recording a script (switches: /r, /f1)

        The syntax to record a silent and unattended installation *.iss file using setup32.exe (or setup64.exe)is as follows:

          :\setup\\setupxx.exe /r /f1"drive-letter:\path\filename.iss"

        For example, to record a 32-bit setup script at c:\mysetup.iss:

          e:\setup\x86\setup32.exe /r /f1"c:\mysetup.iss"
      2. Running the script (switches: /s, /f1)

        To use the recorded installation *.iss script, invoke the /s switch instead of the /r switch in the setup command:

          :\setup\\setupxx.exe /s /f1"drive-letter:\path\filename.iss"

        For example, to invoke a 32-bit installation using the script c:\mysetup.iss:

          e:\setup\x86\setup32.exe /s /f1"c:\mysetup.iss"
    2. Recording and using a silent/unattended uninstallation script

      1. Recording a script (switches: /r, /x, /f1)

        The syntax to record a silent and unattended uninstallation *.iss file using setup32.exe (or setup64.exe)is as follows:

          :\setup\\setupxx.exe /r /x /f1"drive-letter:\path\filename.iss"

        For example, to record a 32-bit uninstallation script at c:\myuninstall.iss:

          e:\setup\x86\setup32.exe /r /x /f1"c:\myuninstall.iss"
      2. Running the script (switches: /s, /x, /f1)

        To use the recorded uninstallation *.iss script, invoke the /s switch instead of the /r switch, in addition to the /x switch, in the setup command:

          :\setup\\setupxx.exe /s /x /f1"drive-letter:\path\filename.iss"

        For example, to invoke a 32-bit uninstallation using the script c:\myuninstall.iss:

          e:\setup\x86\setup32.exe /s /x /f1"c:\myuninstall.iss"
    3. Creating a debug log during a silent/unattended installation (switches: /s, /f1, /f2)

      To create a debug log from a silent and unattended installation you can additionally use the /f2 switch with the name of a debug log file as the argument. The syntax in this case is:

        :\setup\\setupxx.exe /s /f1"drive-letter:\path\filename.iss" /f2"drive-letter:\path\debuglogname.txt"

      For example:

        e:\setup\x86\setup32.exe /s /f1"c:\myinstall.iss" /f2"c:\mydebug.txt"