/*
 * INSTALL.DAT
 *
 * Project: SAO Catalog DataSet
 * Version: 1.0
 *
 */

@DefineProject
	@Name = "SAO Catalog DataSet"
	@Version = "1.0"
	@Subdir = "\\"  /* We don't use Subdir in this script */
	@OutDrive = C
   @Requires @HardDisk
@EndProject

/* Present the opening screen - general information */
@Display
	@Cls

   This program will install @Name version @Version
   on your computer system and verify the integrity of the distribution 
   disk(s).  You may press the [Esc] key at any time to abort the 
   installation.

   INSTALL will ask you for the destination drive, then give you the 
   option of installing only selected parts of @Name.

   Each question has a default answer.  If the default answer is
   correct, press the ENTER key in response to the question.
   Otherwise, type the answer and then press the ENTER key.

   If you make a mistake while typing, press the BACKSPACE key
   and then retype the answer.

	@Pause
@EndDisplay

/* Determine which software package the database is being installed for */
@GetOption
   @Cls
   With which software package will you be using this product?
	@Option 1 = "STARGAZE"
	@Option 2 = "PEEP"
   @Option 3 = "STARGAZE and PEEP"
@EndOption

/* Define the default directories as variables */
@DefineVars
   @Dir @Labeldir = "\\STARGAZE"
@EndVars

