/*
 * INSTALL.DAT
 *
 * Project: Descriptions Now! 
 * Version: 2.00
 *
 */


@DefineProject
	@Name = "Descriptions Now! Standard Edition"
	@Version = "2.00"
	
	@Subdir = "\\DN"
	@OutDrive = C
@EndProject

@DefineVars
   @Qstring @CompanyName = ""
@EndVars


@Display
	@Cls
	@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )
 This installation will copy to your hard disk the program
 files of @Name Version @Version.

 You will be given the opportunity to:

 * Select the disk drive and directory location you prefer on your hard disk.
 * Install @Name only or with a tutorial.
 * Enter your company name and other information.
 * Choose if you want to modify your CONFIG.SYS file so that FILES=35.
 * Convert files from a previous version, if you have one installed

			     INSTRUCTIONS
	     *** To accept an answer, press the ENTER key ***
	*** To correct a typing error, press the BACKSPACE key ***
     *** To CANCEL the installation at any time, press the ESC key ***       

	    Please call (707) 762-0333 if you need assistance.
	
 @Pause
@EndDisplay

@AssumeHardDisk = 1

@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )

@GetOutDrive
 @LocalWindow(12, 39)
 Select the drive letter of the disk drive on which you would like to
 install the program. If you installed DescriptionsWrite Now! previously,
 select the same drive used for that installation:












	


	   *** Use the arrow keys to select then press ENTER ***        
@EndOutDrive



@GetSubdir
 @Cls
 @MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )

 @LocalWindow(12, 47)
 If you have a previous version of DescriptionsWrite Now! installed, 
 make sure that version's directory is entered on this screen.  If you
 do not have a previous version, you may select any subdirectory you like.
 
 If you wish to install the program in a different location,
 change the directory to what you prefer:       
		    
	@Prompt = "Enter directory location:"






	    *** Enter directory location and press ENTER ***

@EndSubdir


@GetGroups
 @Cls
 @MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )
 @LocalWindow(13, 39)
 During this installation, you may choose to install the DN tutorial.
 The tutorial is a quick way to learn how to use the program.

 IMPORTANT NOTE: To view the tutorial, you must have an EGA or VGA monitor.
  
 If you prefer, you can install the tutorial by itself at a later time.   










 @Set a = "Install both Descriptions Now! and the tutorial"
 @Set d = "Install Descriptions Now! only"
 @Set t = "Install the tutorial only"
     *** Use arrow keys to select an installation option, then press ENTER ***
@EndGroups


@FileAttr("@OutDrive:\\@Subdir\\DN.EXE", "r-")
@FileAttr("@OutDrive:\\@Subdir\\DN1.EXE", "r-")
@FileAttr("@OutDrive:\\@Subdir\\HELP.DAT", "r-")
@FileAttr("@OutDrive:\\@Subdir\\JSICON1.DAT", "r-")
@FileAttr("@OutDrive:\\@Subdir\\SETUP.PS", "r-")
@Delete("@OutDrive:\\@Subdir\\DN.EXE")
@Delete("@OutDrive:\\@Subdir\\DWN.EXE")
@Delete("@OutDrive:\\@Subdir\\DWN1.EXE")
@Delete("@OutDrive:\\@Subdir\\DWN.BAT")


@If ( 'a' [= @Group || 'd' [= @Group )
  @If ( @FileSize("@OutDrive:\\@Subdir\\PJOB.ST") < 2465200 )
     @SetGroup(p)
  @EndIf
@EndIf


@EndIf


@SetConfig 

   @AskOverwrite
   @Files = 35
@EndConfig

	
@If (@RAMAvail < 518K )
  
  @Display
  @Cls
  @MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )


 @Name requires at least 520K of random access
 memory (RAM) free at the DOS prompt to run properly.  At the moment
 you have only @RAMAvail free.


 NOTE: RAM involves memory management. The capacity of your hard disk 
       is not connected to the amount of RAM available.  If needed, 
       call KnowledgePoint for further explanation or help on this
       topic.


  @Pause
  @EndDisplay           
    
@EndIf


@ChDrive (@OutDrive)
@ChDir ("\\")
@ChDir ("@SubDir")


@GetString @CompanyName
@Cls
@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )
@LocalWindow(12,46)


 Please enter the company name that will appear in the heading of each
 job description. (You may change the name later if you wish.)


	@Prompt = "Enter company name:"









	    *** Enter your company name and press ENTER ***

@EndString



@GetOption
@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )
	@LocalWindow(13,40)
	@Option 100 = "Yes, convert previous files"
	@Option 101 = "No, don't convert"

