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

  1.  
  2. @DefineDisk @Label="Disk 1 Of 9"
  3.     @File   RNOTES.TXT @Out \DOSRMX\RNOTES.TXT @Group AFR
  4.     @File   README.TXT @Out \DOSRMX\README.TXT @Group AFR
  5. @EndDisk
  6.  
  7. /*
  8.  *  Final routine to massage files and directories into their final form and
  9.  *  give user one last message before heading off into the wild blue yonder
  10.  */
  11.  
  12. @Finish
  13.   @If ('T'[=@Group)
  14.     Your development tools have been installed on the system.
  15.     @If (@Exists "@BootDrive:\\AUTOEXEC.BAK")
  16.       @Chmod("@BootDrive:\\AUTOEXEC.NEW", "r-")
  17.       @System "COPY @BootDrive:\\AUTOEXEC.BAT @BootDrive:\\AUTOEXEC.NEW > NUL:"
  18.       @Chmod("@BootDrive:\\AUTOEXEC.BAT", "r-")
  19.       @System "COPY @BootDrive:\\AUTOEXEC.BAK @BootDrive:\\AUTOEXEC.BAT > NUL:"
  20.       @Chmod("@BootDrive:\\AUTOEXEC.BAK", "r-")
  21.       @Delete("@BootDrive:\\AUTOEXEC.BAK")
  22.     @EndIf
  23.     @If (@Exists "@BootDrive:\\CONFIG.BAK")
  24.       @Chmod("@BootDrive:\\CONFIG.NEW", "r-")
  25.       @System "COPY @BootDrive:\\CONFIG.SYS @BootDrive:\\CONFIG.NEW > NUL:"
  26.       @Chmod("@BootDrive:\\CONFIG.SYS", "r-")
  27.       @System "COPY @BootDrive:\\CONFIG.BAK @BootDrive:\\CONFIG.SYS > NUL:"
  28.       @Chmod("@BootDrive:\\CONFIG.BAK", "r-")
  29.       @Delete("@BootDrive:\\CONFIG.BAK")
  30.     @EndIf
  31.   @Else
  32.     @ChDrive @OutDrive
  33.     @Cls
  34.     @Spawn("@InDrive:\\SETCNAME @OutDrive")
  35.     @Cls
  36.     Creating directories on drive @OutDrive:....
  37.     @ChDrive @OutDrive
  38.     @If ('R'[=@Group)
  39.       @MkDir("@LangDir")
  40.     @EndIf
  41.     @MkDir("\\USER\\SUPER\\PROG")
  42.     @MkDir("\\USER\\WORLD\\PROG")
  43.     @MkDir("\\RMX386\\CONFIG\\USER")
  44.     @If (('F'[=@Group) && (!(@Exists "\\INTEL\\IC386\\INC")))
  45.       @MkDir("\\INTEL\\IC386\\INC")
  46.     @EndIf
  47.  
  48.     /*    Copy and append files needed for PCNET redirector usage */
  49.     @If (@PCL2Info == 0)
  50.     Setting up files for use with network redirector.....
  51.       @ChDir "\\DOSRMX"
  52.       @Chmod("MSNETNEW.$$$", "h-")
  53.       @Chmod("MSNETNEW.$$$", "r-")
  54.       @Delete("MSNETNEW>$$$")
  55.       @System "COPY @PCL2DirStr\\MSNET.INI+MSNET.RDR MSNETNEW.$$$ > NUL:"
  56.       @Chmod("@PCL2DirStr\\MSNET.OLD", "h-")
  57.       @Chmod("@PCL2DirStr\\MSNET.OLD", "r-")
  58.       @System "COPY @PCL2DirStr\\MSNET.INI @PCL2DirStr\\MSNET.OLD > NUL:"
  59.       @Chmod("@PCL2DirStr\\MSNET.INI", "h-")
  60.       @Chmod("@PCL2DirStr\\MSNET.INI", "r-")
  61.       @System "COPY MSNETNEW.$$$ @PCL2DirStr\\MSNET.INI > NUL:"
  62.       @Delete("MSNETNEW.$$$")
  63.       @System "COPY PCNET.EXE @PCL2DirStr\\PCNET.EXE > NUL:"
  64.     @EndIf
  65.  
  66.     /*  Copy around AUTOEXEC.BAT & .BAK files to the correct filenames */
  67.     @ChDir "@ConfigDir"
  68.     Restoring old AUTOEXEC.BAT and CONFIG.SYS files.....
  69.     @If (@Exists "@BootDrive:\\AUTOEXEC.BAK")
  70.       @Chmod("@BootDrive:\\AUTOEXEC.NEW", "r-")
  71.       @System "COPY @BootDrive:\\AUTOEXEC.BAT @BootDrive:\\AUTOEXEC.NEW > NUL:"
  72.       @Chmod("@BootDrive:\\AUTOEXEC.BAT", "r-")
  73.       @System "COPY @BootDrive:\\AUTOEXEC.BAK @BootDrive:\\AUTOEXEC.BAT > NUL:"
  74.       @Chmod("@BootDrive:\\AUTOEXEC.BAK", "r-")
  75.       @Delete("@BootDrive:\\AUTOEXEC.BAK")
  76.     @EndIf
  77.     @If (@Exists "@BootDrive:\\CONFIG.BAK")
  78.       @Chmod("@BootDrive:\\CONFIG.NEW", "r-")
  79.       @System "COPY @BootDrive:\\CONFIG.SYS @BootDrive:\\CONFIG.NEW > NUL:"
  80.       @Chmod("@BootDrive:\\CONFIG.SYS", "r-")
  81.       @System "COPY @BootDrive:\\CONFIG.BAK @BootDrive:\\CONFIG.SYS > NUL:"
  82.       @Chmod("@BootDrive:\\CONFIG.BAK", "r-")
  83.       @Delete("@BootDrive:\\CONFIG.BAK")
  84.     @EndIf
  85.  
  86.     /*  Copy ALIAS.CSD files to user subdirectories */
  87.     Copying user alias files....
  88.     @If (!(@Exists "\\USER\\SUPER\\PROG\\ALIAS.CSD"))
  89.       @System "COPY DEFAULT\\ALIAS.CSD \\USER\\SUPER\\PROG\\ALIAS.CSD > NUL:"
  90.     @EndIf
  91.     @If (!(@Exists "@OutDrive:\\USER\\WORLD\\PROG\\ALIAS.CSD"))
  92.       @System "COPY DEFAULT\\ALIAS.CSD \\USER\\WORLD\\PROG\\ALIAS.CSD > NUL:"
  93.     @EndIf
  94.  
  95.     /*  Move old WTERM.EXE out of \WINDOWS subdirectory and down to
  96.         \WINDOWS\RMX as WTERM.OLD */
  97.     @If (@Exists "\\WINDOWS\\WTERM.EXE")
  98.       @System "COPY \\WINDOWS\\WTERM.EXE \\WINDOWS\\RMX\\WTERM.OLD > NUL:"
  99.       @Delete("\\WINDOWS\\WTERM.EXE")
  100.     @EndIf
  101.  
  102.     /*  Copy CDF, TERMCAP, R?INIT, and LANG386.ALS files - rename old
  103.         versions */
  104.     Copying files from @OutDrive:\RMX386\CONFIG\DEFAULT to @OutDrive:\RMX386\CONFIG....
  105.     @If (@Exists "\\RMX386\\CONFIG\\CDF")
  106.       @System "COPY CDF CDF.OLD > NUL:"
  107.     @EndIf
  108.     @System "COPY DEFAULT\\CDF CDF > NUL:"
  109.     @If (@Exists "\\RMX386\\CONFIG\\TERMCAP")
  110.       @System "COPY TERMCAP TERMCAP.OLD > NUL:"
  111.     @EndIf
  112.     @System "COPY DEFAULT\\TERMCAP TERMCAP > NUL:"
  113.     @If (@Exists "\\RMX386\\CONFIG\\INIT")
  114.       @Chmod("\\RMX386\\CONFIG\\INIT.OLD", "h-")
  115.       @Chmod("\\RMX386\\CONFIG\\INIT.OLD", "r-")
  116.       @System "COPY INIT RINIT.OLD > NUL:"
  117.     @EndIf
  118.     @System "COPY DEFAULT\\RINIT INIT > NUL:"
  119.     @Chmod("\\RMX386\\CONFIG\\INIT", "h+")
  120.     @If (@Exists "\\RMX386\\CONFIG\\LANG386.ALS")
  121.       @System "COPY LANG386.ALS LANG386.OLD > NUL:"
  122.     @EndIf
  123.     @System "COPY DEFAULT\\LANG386.ALS LANG386.ALS > NUL:"
  124.  
  125.     /*  Copy UDF, TERMINAL, and R'?'ENV files only if they aren't present */
  126.     @If (!(@Exists "\\RMX386\\CONFIG\\LOADINFO"))
  127.       @System "COPY DEFAULT\\LOADINFO LOADINFO > NUL:"
  128.     @EndIf
  129.     @If (!(@Exists "\\RMX386\\CONFIG\\RMX.INI"))
  130.       @System "COPY DEFAULT\\RMX.INI RMX.INI > NUL:"
  131.     @EndIf
  132.     @If (!(@Exists "\\RMX386\\CONFIG\\UDF"))
  133.       @System "COPY DEFAULT\\UDF UDF > NUL:"
  134.     @EndIf
  135.     @If (!(@Exists "\\RMX386\\CONFIG\\TERMINAL"))
  136.       @System "COPY DEFAULT\\TERMINAL TERMINAL > NUL:"
  137.     @EndIf
  138.     @If (!(@Exists "\\RMX386\\CONFIG\\ENV"))
  139.       @System "COPY DEFAULT\\RENV ENV > NUL:"
  140.     @EndIf
  141.     @Chmod("\\RMX386\\CONFIG\\ENV", "h+")
  142.  
  143.     /*  Copy logon message to config dir */
  144.     @If (@Exists "\\RMX386\\CONFIG\\LOGON.MSG")
  145.       @Chmod("\\RMX386\\CONFIG\\LOGON.MSG", "r-")
  146.       @System "COPY DEFAULT\\LOGON.MSG LOGON.OLD > NUL:"
  147.     @Else
  148.       @System "COPY DEFAULT\\LOGON.MSG LOGON.MSG > NUL:"
  149.     @EndIf
  150.  
  151.     /*  Copy user files into the USER subdirectory if not there before */
  152.     Copying user files into @OutDrive:\RMX386\CONFIG\USER.....
  153.     @If (!(@Exists "\\RMX386\\CONFIG\\USER\\SUPER"))
  154.       @System "COPY DEFAULT\\SUPER USER\\SUPER > NUL:"
  155.     @EndIf
  156.     @If (!(@Exists "\\RMX386\\CONFIG\\USER\\WORLD"))
  157.       @System "COPY DEFAULT\\WORLD USER\\WORLD > NUL:"
  158.     @EndIf
  159.  
  160.     /*  Copy LOGON files to WORLD and SUPER prog directories - save old ones */
  161.     Copying R?LOGON files to WORLD and SUPER subdirectories......
  162.     @If (!(@Exists "\\USER\\WORLD\\PROG\\LOGON"))
  163.       @System "COPY DEFAULT\\RLOGON \\USER\\WORLD\\PROG\\LOGON > NUL:"
  164.     @EndIf
  165.     @Chmod("\\USER\\WORLD\\PROG\\LOGON", "h+")
  166.  
  167.     @If (!(@Exists "\\USER\\SUPER\\PROG\\LOGON"))
  168.       @System "COPY DEFAULT\\RLOGON \\USER\\SUPER\\PROG\\LOGON > NUL:"
  169.     @EndIf
  170.     @Chmod("\\USER\\SUPER\\PROG\\LOGON", "h+")
  171.  
  172.     /*  Do the same with LOGOFF files */
  173.     Copying R?LOGOFF files to WORLD and SUPER subdirectories......
  174.     @If (!(@Exists "\\USER\\WORLD\\PROG\\LOGOFF"))
  175.       @System "COPY DEFAULT\\RLOGOFF \\USER\\WORLD\\PROG\\LOGOFF > NUL:"
  176.     @EndIf
  177.     @Chmod("\\USER\\WORLD\\PROG\\LOGOFF", "h+")
  178.  
  179.     @If (!(@Exists "\\USER\\SUPER\\PROG\\LOGOFF"))
  180.       @System "COPY DEFAULT\\RLOGOFF \\USER\\SUPER\\PROG\\LOGOFF > NUL:"
  181.     @EndIf
  182.     @Chmod("\\USER\\SUPER\\PROG\\LOGOFF", "h+")
  183.  
  184.     @If (!(@Exists "\\WORK"))
  185.       @MkDir("\\WORK")
  186.     @EndIf
  187.     @Cls
  188.     As you edit the AUTOEXEC.NEW and CONFIG.NEW files that this utility
  189.     has created, make sure that no programs which use extended memory
  190.     are loaded before starting up @Name.
  191.  
  192.     Remember to reboot your system after changing the AUTOEXEC.BAT and
  193.     CONFIG.SYS files.
  194.  
  195.     After rebooting, start @Name from the DOS prompt by entering
  196.         RMX <drive>
  197.     Do not include a colon (':') after the drive specification.
  198.     For example, to bring up @Name on drive @OutDrive, enter
  199.         RMX @OutDrive
  200.  
  201.     @Pause
  202.     @Cls
  203.  
  204.     Also, check the README.TXT and RNOTES.TXT file under the @OutDrive:\DOSRMX
  205.     subdirectory for more information about @Version of @Name.
  206.     @If ('A'[=@Group)
  207.     Your development tools have also been installed on the system. @EndIf
  208.   @EndIf
  209.   @Pause
  210.   @ChDir "\\"
  211. @EndFinish
  212.