home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 3.ddi / INSTALL.DAT < prev    next >
Encoding:
Text File  |  1992-07-08  |  9.8 KB  |  355 lines

  1. /*
  2.  *  iRMX(R) For Windows* Release 2.0B Installation Script
  3.  *  Copyright 1992, Intel Corporation.  All Rights Reserved.
  4.  *
  5.  *      * iRMX is a Registered Trademark of Intel Corporation
  6.  */
  7.  
  8. @DefineProject
  9.     @Name = "iRMX For Windows"
  10.     @Version = "Release 2.0B"
  11.     @OutDrive = C
  12.     @Requires @HardDisk
  13.     @Immediate = 1
  14. @EndProject
  15.  
  16.  
  17. /*
  18.  *  Define all variables - subdirectories in particular - we will be using
  19.  *  to install this package.
  20.  */
  21.  
  22. @DefineVars
  23.     @If (@DriveRemote(@InDrive))
  24.     @Integer @Network = 1
  25.     @Integer @Tools = 0
  26.     @Else
  27.     @Integer @Network = 0
  28.     @Integer @Tools = 1     // Can change to zero for toolless inst.
  29.     @EndIf
  30.     @Dir @ConfigDir = "\\RMX386\\CONFIG"
  31.     @Dir @LangDir = "\\LANG286"
  32.     @Dir @RMXDir = "\\RMX386"
  33.     @Dir @DRMXDir = "\\DOSRMX"
  34.     @Dir @Util3Dir = "\\UTIL386"
  35.     @Dir @PCL2Dir = "\\PCLR3"
  36.     @Dir @WinDir = "\\WINDOWS"
  37.  
  38.     @Integer @NFiles = 64                  // Minimum values for
  39.     @Integer @NBufs = 40                   // CONFIG.SYS variables
  40.  
  41.     @Dir @ToolDir = "\\INTEL"              // Directories for ADK
  42.     @Dir @ToolBinDir = "@ToolDir\\BIN"     // programming tools
  43. @EndVars
  44.  
  45.  
  46. /*
  47.  *  Tell the user what's up with this installation package and checks for
  48.  *  required hardware/DOS version.
  49.  */
  50.  
  51. @Display
  52.     @Cls
  53.  
  54.     This installation program installs @Name* on
  55.     your computer system and verifies the integrity of the
  56.     installed files. It gives you the option of installing only
  57.     selected parts of @Name, such as development tools.
  58.  
  59.     If you have any questions during or after the installation of
  60.     this product, please call Intel's iRMX Customer Support, at
  61.     1-800-INTEL-4-U (prompt 2, then 4) or direct at 1-503-696-5025
  62.     for assistance.  For non-U.S.A. customers, please contact your
  63.     local Intel Sales Office or distributor.
  64.  
  65.     You can press the [Esc] key at any time to quit the installation.
  66.  
  67.         * iRMX is a Registered Trademark of Intel Corporation
  68.  
  69.  
  70. @Pause
  71. @EndDisplay
  72.  
  73. /*
  74.  *  Check this system for an 80386- or later processor
  75.  */
  76. @If (@CPU < 386)
  77.     @GetOption
  78.     @Option 65533 = " Yes "
  79.     @Option 65532 = " No  "
  80.  
  81.     Is @Name currently running on this system?
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.     Use the [Up Arrow] and [Down Arrow] keys to move the highlighted
  89.     selection bar over your answer and press [Enter].
  90.  
  91.     @EndOption
  92.     @If (65532[=@Option)
  93.     @Display
  94.         @Cls
  95.     This system has an 80@CPU microprocessor, but the @Name
  96.     software can only be executed on systems with 80386 or higher
  97.     processors.  The installation cannot be completed.
  98.  
  99.     Press any key to terminate this installation.
  100.  
  101.  
  102.  
  103.         @Pause
  104.         @Abort
  105.     @EndDisplay
  106.     @EndIf
  107. @EndIf
  108.  
  109. /*
  110.  *  Check this system for DOS 3.3 or later
  111.  */
  112. @If ((@OSMajor * 100) + @OSMinor < 330)
  113.     @Display
  114.     @Cls
  115.     @Name software requires DOS version 3.3 or later to run.
  116.     Your operating system appears to be version @OSMajor.@OSMinor.
  117.  
  118.     Do you wish to continue the installation?  Press the [Esc] key to
  119.     stop the installation, or any other key to continue.
  120.  
  121.  
  122.     @Pause
  123.     @EndDisplay
  124. @EndIf
  125.  
  126. /*
  127.  *  Check for the minimum amount of conventional DOS-addressable memory
  128.  */
  129. @If (@RAMTotal < 640000)
  130.     @Display
  131.     @Cls
  132.     @Name software requires a system with 640K bytes of
  133.     conventional memory.  There is only @RAMTotal bytes installed
  134.     on this system.
  135.  
  136.  
  137.     @Pause
  138.     @EndDisplay
  139. @Endif
  140.  
  141. /*
  142.  *  Check this system for enough memory to install
  143.  */
  144. @If (@RAMAvail < 400000)
  145.     @Display
  146.     @Cls
  147.     This system has only @RAMAvail bytes of conventional RAM memory free.
  148.     There must be at least 400 Kbytes of memory to install @Name
  149.     correctly.  Use the DOS command CHKDSK or MEM to find out how much free
  150.     conventional memory this system has available.
  151.  
  152.     Check your AUTOEXEC.BAT and CONFIG.SYS files for any TSR programs or
  153.     device drivers that may be taking up this memory.  Please remove enough
  154.     of these to raise your available conventional memory above 400K, and
  155.     then install again.
  156.  
  157.     Press any key to terminate this installation.
  158.     @Pause
  159.     @Exit
  160.     @EndDisplay
  161. @EndIf
  162.  
  163.  
  164. /*
  165.  *  Allow the user to select the drive the system is being installed on (don't
  166.  *  permit installation onto a floppy drive - A: or B:).
  167.  */
  168.  
  169. @GetOutDrive
  170.     @Suppress A
  171.     @Suppress B
  172.     @Cls
  173.     Disk Drive Selection:
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.     Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move
  187.     the highlighted selection bar to the disk drive where you wish to
  188.     install the @Name software and then press [Enter].
  189.  
  190. @EndOutDrive
  191. @ChDrive @OutDrive
  192.  
  193.  
  194. /*
  195.  *  Allow the users options for selecting the type of product they want -
  196.  *  whether the full O.S. or the runtime modules only, which hardware version
  197.  *  of the system to use, and any DTO tools to use.
  198.  */
  199.  
  200. @GetGroups
  201.     @If (@Tools == 0)
  202.          /* 123456789a123456789b123456789c123456789d123456789e + 12 = 62 */
  203.       @Set F = " @Name                                  (10.7 Mb) "
  204.       @Set R = " @Name Runtime Files Only                (4.8 Mb) "
  205.     @Else
  206.          /* 123456789a123456789b123456789c123456789d123456789e */
  207.       @Set A = " @Name Product with Development Tools   (15.7 Mb) "
  208.       @Set F = " @Name Product Only                     (10.7 Mb) "
  209.       @Set R = " @Name Runtime Files Only                (4.8 Mb) "
  210.       @Set T = " Install Only Development Tools                     (5.0 Mb) "
  211.     @EndIf
  212.     @LocalWindow(7,40)
  213.     @Cls
  214.     Product Selection Screen:
  215.                                Approx. Disk
  216.         Product                                       Space Required
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.     Select whether to install the full @Name product,
  224.     the runtime version, or development tools.
  225.  
  226.     Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move
  227.     the highlighted selection bar to the product you wish to install
  228.     and then press [Enter].
  229.  
  230. @EndGroups
  231.  
  232.  
  233. /*
  234.  *  Check if this system has enough extended memory to run iRMX for Windows.
  235.  */
  236. @If ((@ExtTotal < 2M) && (!('T'[=@Group)))
  237.     @Display
  238.     @Cls
  239.     This program cannot detect enough extended memory on this computer
  240.     to run @Name.
  241.  
  242.     Do you wish to continue the installation?  Press the [Esc] key to stop
  243.     the installation, or any other key to continue.
  244.  
  245.     @Pause
  246.     @EndDisplay
  247. @EndIf
  248.  
  249.  
  250. /*
  251.  * Give Runtime Product license warning
  252.  */
  253.  
  254. @If ('R'[=@Group)
  255.     @Display                                    NOTICE
  256.      You are about to install the @Name runtime product.
  257.     Installation of the runtime software requires an iRMX Software
  258.     Redistribution License Agreement which gives you the right to make a
  259.     limited number of copies.
  260.      If you need to make copies of the software, please contact the
  261.     Incorporations Administrator to register for an @Name
  262.     Incorporation product.
  263.  
  264.     Incorporations Administrator telephone numbers:
  265.  
  266.     (503) 696-5075      United States       (503) 696-5198    U.S. Fax
  267.     ++44 793 696 516    Europe              ++44 793 480 779  Europe Fax
  268.     0298-47-8511 x2724  Japan
  269.  
  270.     The runtime software is copyrighted and is protected by United States
  271.     copyright laws and international treaty provisions.  You will not remove
  272.     the copyright notice from the runtime software, and agree to prevent any
  273.     unauthorized copying of the runtime software.
  274.     @Pause
  275.     @EndDisplay
  276. @EndIf
  277.  
  278.  
  279. /*
  280.  *  Check if product is already installed - verify overwrite with user
  281.  *  and exit if we should keep the old installation
  282.  */
  283.  
  284. @If ((@Exists "@OutDrive:\\DOSRMX\\LOADRMX.EXE") &&
  285.      ('F'[=@Group || 'R'[=@Group || 'A'[=@Group))
  286.     @GetOption
  287.     @Option 65535 = "Yes"
  288.     @Option 65534 = "NO "
  289.     The @Name product appears to already be installed
  290.     on drive @OutDrive:.  Do you wish to delete the prior version?
  291.  
  292.  
  293.  
  294.   @If ('R'[=@Group)
  295.     WARNING!  All files in the @Name runtime directory tree
  296.     will be deleted by this utility.  Except for files in the CONFIG, 
  297.     @Name utility and language directories, the contents of
  298.     @OutDrive:\DOSRMX, @OutDrive:\RMX386 and its children will be deleted.
  299.   @Else @If ('F'[=@Group)
  300.     WARNING!  All files in the @Name directory tree
  301.     will be deleted by this utility.  Except for files in the CONFIG, 
  302.     @Name utility and language directories, the contents of
  303.     @OutDrive:\DOSRMX, @OutDrive:\RMX386 and its children will be deleted.
  304.   @Else @If ('T'[=@Group)
  305.     WARNING!  All files in the directory tree under @OutDrive:\INTEL will be
  306.     deleted by this utility.
  307.   @Else
  308.     WARNING!  All files in the @Name runtime directory tree
  309.     will be deleted by this utility.  Except for files in the CONFIG, 
  310.     @Name utility and language directories, the contents of
  311.     @OutDrive:\DOSRMX, @OutDrive:\RMX386 and its children will be deleted.
  312.     This utility will also delete all files under the @OutDrive:\INTEL 
  313.     subdirectory tree.
  314.   @EndIf @EndIf @EndIf
  315.     If there are any files in these directories that you need to save,
  316.     move the highlighted selection bar over NO and press ENTER.  This
  317.     program will exit to DOS to allow you to copy these files to another
  318.     disk and restart the installation procedure.
  319.  
  320.     @EndOption
  321.     @If (65534[=@Option)
  322.     @Display
  323.         @Cls
  324.  
  325.     No changes made - program exiting.
  326.  
  327.  
  328.         @Pause
  329.         @Exit
  330.     @EndDisplay
  331.     @EndIf
  332. @EndIf
  333.  
  334. /*
  335.  *      Chain to the directory wipeout script - it will come back to CONTINUE.DAT
  336.  */
  337. @DefineVars
  338.     @If (65535[=@Option)
  339.     @If ('R'[=@Group)
  340.         @QString @ChainFile = "@InDrive:\\DEL_RNTM.DAT"
  341.     @Else
  342.         @If ('F'[=@Group)
  343.         @QString @ChainFile = "@InDrive:\\DEL_FULL.DAT"
  344.         @Else
  345.         @QString @ChainFile = "@InDrive:\\DEL_TOOL.DAT"
  346.         @EndIf
  347.         @EndIf
  348.     @Else
  349.     @QString @ChainFile = "@InDrive:\\CONTINUE.DAT"
  350.     @EndIf
  351. @EndVars
  352.  
  353. @Chain("Disk 1 Of 9", "@ChainFile")
  354.  
  355.