home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p120 / 5.ddi / INSTALL / INSTALL.DAT < prev    next >
Encoding:
Text File  |  1988-05-31  |  3.0 KB  |  130 lines

  1. echo off
  2. clrwin 
  3. -- 04/22/88 SJO Created
  4.  
  5. --  Protection Device Installation
  6.  
  7. -------- Begin macro definitions -------------------------------------------
  8. macro DISPLAY_TITLE
  9.    setwin
  10.    setatt 15 1
  11.    clrwin
  12.    title  "╗ Personal Systems Protection Device ╔"
  13.    center "╚       Installation Procedure       ╝"
  14. endmac
  15. ----------------------------------------
  16. macro TOP_WINDOW
  17.   setwin 3 5 78 12  
  18.   setatt 0 0
  19.   clrwin
  20.   setwin 2 4 77 11
  21.   setatt 15 2
  22.   clrwin
  23.   setatt  1 2
  24. endmac
  25. ----------------------------------------
  26. macro BOTTOM_WINDOW
  27.   setwin 3 14 78 21
  28.   setatt 0 0
  29.   clrwin
  30.   setwin 2 13 77 20
  31.   setatt 15 2
  32.   clrwin
  33.   setatt  1 2
  34. endmac
  35. -------- End macro definitions -------------------------------------------
  36. SET BOOT={COMSPEC: 1,1}
  37. -------- Begin execution -------------------------------------------------
  38. DISPLAY_TITLE
  39.  
  40. -- Part 1 - New Installation --
  41. :new
  42. echo
  43. echo
  44. echo
  45. center "Installing Protection Device"
  46. echo 
  47.  
  48. if infile \DMANTMP "A:\" goto overwrite_attempt
  49. if infile \DMANTMP "B:\" goto overwrite_attempt
  50.  
  51. setatt 10 1
  52. center " Do you wish to continue [Y/N]? "
  53. setatt 15 1
  54. getsel "YyNn"
  55. clrwin
  56. if select N goto cleanup
  57. if select n goto cleanup
  58. goto copy_prot
  59.  
  60. --------------------------------------
  61. :overwrite_attempt
  62. echo 
  63. clrwin
  64. echo
  65. echo
  66. echo
  67. echo
  68. echo
  69. center "  WARNING: You are attempting to overwrite your       "
  70. center "  Master Diskette.  Your current drive and path are:  "
  71. echo
  72. type DMANTMP
  73. echo
  74. center " Please review your Installation Procedure and try again. "
  75. echo
  76. goto cleanup
  77. --------------------------------------
  78. :copy_prot
  79. echo
  80. echo
  81. echo
  82. center " Updating CONFIG.SYS on your {BOOT}: drive. "
  83. copy >nul {LOAD}:\exe\*.* {BOOT}:\
  84.  
  85. --configb references drive B for device drivers.
  86. copy {BOOT}:\config{LOAD}.ssr {BOOT}:\config.ssr >nul
  87.  
  88.  
  89. {BOOT}:\editbox
  90.  
  91. copy {BOOT}:\config.sys  {BOOT}:\config.old > nul
  92. copy {BOOT}:\config.new  {BOOT}:\config.sys > nul
  93.  
  94. {BOOT}:\protect
  95.  
  96. DISPLAY_TITLE
  97. clrwin 
  98. echo
  99. echo
  100. center " Copying Security Code Procedures. "
  101. copy {LOAD}:\install\secure.* {BOOT}:\           > nul
  102. copy {LOAD}:\install\diskman.exe {BOOT}:\           > nul
  103. echo
  104. echo
  105. echo
  106. echo 
  107. center " Reboot your system by typing [Ctrl][Alt][Del] ....            "
  108. center "                                                               "
  109. center " After the reboot you must type:                               "
  110. center "          SECURE [Enter]                                       "
  111. center " to begin the process of inserting the software security codes "
  112. center " for your protection device. Once you have added the security  "
  113. center " codes you can start using your application.                   "
  114.  
  115. if {BOOT} == a goto end
  116. if {BOOT} == A goto end
  117.  
  118. :cleanup
  119. del >nul {BOOT}:\diskman.exe
  120. del >nul {BOOT}:\install.dat
  121. del >nul {BOOT}:\DMANTMP
  122. del >nul {BOOT}:\CONFIG.NEW
  123. del >nul {BOOT}:\EDITBOX.EXE
  124. del >nul {BOOT}:\CONFIG.MSG
  125. del >nul {BOOT}:\CONFIG.HLP
  126. del >nul {BOOT}:\CONFIG*.SSR
  127. del >nul {BOOT}:\PROTECT.EXE
  128.  
  129. :end
  130.