home *** CD-ROM | disk | FTP | other *** search
- echo off
- clrwin
- -- 04/22/88 SJO Created
-
- -- Protection Device Installation
-
- -------- Begin macro definitions -------------------------------------------
- macro DISPLAY_TITLE
- setwin
- setatt 15 1
- clrwin
- title "╗ Personal Systems Protection Device ╔"
- center "╚ Installation Procedure ╝"
- endmac
- ----------------------------------------
- macro TOP_WINDOW
- setwin 3 5 78 12
- setatt 0 0
- clrwin
- setwin 2 4 77 11
- setatt 15 2
- clrwin
- setatt 1 2
- endmac
- ----------------------------------------
- macro BOTTOM_WINDOW
- setwin 3 14 78 21
- setatt 0 0
- clrwin
- setwin 2 13 77 20
- setatt 15 2
- clrwin
- setatt 1 2
- endmac
- -------- End macro definitions -------------------------------------------
- SET BOOT={COMSPEC: 1,1}
- -------- Begin execution -------------------------------------------------
- DISPLAY_TITLE
-
- -- Part 1 - New Installation --
- :new
- echo
- echo
- echo
- center "Installing Protection Device"
- echo
-
- if infile \DMANTMP "A:\" goto overwrite_attempt
- if infile \DMANTMP "B:\" goto overwrite_attempt
-
- setatt 10 1
- center " Do you wish to continue [Y/N]? "
- setatt 15 1
- getsel "YyNn"
- clrwin
- if select N goto cleanup
- if select n goto cleanup
- goto copy_prot
-
- --------------------------------------
- :overwrite_attempt
- echo
- clrwin
- echo
- echo
- echo
- echo
- echo
- center " WARNING: You are attempting to overwrite your "
- center " Master Diskette. Your current drive and path are: "
- echo
- type DMANTMP
- echo
- center " Please review your Installation Procedure and try again. "
- echo
- goto cleanup
- --------------------------------------
- :copy_prot
- echo
- echo
- echo
- center " Updating CONFIG.SYS on your {BOOT}: drive. "
- copy >nul {LOAD}:\exe\*.* {BOOT}:\
-
- --configb references drive B for device drivers.
- copy {BOOT}:\config{LOAD}.ssr {BOOT}:\config.ssr >nul
-
-
- {BOOT}:\editbox
-
- copy {BOOT}:\config.sys {BOOT}:\config.old > nul
- copy {BOOT}:\config.new {BOOT}:\config.sys > nul
-
- {BOOT}:\protect
-
- DISPLAY_TITLE
- clrwin
- echo
- echo
- center " Copying Security Code Procedures. "
- copy {LOAD}:\install\secure.* {BOOT}:\ > nul
- copy {LOAD}:\install\diskman.exe {BOOT}:\ > nul
- echo
- echo
- echo
- echo
- center " Reboot your system by typing [Ctrl][Alt][Del] .... "
- center " "
- center " After the reboot you must type: "
- center " SECURE [Enter] "
- center " to begin the process of inserting the software security codes "
- center " for your protection device. Once you have added the security "
- center " codes you can start using your application. "
-
- if {BOOT} == a goto end
- if {BOOT} == A goto end
-
- :cleanup
- del >nul {BOOT}:\diskman.exe
- del >nul {BOOT}:\install.dat
- del >nul {BOOT}:\DMANTMP
- del >nul {BOOT}:\CONFIG.NEW
- del >nul {BOOT}:\EDITBOX.EXE
- del >nul {BOOT}:\CONFIG.MSG
- del >nul {BOOT}:\CONFIG.HLP
- del >nul {BOOT}:\CONFIG*.SSR
- del >nul {BOOT}:\PROTECT.EXE
-
- :end
-