If you have installed a previous version of DescriptionsWrite Now!
      and wish to have your User Job files automatically converted to
      the new format select "Yes".  You can run the conversion manually
      at a later time if you want, but you do have to run it before your
      previous job descriptions can be used with the new version of
      Descriptions Now!   









  
    *** Select Yes = Convert previous files, No = don't convert *** 
     
@EndOption


@DefineDisk
	@Label = "Master Disk 1"
	@BeginLib DN.001
		@F TUT1. @S 2949 @O TUTORIAL\TUT1 @Group at
		@F TTL7.PCX @S 17850 @O TUTORIAL\TTL7.PCX @Group at
		@F JN1.PCX @S 24264 @O TUTORIAL\JN1.PCX @Group at
		@F JN2.PCX @S 24274 @O TUTORIAL\JN2.PCX @Group at
		@F G3.PCX @S 12346 @O TUTORIAL\G3.PCX @Group at
		@F GN4.PCX @S 14240 @O TUTORIAL\GN4.PCX @Group at
		@F GN5.PCX @S 15232 @O TUTORIAL\GN5.PCX @Group at
		@F GN6.PCX @S 15974 @O TUTORIAL\GN6.PCX @Group at
		@F GN7.PCX @S 16822 @O TUTORIAL\GN7.PCX @Group at
		@F GN8.PCX @S 17588 @O TUTORIAL\GN8.PCX @Group at
		@F GN9.PCX @S 18632 @O TUTORIAL\GN9.PCX @Group at
		@F GN10.PCX @S 20736 @O TUTORIAL\GN10.PCX @Group at
		@F A1.PCX @S 43274 @O TUTORIAL\A1.PCX @Group at
		@F A2.PCX @S 31528 @O TUTORIAL\A2.PCX @Group at
		@F A3.PCX @S 38501 @O TUTORIAL\A3.PCX @Group at
		@F A4.PCX @S 36512 @O TUTORIAL\A4.PCX @Group at
		@F A5.PCX @S 35821 @O TUTORIAL\A5.PCX @Group at
		@F A6.PCX @S 45719 @O TUTORIAL\A6.PCX @Group at
		@F A7.PCX @S 49097 @O TUTORIAL\A7.PCX @Group at
		@F A8.PCX @S 39436 @O TUTORIAL\A8.PCX @Group at
		@F A9.PCX @S 35302 @O TUTORIAL\A9.PCX @Group at
		@F A10.PCX @S 37904 @O TUTORIAL\A10.PCX @Group at
		@F A11.PCX @S 48464 @O TUTORIAL\A11.PCX @Group at
		@F A12.PCX @S 49351 @O TUTORIAL\A12.PCX @Group at
		@F A13.PCX @S 40546 @O TUTORIAL\A13.PCX @Group at
		@F A14.PCX @S 40869 @O TUTORIAL\A14.PCX @Group at
		@F A15.PCX @S 43345 @O TUTORIAL\A15.PCX @Group at
		@F A16.PCX @S 44111 @O TUTORIAL\A16.PCX @Group at
		@F A17.PCX @S 39365 @O TUTORIAL\A17.PCX @Group at
		@F A18.PCX @S 41510 @O TUTORIAL\A18.PCX @Group at
		@F A19.PCX @S 38248 @O TUTORIAL\A19.PCX @Group at
		@F A20.PCX @S 34508 @O TUTORIAL\A20.PCX @Group at
		@F A21.PCX @S 40480 @O TUTORIAL\A21.PCX @Group at
		@F A22.PCX @S 57027 @O TUTORIAL\A22.PCX @Group at
		@F A23.PCX @S 33657 @O TUTORIAL\A23.PCX @Group at
		@F A24.PCX @S 34878 @O TUTORIAL\A24.PCX @Group at
		@F A25.PCX @S 43641 @O TUTORIAL\A25.PCX @Group at
		@F A26.PCX @S 28056 @O TUTORIAL\A26.PCX @Group at
		@F A27.PCX @S 25187 @O TUTORIAL\A27.PCX @Group at
		@F A28.PCX @S 32267 @O TUTORIAL\A28.PCX @Group at
		@F A29.PCX @S 51931 @O TUTORIAL\A29.PCX @Group at
		@F A30.PCX @S 40596 @O TUTORIAL\A30.PCX @Group at
		@F GN11.PCX @S 23435 @O TUTORIAL\GN11.PCX @Group at
		@F B1.PCX @S 26614 @O TUTORIAL\B1.PCX @Group at
		@F B2.PCX @S 39972 @O TUTORIAL\B2.PCX @Group at
		@F B3.PCX @S 39132 @O TUTORIAL\B3.PCX @Group at
		@F 27.PCX @S 4328 @O TUTORIAL\27.PCX @Group at
		@F ACTPRES.EXE @S 154000 @O TUTORIAL\ACTPRES.EXE @Group at
		@F EGAVGA.BGI @S 5363 @O TUTORIAL\EGAVGA.BGI @Group at
		@F ACT3.COL @S 12 @O TUTORIAL\ACT3.COL @Group at
		@F DNTUTOR.BAT @S 64 @O DNTUTOR.BAT @Group at
		@F DN1.EXE @S 700368 @O DN1.EXE @Group ad
		@F HELP.DAT @S 159588 @O HELP.DAT @Group ad
		@F SUPVRULE.KXT @S 2276 @O SUPVRULE.KXT @Group ad
		@F JSICON1.DAT @S 14054 @O JSICON1.DAT @Group ad
		@F EGAVGA.BGI @S 5554 @O EGAVGA.BGI @Group ad
		@F HERC.BGI @S 6204 @O HERC.BGI @Group ad
		@F SETUP.PS @S 9585 @O SETUP.PS @Group ad
		@F DN.PDB @S 199870 @O DN.PDB @Group ad
		@F DN.LST @S 7910 @O DN.LST @Group ad
		@F QUESFORM.QJX @S 6103 @O QUESFORM.QJX @Group ad
		@F ENV.PCK @S 342 @O ENV.PCK @Group ad
		@F ENV.MAT @S 881 @O ENV.MAT @Group ad
		@F PHYS1.MAT @S 615 @O PHYS1.MAT @Group ad
		@F PHYS2.MAT @S 590 @O PHYS2.MAT @Group ad
		@F PHYS.PCK @S 509 @O PHYS.PCK @Group ad
		@F SUPVRULE.RUL @S 574 @O SUPVRULE.RUL @Group ad
		@F EDUC.PCK @S 3129 @O EDUC.PCK @Group ad
		@F MATH.PCK @S 3378 @O MATH.PCK @Group ad
		@F LANG.PCK @S 4372 @O LANG.PCK @Group ad
		@F REAS.PCK @S 3224 @O REAS.PCK @Group ad
		@F PJOB.ST @S 2561300 @O PJOB.ST @Group p
	@EndLib
