@REM SETUP.BAT; Letterhead Kit/DOS 3.0
@REM (C)Copyright 1993 Jerry Stern--All Rights Reserved, 6/93
@echo off
cls
if not exist ltrhead3.doc goto baddir
if not exist letter6.frm goto baddir
if not exist ltr.wpm goto baddir
if "%1"=="" goto info
if "%2"=="" goto default
set loc=%2
goto nextstep
:default
set loc=c:\ltrhead
:nextstep
if not exist %1\*.* goto nomac
if not exist %loc%\*.* goto new
ECHO Upgrade Installation to version 3.0
ECHO Your old letterheads will not be replaced.
goto more
:new
ECHO New Installation of version 3.0
:more
ECHO THE LETTERHEAD KIT is copyrighted software marketed as SHAREWARE. You may
ECHO share the complete and unaltered evaluation version with your friends. 
ECHO You may try the package at no charge for 30 days, but if you use if after
ECHO that period, you must register it. Registered users receive an enhanced
ECHO version of the main macro, including an options configuration file, and
ECHO a megabyte of clip art!
ECHO Registration information is in REGISTER.DOC and PRODUCTS.DOC.
ECHO ...
ECHO Files for THE LETTERHEAD KIT 3.0 for WP51/DOS will now be copied:
ECHO Macros will be copied to %1
ECHO The forms, graphics, and instructions will be copied
ECHO to the directory %loc%. 
ECHO You will need about 400K of free space.
ECHO ...
ECHO Press any key to proceed with installation, or Control-C to stop now.
pause > nul
copy ltr5.wpm %1\ltr.wpm
copy ltr5-cfg.wpm %1
if not exist %loc%\*.* goto newset
if not exist %loc%\autogrph.wpg copy autogrph.wpg %loc%\*.*
copy informal.wpg %loc%\informal.wpg
del %loc%\AIR-MAIL.WPG
del %loc%\BOX-UP.WPG
del %loc%\CONFIDN2.WPG
del %loc%\DISKLABL.WPG
del %loc%\DRAFT.WPG
del %loc%\FAXED.WPG
del %loc%\FRSTMAIL.WPG
del %loc%\FYILABEL.WPG
del %loc%\GIFT-TAG.WPG
del %loc%\GOODIDEA.WPG
del %loc%\NEXTDAY.WPG
del %loc%\OK.WPG
del %loc%\PACKLIST.WPG
del %loc%\PAIDBAG.WPG
del %loc%\PARCPOST.WPG
del %loc%\PAYBOX?.WPG
del %loc%\PAYLABL?.WPG
del %loc%\PHONELBL.WPG
del %loc%\PHOTOS.WPG
del %loc%\PRIORITY.WPG
del %loc%\READLABL.WPG
del %loc%\RUSH1.WPG
messages %loc%
copy *.doc  %loc%\*.*
copy person.frm  %loc%\*.*
copy printdoc.bat %loc%\*.*
copy readme.1st %loc%\*.*
if not exist %loc%\bill.frm copy bill.frm %loc%\bill.frm
if not exist %loc%\letter-d.frm copy letter-d.frm %loc%\letter-d.frm
goto done
:newset
md %loc%
copy *.wpg  %loc%\*.*
messages %loc%
copy *.doc  %loc%\*.*
copy bill.frm  %loc%\*.*
copy letter-d.frm  %loc%\*.*
copy person.frm  %loc%\*.*
copy printdoc.bat %loc%\*.*
copy readme.1st %loc%\*.*
:done
ECHO Done...
ECHO If you haven't already,
ECHO run PRINTDOC.BAT for instructions on printing the manual.
ECHO If you will also run WP6.0, install the 6.0 macros and forms
ECHO by running the INSTALL macro from inside WordPerfect 6.0.
goto end
:nomac
ECHO Letterhead Kit/DOS 3.0 Installation for WP 5.1
ECHO The directory that you have chosen to copy the macros to is empty
ECHO or doesn't exist. Please check the name, and try again.
goto end
:baddir
ECHO Letterhead Kit/DOS 3.0 Installation for WP 5.1
ECHO You must start this installation by logging to the drive and directory
ECHO where the files are currently located. When you run SETUP from that
ECHO directory, it will help you find the correct startup command to
ECHO install your software.
goto end
:info
ECHO Letterhead Kit/DOS 3.0 Installation for WP 5.1
ECHO Start SETUP.BAT with the name of the macro directory used by WordPerfect,
ECHO usually c:\wp51\macros or c:\wp51, and (OPTIONAL) the new directory name
ECHO to make for storing The Letterhead Kit forms and graphics.
ECHO ...
ECHO If you don't choose a directory for forms and graphics, `c:\ltrhead' 
ECHO will be created and used. IF YOU MUST USE SOME OTHER DRIVE OR DIRECTORY,
ECHO READ LTRHEAD3.DOC--YOU MUST EDIT THE CONFIGURATION FILE, LTR5-CFG.WPM.
ECHO ...
ECHO If you don't know where WP51 keeps your macros, press Setup (Shift-F1),
ECHO (6) Location Of Files, and write down the entry under "Macros/Keyboards"
ECHO and enter it from the DOS prompt. (Press Cancel (F1) to return to
ECHO the document screen.)
ECHO ...
ECHO For example: 
ECHO SETUP c:\wp51\macros
ECHO (Copies package to c:\ltrhead, using c:\wp51\macros for macros.)
ECHO SETUP d:\wp51 d:\ltrhead
ECHO (Copies package to d:\ltrhead, using d:\wp51 for macros.)
:end
PAUSE
