echo off
rem  *** DRAFT CHOICE Installation Procedure  ***
if not %1a==a goto num
cls
echo                         旼컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                컴컴컴컴캐 DRAFT CHOICE Installation 냐컴컴컴컴
echo                         읕컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                                        *
echo                     ****  ERROR - No Disk Specified  ****
echo                           .........................
echo     The SETUP command must be followed by a drive letter, and if necessary 
echo     by a directory name.  For example, to install DRAFT CHOICE on a formatted 
echo     floppy disk, place the DRAFTC disk in Drive A, the blank disk in drive 
echo     B, and use the command 
echo                                   SETUP b:
echo     To install the program on drive C in a directory named DRAFTC, place 
echo     the DRAFT CHOICE disk in drive A, and use the command 
echo                               SETUP C:\DRAFTC
echo                                              :                 
echo                 No trailing backslash  ......:
echo     --------------------------------------------------------------------- 
echo        Please decide which installation you want to use and try again. 
echo     --------------------------------------------------------------------- 
goto finals
:num
if exist DRAFTC.exe goto insprog1
cls
echo                         旼컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                컴컴컴컴캐 DRAFT CHOICE Installation 냐컴컴컴컴
echo                         읕컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                                       *
echo                    **  Error  -  DRAFTC files not Found **          
echo                                       *
echo              The DRAFTC Files are not on the current logged drive.
ECHO       Either place the diskette with the original DRAFTC files in the 
echo       default drive and press  Y  to continue, or press  N  to abort 
echo       the installation process  !!!
echo                                       *
yesno                            Continue 
if not errorlevel=1 goto fin1
:insprog1
if not exist DRAFTC.exe goto num
if not exist setup.bat goto num
copy setup.bat  %1\setup.bat >nul
if not exist %1\setup.bat goto isnotdir
cls
echo                         旼컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                컴컴컴컴캐 DRAFT CHOICE Installation 냐컴컴컴컴
echo                         읕컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                                        *                       
echo                      Installing on:    %1\
echo                      --------------------------------------
echo                      Copying DRAFTC.EXE  [Execution Module]     
copy DRAFTC.EXE %1\DRAFTC.EXE >nul
echo                      Copying DRAFTC.PIC  [1st Opening Screen]   
copy DRAFTC.PIC %1\DRAFTC.PIC >nul
echo                      Copying DRAFTC.SCR  [2nd Opening Screen]   
copy DRAFTC.SCR %1\DRAFTC.SCR >nul
echo                      Copying DRAFTC.HLP  [Help File]     
copy draftc.hlp %1\draftc.hlp >nul
echo                      Copying XXXXXX.FNT  [Font Files]   
copy *.FNT %1\*.FNT >nul
echo                                        *
if  %2b==b goto thewks
goto copywks
:thewks
cls
echo                         旼컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                컴컴컴컴캐 DRAFT CHOICE Installation 냐컴컴컴컴
echo                         읕컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                                       *
echo       Do you also want to copy the sample drawing files to the 
echo       specified directory ?  
echo                        Press  Y  to copy the files, or 
echo                        Press  N  to exit to DOS.
yesno                             Select   
if not errorlevel=1 goto fin
:copywks
echo                                        *
echo                      Copying the sample drawing files
copy *.DCH %1\*.dch >nul
goto fin
:fin1
echo           ******************************************************* 
echo    *****  Abnormal Termination - Working Copy might be incomplete  ******
echo           *******************************************************
goto finals
:isnotdir
echo                         旼컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                컴컴컴컴캐 DRAFT CHOICE Installation 냐컴컴컴컴
echo                         읕컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo                                        *                       
echo                          Sub-Directory -- %1
echo     The specified sub-directory DOES NOT exist or not specified correctly.
echo              Please create it, use a different one, or respecify.
echo                     (Remember!   No Trailing Backslash) 
echo                                        *                       
goto finals
:fin
echo           ******************************************************* 
echo     *****      Normal Termination - Working Copy Complete        ******
echo           *******************************************************
:finals

