home *** CD-ROM | disk | FTP | other *** search
-
- @DefineDisk @Label="Disk 1 Of 9"
- @File RNOTES.TXT @Out \DOSRMX\RNOTES.TXT @Group AFR
- @File README.TXT @Out \DOSRMX\README.TXT @Group AFR
- @EndDisk
-
- /*
- * Final routine to massage files and directories into their final form and
- * give user one last message before heading off into the wild blue yonder
- */
-
- @Finish
- @If ('T'[=@Group)
- Your development tools have been installed on the system.
- @If (@Exists "@BootDrive:\\AUTOEXEC.BAK")
- @Chmod("@BootDrive:\\AUTOEXEC.NEW", "r-")
- @System "COPY @BootDrive:\\AUTOEXEC.BAT @BootDrive:\\AUTOEXEC.NEW > NUL:"
- @Chmod("@BootDrive:\\AUTOEXEC.BAT", "r-")
- @System "COPY @BootDrive:\\AUTOEXEC.BAK @BootDrive:\\AUTOEXEC.BAT > NUL:"
- @Chmod("@BootDrive:\\AUTOEXEC.BAK", "r-")
- @Delete("@BootDrive:\\AUTOEXEC.BAK")
- @EndIf
- @If (@Exists "@BootDrive:\\CONFIG.BAK")
- @Chmod("@BootDrive:\\CONFIG.NEW", "r-")
- @System "COPY @BootDrive:\\CONFIG.SYS @BootDrive:\\CONFIG.NEW > NUL:"
- @Chmod("@BootDrive:\\CONFIG.SYS", "r-")
- @System "COPY @BootDrive:\\CONFIG.BAK @BootDrive:\\CONFIG.SYS > NUL:"
- @Chmod("@BootDrive:\\CONFIG.BAK", "r-")
- @Delete("@BootDrive:\\CONFIG.BAK")
- @EndIf
- @Else
- @ChDrive @OutDrive
- @Cls
- @Spawn("@InDrive:\\SETCNAME @OutDrive")
- @Cls
- Creating directories on drive @OutDrive:....
- @ChDrive @OutDrive
- @If ('R'[=@Group)
- @MkDir("@LangDir")
- @EndIf
- @MkDir("\\USER\\SUPER\\PROG")
- @MkDir("\\USER\\WORLD\\PROG")
- @MkDir("\\RMX386\\CONFIG\\USER")
- @If (('F'[=@Group) && (!(@Exists "\\INTEL\\IC386\\INC")))
- @MkDir("\\INTEL\\IC386\\INC")
- @EndIf
-
- /* Copy and append files needed for PCNET redirector usage */
- @If (@PCL2Info == 0)
- Setting up files for use with network redirector.....
- @ChDir "\\DOSRMX"
- @Chmod("MSNETNEW.$$$", "h-")
- @Chmod("MSNETNEW.$$$", "r-")
- @Delete("MSNETNEW>$$$")
- @System "COPY @PCL2DirStr\\MSNET.INI+MSNET.RDR MSNETNEW.$$$ > NUL:"
- @Chmod("@PCL2DirStr\\MSNET.OLD", "h-")
- @Chmod("@PCL2DirStr\\MSNET.OLD", "r-")
- @System "COPY @PCL2DirStr\\MSNET.INI @PCL2DirStr\\MSNET.OLD > NUL:"
- @Chmod("@PCL2DirStr\\MSNET.INI", "h-")
- @Chmod("@PCL2DirStr\\MSNET.INI", "r-")
- @System "COPY MSNETNEW.$$$ @PCL2DirStr\\MSNET.INI > NUL:"
- @Delete("MSNETNEW.$$$")
- @System "COPY PCNET.EXE @PCL2DirStr\\PCNET.EXE > NUL:"
- @EndIf
-
- /* Copy around AUTOEXEC.BAT & .BAK files to the correct filenames */
- @ChDir "@ConfigDir"
- Restoring old AUTOEXEC.BAT and CONFIG.SYS files.....
- @If (@Exists "@BootDrive:\\AUTOEXEC.BAK")
- @Chmod("@BootDrive:\\AUTOEXEC.NEW", "r-")
- @System "COPY @BootDrive:\\AUTOEXEC.BAT @BootDrive:\\AUTOEXEC.NEW > NUL:"
- @Chmod("@BootDrive:\\AUTOEXEC.BAT", "r-")
- @System "COPY @BootDrive:\\AUTOEXEC.BAK @BootDrive:\\AUTOEXEC.BAT > NUL:"
- @Chmod("@BootDrive:\\AUTOEXEC.BAK", "r-")
- @Delete("@BootDrive:\\AUTOEXEC.BAK")
- @EndIf
- @If (@Exists "@BootDrive:\\CONFIG.BAK")
- @Chmod("@BootDrive:\\CONFIG.NEW", "r-")
- @System "COPY @BootDrive:\\CONFIG.SYS @BootDrive:\\CONFIG.NEW > NUL:"
- @Chmod("@BootDrive:\\CONFIG.SYS", "r-")
- @System "COPY @BootDrive:\\CONFIG.BAK @BootDrive:\\CONFIG.SYS > NUL:"
- @Chmod("@BootDrive:\\CONFIG.BAK", "r-")
- @Delete("@BootDrive:\\CONFIG.BAK")
- @EndIf
-
- /* Copy ALIAS.CSD files to user subdirectories */
- Copying user alias files....
- @If (!(@Exists "\\USER\\SUPER\\PROG\\ALIAS.CSD"))
- @System "COPY DEFAULT\\ALIAS.CSD \\USER\\SUPER\\PROG\\ALIAS.CSD > NUL:"
- @EndIf
- @If (!(@Exists "@OutDrive:\\USER\\WORLD\\PROG\\ALIAS.CSD"))
- @System "COPY DEFAULT\\ALIAS.CSD \\USER\\WORLD\\PROG\\ALIAS.CSD > NUL:"
- @EndIf
-
- /* Move old WTERM.EXE out of \WINDOWS subdirectory and down to
- \WINDOWS\RMX as WTERM.OLD */
- @If (@Exists "\\WINDOWS\\WTERM.EXE")
- @System "COPY \\WINDOWS\\WTERM.EXE \\WINDOWS\\RMX\\WTERM.OLD > NUL:"
- @Delete("\\WINDOWS\\WTERM.EXE")
- @EndIf
-
- /* Copy CDF, TERMCAP, R?INIT, and LANG386.ALS files - rename old
- versions */
- Copying files from @OutDrive:\RMX386\CONFIG\DEFAULT to @OutDrive:\RMX386\CONFIG....
- @If (@Exists "\\RMX386\\CONFIG\\CDF")
- @System "COPY CDF CDF.OLD > NUL:"
- @EndIf
- @System "COPY DEFAULT\\CDF CDF > NUL:"
- @If (@Exists "\\RMX386\\CONFIG\\TERMCAP")
- @System "COPY TERMCAP TERMCAP.OLD > NUL:"
- @EndIf
- @System "COPY DEFAULT\\TERMCAP TERMCAP > NUL:"
- @If (@Exists "\\RMX386\\CONFIG\\INIT")
- @Chmod("\\RMX386\\CONFIG\\INIT.OLD", "h-")
- @Chmod("\\RMX386\\CONFIG\\INIT.OLD", "r-")
- @System "COPY INIT RINIT.OLD > NUL:"
- @EndIf
- @System "COPY DEFAULT\\RINIT INIT > NUL:"
- @Chmod("\\RMX386\\CONFIG\\INIT", "h+")
- @If (@Exists "\\RMX386\\CONFIG\\LANG386.ALS")
- @System "COPY LANG386.ALS LANG386.OLD > NUL:"
- @EndIf
- @System "COPY DEFAULT\\LANG386.ALS LANG386.ALS > NUL:"
-
- /* Copy UDF, TERMINAL, and R'?'ENV files only if they aren't present */
- @If (!(@Exists "\\RMX386\\CONFIG\\LOADINFO"))
- @System "COPY DEFAULT\\LOADINFO LOADINFO > NUL:"
- @EndIf
- @If (!(@Exists "\\RMX386\\CONFIG\\RMX.INI"))
- @System "COPY DEFAULT\\RMX.INI RMX.INI > NUL:"
- @EndIf
- @If (!(@Exists "\\RMX386\\CONFIG\\UDF"))
- @System "COPY DEFAULT\\UDF UDF > NUL:"
- @EndIf
- @If (!(@Exists "\\RMX386\\CONFIG\\TERMINAL"))
- @System "COPY DEFAULT\\TERMINAL TERMINAL > NUL:"
- @EndIf
- @If (!(@Exists "\\RMX386\\CONFIG\\ENV"))
- @System "COPY DEFAULT\\RENV ENV > NUL:"
- @EndIf
- @Chmod("\\RMX386\\CONFIG\\ENV", "h+")
-
- /* Copy logon message to config dir */
- @If (@Exists "\\RMX386\\CONFIG\\LOGON.MSG")
- @Chmod("\\RMX386\\CONFIG\\LOGON.MSG", "r-")
- @System "COPY DEFAULT\\LOGON.MSG LOGON.OLD > NUL:"
- @Else
- @System "COPY DEFAULT\\LOGON.MSG LOGON.MSG > NUL:"
- @EndIf
-
- /* Copy user files into the USER subdirectory if not there before */
- Copying user files into @OutDrive:\RMX386\CONFIG\USER.....
- @If (!(@Exists "\\RMX386\\CONFIG\\USER\\SUPER"))
- @System "COPY DEFAULT\\SUPER USER\\SUPER > NUL:"
- @EndIf
- @If (!(@Exists "\\RMX386\\CONFIG\\USER\\WORLD"))
- @System "COPY DEFAULT\\WORLD USER\\WORLD > NUL:"
- @EndIf
-
- /* Copy LOGON files to WORLD and SUPER prog directories - save old ones */
- Copying R?LOGON files to WORLD and SUPER subdirectories......
- @If (!(@Exists "\\USER\\WORLD\\PROG\\LOGON"))
- @System "COPY DEFAULT\\RLOGON \\USER\\WORLD\\PROG\\LOGON > NUL:"
- @EndIf
- @Chmod("\\USER\\WORLD\\PROG\\LOGON", "h+")
-
- @If (!(@Exists "\\USER\\SUPER\\PROG\\LOGON"))
- @System "COPY DEFAULT\\RLOGON \\USER\\SUPER\\PROG\\LOGON > NUL:"
- @EndIf
- @Chmod("\\USER\\SUPER\\PROG\\LOGON", "h+")
-
- /* Do the same with LOGOFF files */
- Copying R?LOGOFF files to WORLD and SUPER subdirectories......
- @If (!(@Exists "\\USER\\WORLD\\PROG\\LOGOFF"))
- @System "COPY DEFAULT\\RLOGOFF \\USER\\WORLD\\PROG\\LOGOFF > NUL:"
- @EndIf
- @Chmod("\\USER\\WORLD\\PROG\\LOGOFF", "h+")
-
- @If (!(@Exists "\\USER\\SUPER\\PROG\\LOGOFF"))
- @System "COPY DEFAULT\\RLOGOFF \\USER\\SUPER\\PROG\\LOGOFF > NUL:"
- @EndIf
- @Chmod("\\USER\\SUPER\\PROG\\LOGOFF", "h+")
-
- @If (!(@Exists "\\WORK"))
- @MkDir("\\WORK")
- @EndIf
- @Cls
- As you edit the AUTOEXEC.NEW and CONFIG.NEW files that this utility
- has created, make sure that no programs which use extended memory
- are loaded before starting up @Name.
-
- Remember to reboot your system after changing the AUTOEXEC.BAT and
- CONFIG.SYS files.
-
- After rebooting, start @Name from the DOS prompt by entering
- RMX <drive>
- Do not include a colon (':') after the drive specification.
- For example, to bring up @Name on drive @OutDrive, enter
- RMX @OutDrive
-
- @Pause
- @Cls
-
- Also, check the README.TXT and RNOTES.TXT file under the @OutDrive:\DOSRMX
- subdirectory for more information about @Version of @Name.
- @If ('A'[=@Group)
- Your development tools have also been installed on the system. @EndIf
- @EndIf
- @Pause
- @ChDir "\\"
- @EndFinish
-