@If ( 2 [! @Option ) 
  @DefineVars @Dir @Datadir = "\\STARGAZE\\STARS" @EndVars
@Else
  @DefineVars @Dir @Datadir = "\\PEEP" @EndVars
@EndIf

/* Get the desired output drive ( A: and B: not allowed ) */
@GetOutDrive
   @Suppress A
   @Suppress B
   @Cls

   Install @Name on which disk drive?

                       











@EndOutDrive

/* If they will be using this with STARGAZE, give them the option to install
   the label files */
@If ( 2 [= @Option )
 @SetOption ( 11 )
@Else
 @SetOption ( 11 ) 
 @SetOption ( 12 ) 
 @SetOption ( 13 )
 @SetOption ( 14 )
 @SetOption ( 15 )
 @GetOption
  @CheckBox
  @Cls
  Please use the spacebar to select the items you would like installed:








  The approximate disk space requirements of each of these options is:

     SAO Catalogue database file                 2790 K
     SAO Number label files                      3865 K
     HD Number label files                       3678 K
     Variable Star Indicator label file            21 K 
     Double Star Indicator label file             366 K
                                                -------
     Total for all files                        10720 K

  Please be careful not to exceed the available space on your hard disk!
  @Option 11 = "SAO Catalog database file"
  @Option 12 = "SAO Number label files"
  @Option 13 = "HD Number label files"
  @Option 14 = "Variable Star Indicator label file"
  @Option 15 = "Double Star Indicator label file"
 @EndOption
@EndIf

/* If necessary, get the directory to which the database should be installed */
@If ( 11 [= @Option ) 
 @GetSubdir @Datadir
  @Cls
  You need to specify the destination subdirectory for the SAO Catalog
  database file.  The subdirectory you choose should be the same
  one that currently holds your STARGAZE or PEEP database files.  If you 
  don't know what a "subdirectory" is, you probably need not worry about 
  it, and should simply press [Enter] at the next prompt.  

  @Prompt = "Which subdirectory ([Enter] = @Datadir) ?"
 @EndSubdir
@EndIf

/* If necessary, get the directory to which the labels should be installed */
@If ( 12 [= @Option || 13 [= @Option || 14 [= @Option || 15 [= @Option )
 @GetSubdir @Labeldir
  @Cls
  You need to specify the destination subdirectory for the SAO Catalog
  label files.  The subdirectory you choose MUST be the same
  one that currently holds your STARGAZE executable file (STARGAZE.EXE).
  If you do not enter the subdirectory containing the STARGAZE executable,
  you will not be able to access the label files from STARGAZE.  If you 
  don't know what a "subdirectory" is, you probably need not worry about 
  it, and should simply press [Enter] at the next prompt.  


  @Prompt = "Which subdirectory ([Enter] = @Labeldir) ?"
 @EndSubdir
@EndIf

/* Copy the files from Disk #1 */
@DefineDisk
	@Label = "Disk #1"
	@BeginLib SAO.001
		@File SAOVAR.LBL @Size 21309     @Option 14 @Out \@Labeldir\*.*
		@File SAODBL.LBL @Size 374767    @Option 15 @Out \@Labeldir\*.*
		@File SAOHD40.LBL @Size 21286    @Option 13 @Out \@Labeldir\*.*
		@File SAOHD60.LBL @Size 206641   @Option 13 @Out \@Labeldir\*.*
		@File SAOHD70.LBL @Size 484308   @Option 13 @Out \@Labeldir\*.*
		@File SAOHD80.LBL @Size 1338287  @Option 13 @Out \@Labeldir\*.*
		@File SAOHD85.LBL @Size 1716225  @Option 13 @Out \@Labeldir\*.*
	@EndLib
@EndDisk

/* Copy the files from Disk #2 */
@DefineDisk
	@Label = "Disk #2"
	@BeginLib SAO.002
		@File SAOHD85.LBL @Option 13 @AppendTo SAOHD85.LBL 
		@File SAONUM40.LBL @Size 21454   @Option 12 @Out \@Labeldir\*.*
		@File SAONUM60.LBL @Size 207747  @Option 12 @Out \@Labeldir\*.*
		@File SAONUM70.LBL @Size 486857  @Option 12 @Out \@Labeldir\*.*
		@File SAONUM80.LBL @Size 1358535 @Option 12 @Out \@Labeldir\*.*
		@File SAONUM85.LBL @Size 1883364 @Option 12 @Out \@Labeldir\*.*
	@EndLib
@EndDisk

/* Copy the files from Disk #3 */
@DefineDisk
	@Label = "Disk #3"
	@BeginLib SAO.003
		@File SAONUM85.LBL @Option 12 @AppendTo SAONUM85.LBL 
		@File SAO.SGD @Size 2856691 @Option 11 @Out \@Datadir\*.*
	@EndLib
@EndDisk

/* Copy the files from Disk #4 */
@DefineDisk
	@Label = "Disk #4"
	@BeginLib SAO.004
		@File SAO.SGD @Option 11 @AppendTo SAO.SGD 
	@EndLib
@EndDisk

/* We're done! */
@Finish
	@ChDrive @OutDrive
   @If ( 11 [= @Option )
      @ChDir "@Datadir"
   @Else
      @ChDir "@Labeldir"
   @EndIf

	Installation of @Name is now finished.
 @If ( 2 [! @Option  ) /* Explain how to access the new data */
   When using the @Name with STARGAZE, make sure 
   to remove your full-sky database file from the database list and replace 
   it with the file SAO.SGD.  This can be done using the dBase tool in 
   the Toolbox.  STARGAZE will then use the SAO Catalog data 
   instead of the normal full-sky data.
 @EndIf
 @If ( 1 [! @Option )
   When using the @Name with PEEP (the Planetary 
   Event and Eclipse Predictor), make sure to select the file SAO.SGD using 
   the Database option under the File menu.  You will then be able to use 
   the SAO Catalog data in your occultation searches.
 @EndIf 
 @If ( 1 [= @Option ) /* Information about other products */
   CEB Metasystems also offers PEEP, the Planetary Event and Eclipse
   Predictor!  This inexpensive, highly accurate program calculates the 
   times and positions of solar and lunar eclipses, planetary conjunctions,
   and stellar occultations.  A must-have for the planetary event enthusiast!

   For more information, call us at (800)232-7830 Toll Free
                                 or (805)499-0958.
 @EndIf
 @If ( 2 [= @Option )
   CEB Metasystems also offers STARGAZE, a desktop planetarium and star
   chart generator.  See the sky as it appears from anywhere on Earth, from
   4,713 B.C. to 10,000 A.D.!  Plot the stars, planets and non-stellar 
   objects with great precision.  Generate professional-quality star maps.
   Comes with over 500,000 stars, for NO EXTRA CHARGE!

   For more information, call us at (800)232-7830 Toll Free
                                 or (805)499-0958.
 @EndIf
 @Pause
@EndFinish

/* end-of-file */