@EndDisk


@DefineDisk
	@Label = "Master Disk 2"
	@BeginLib DN.002
		@F PJOB.ST @A PJOB.ST @Group p
		@F PJOB.MP @S 30994 @O PJOB.MP @Group p
		@F PJOB.NX @S 1130212 @O PJOB.NX @Group p
		@F IJOB.NX @S 492700 @O IJOB.NX @Group p
		@F IJOB.DT @S 237760 @O IJOB.DT @Group p
		@F CATFILE.NX @S 34902 @O CATFILE.NX @Group ad
		@F CATFILE.DT @S 19330 @O CATFILE.DT @Group ad
		@F UJOBCNVT.EXE @S 107426 @O UJOBCNVT.EXE @Group ad
		@F TITLE2.EXE @S 69072 @O TITLE2.EXE @Group ad
		@F RESET.EXE @S 67714 @O RESET.EXE @Group ad
		@F TEGA.PIC @S 113496 @O TEGA.PIC @Group ad
		@F DN.BAT @S 108 @O DN.BAT @Group ad
		@F DN.PIF @S 545 @O DN.PIF @Group ad
		@F DN.ICO @S 766 @O DN.ICO @Group ad
		@F README.EXE @S 64148 @O README.EXE
	@EndLib
@EndDisk
@Finish
   @ChDrive (@OutDrive)
   @ChDir ("\\")
   @ChDir ("@SubDir")
   @Write("@OutDrive:\\@Subdir\\cname.dat", "wt", @CompanyName)

   @If(100 [= @Option)

	@Cls
	@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )

   Converting previous user job files...


     @If ( @Exists("@OutDrive:\\@SubDir\\UJOB.NX") )
	@Spawn("@OutDrive:\\@SubDir\\UJOBCNVT @OutDrive:\\@SubDir\\UJOB @OutDrive:\\@SubDir\\ ")

	@Cls
	@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )


   The converted job descriptions will be available from the File menu
   Open function in Descriptions Now!.


	@Pause

     @Else
   
	@Cls
	@MoveCStr(0, 14, 30, "Installing Descriptions Now! Standard Edition" )

   The conversion could not be performed.  We suggest you run the
   conversion manually after the installation process completes.

   Instructions for doing this are in the readme file. 
   




	@Pause
      @EndIf           
  
   @EndIf

   @If (@Spawn("@OutDrive:\\@Subdir\\README.EXE") == 0 )
   @EndIF

Installation of @name is complete.

For technical assistance, call KnowledgePoint at (707) 762-0333.

To start the program, type DN at the DOS prompt.


@Pause
@EndFinish

/* end-of-file */
