ECHO OFF
rem ---------- C U S T O M I Z A T I O N   A R E A ------------

rem To Customize the Installation procedure for your system edit 
rem the lines below.  For example, to change the subdirectory 
rem holding your WordPerfect program, edit the line below which 
rem begins "SET WPDIR=".  You would change ONLY the information 
rem to the right of the "=" character.  DO NOT PLACE A "\" AT THE 
rem END OF ANY OF THESE ENTRIES!!!

rem Feel free to use WordPerfect to make these changes but make 
rem certain you save the altered file as DOS TEXT.  To do so press 
rem Ctrl-F5 (Text In/Out), "T" or "1" for DOS Text, "S" or "1" for 
rem Save.

rem Where the files are now
SET NOW=A:

rem Hard Drive (for WordPerfect)
SET WPDRive=C:

rem WordPerfect Subdirectory
SET WPDIR=\WP51

rem Name of Executable WordPerfect File
SET WPName=WP

rem Hard Drive (for your WordPerfect macros)
SET WPMDrive=C:

rem Subdirectory holding WordPerfect macros
SET WPMacDir=\WP51\MACROS

rem     \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
rem      There should be NO need to edit ANYTHING below this line!!!
rem     \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

CLS
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo Automated installation procedure for the WP Booklet System 2.1.
echo.
echo The WP Booklet System is copyright 1992-93 by:
echo    Alex D. Ogden; 3029 Chandler Court; Murfreesboro, TN  37129
echo.
echo This file will install WP Booklet to its own subdirectory (\WPBKLT21),
echo then execute WordPerfect and run the WordPerfect macro designed to tell
echo WP Booklet where its files are located.  The following parameters will 
echo be used throughout this installation process:
echo.
echo          Where the files are now: %NOW%
echo  Path to your WordPerfect macros: %WPMDrive%%WPMacDir%
echo      Path & name for WordPerfect: %WPDRive%%WPDIR%\%WPName%
echo.
echo If any of this information is not correct, press Ctrl-BREAK or Ctrl-C 
echo now to abort this batch file.  To change any of the above parameters,
echo use a editor to edit the start of this batch file.  Feel free to use
echo WordPerfect to make these changes but make certain the altered file is
echo saved as DOS TEXT.
echo.
echo If the information IS correct, press any key to proceed.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
pause >NUL

cls
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo Copying WP Booklet System from %NOW% to %WPMDrive%%WPMacDir%\WPBKLT21...
echo.
echo These are the macros and other files making up the WP Booklet System.
echo They absolutely MUST NOT be deleted for WP Booklet to operate.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
%WPMDrive%
cd %WPMDrive%%WPMacDir%
md WPBKLT21 >NUL
%NOW%\wpbklt21 %WPMDrive%%WPMacDir%\WPBKLT21
echo 
pause
cls
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo The following are general information files.
echo.
echo They may be deleted if necessary without affecting the operation of
echo WP Booklet.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo VENDOR.DOC
copy %NOW%\VENDOR.DOC %WPMDrive%%WPMacDir%\WPBKLT21
echo.
echo READ.ME
copy %NOW%\READ.ME %WPMDrive%%WPMacDir%\WPBKLT21
echo.
echo WHATS.NEW
copy %NOW%\WHATS.NEW %WPMDrive%%WPMacDir%\WPBKLT21
echo.

rem Now go and run WordPerfect with SETPATH macro
rem
rem First set path to WP macros in environment variable
SET ALEX=%WPMDrive%%WPMacDir%\
cd\
%WPDRive%
%WPDRive%%WPDIR%\%WPName%/m-%ALEX%WPBKLT21\setpath
cd\
cls
:END
REM Clear all variables used...
SET NOW=
SET WPDRive=
SET WPDIR=
SET WPName=
SET WPMDrive=
SET WPMacDir=
SET ALEX=

echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo  This concludes the installation process for the WP Booklet System 2.1
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
