#	@(#)install.b	61.11 94/05/19 14:07:22
#
#	Copyright 1994 JYACC Inc.  All Rights Reserved
#
#       IMPORTANT NOTE
#       --------------
#
#       The next line needs to be kept up to date with the total size of
#       the .pct file that is created.  Letting it get out of sync can
#       cause problems, especially if the number is too low.
#
^SetGoal 11331078
#
#       Display Initial Greeting
#
m INFORMATION
Welcome to the JAM 6 for Windows installation!
.
########################################################################
#       This is the main section which gets the directory names from
#       the user
########################################################################

#       Set the default value for the input box
^set_lur C:\JAM6
								      
l GETUSER
								     

#       Get the name of the directory
^prompt_user Enter the name of the directory to install JAM 6 into:

#       When Done, move to step to change directories
g chdir


########################################################################
#       HANDLE USER ABORT FROM DIRECTORY SELECTION
########################################################################

#                                                                      
l UABORT
#                                                                      
m STOP
You have aborted the installation.

No files have been copied onto your system
at this point.
.
X

########################################################################
#       Change to the directory
########################################################################

#                                                                      
l chdir
#                                                                      
^make_n_cd_inst_dir

########################################################################
#       Extract the files
########################################################################
p -x %Fjam6.dst

m INFORMATION

All files have been loaded onto your system.

Next, we will copy a few files to your windows directory.
.
########################################################################
#       Copy Pi files to the windows directory
########################################################################

# Rename an old one if it exists
r %W\jam6.ini %W\jam6.bta

c %C\config\jam6.ini %W\jam6.ini
c %C\config\dynatext.ini %W\dynatext.ini

g copiedtowin

########################################################################
#       ERROR handling from the file copies
########################################################################

#                                                                      
l CREATEERROR
#                                                                      
m STOP
I was unable to copy the files to the windows directory.

You will have to copy the file jam6.ini which is in the config directory to your 
windows directory by hand and then edit it before JAM 6 for Windows can be used.  
.
#                                                                      
l copiedtowin

s %W/jam6.ini
|c:\jam6|%C|
.

s %W/dynatext.ini
|c:\jam6|%C|
.
n QUESTION noprogman
May I create a JYACC group in the program manager and then
insert icons for JAM?
.
^progman [DeleteGroup(JYACC)]
^progman [CreateGroup(JYACC)]
^progman [ShowGroup(JYACC)]
^progman [AddItem(%C\util\jamdev.exe main.jam,VideoBiz,%C\util\videobiz.ico,,,,%C\samples\videobiz)]
^progman [AddItem(%C\util\jamdev.exe,JAM 6 for Windows)]
^progman [AddItem(%C\util\mbedit.exe,Menu Bar Editor)]
^progman [AddItem(%C\jdb\bin\isqlw.exe,Interactive SQL,%C\util\isql.ico)]
^progman [AddItem(%C\util\binh.exe,Batch Inheritance,%C\util\binherit.ico)]
^progman [AddItem(%C\util\cmap2bin.pif,cmap2bin,%C\util\cmap2bin.ico)]
^progman [AddItem(%C\util\f5to6.pif,f5to6,%C\util\f5to6.ico)]
^progman [AddItem(%C\util\f2asc.pif,f2asc,%C\util\f2asc.ico)]
^progman [AddItem(%C\util\formlib.pif,formlib,%C\util\formlib.ico)]
^progman [AddItem(%C\util\m2asc.pif,m2asc,%C\util\m2asc.ico)]
^progman [AddItem(%C\util\jpl2bin.pif,jpl2bin,%C\util\jpl2bin.ico)]
^progman [AddItem(%C\util\key2bin.pif,key2bin,%C\util\key2bin.ico)]
^progman [AddItem(%C\util\msg2bin.pif,msg2bin,%C\util\msg2bin.ico)]
^progman [AddItem(%C\util\showkey.exe,showkey)]
^progman [AddItem(%C\util\var2bin.pif,var2bin,%C\util\var2bin.ico)]
^progman [AddItem(%C\util\vid2bin.pif,vid2bin,%C\util\vid2bin.ico)]
^progman [AddItem(%C\util\dtextro.exe,JAM 6 Help)]
^progman [AddItem(notepad.exe %W\jam6.ini,JAM6.INI,notepad.exe)]
^progman [AddItem(notepad.exe %W\dynatext.ini,DYNATEXT.INI,notepad.exe)]

:noprogman
m INFORMATION
The install program is finished.  

Have Fun!
.

X

#                                                                      
l UABORT
#                                                                      
m STOP
You have chosen to abort the installation.

Even so, some files will have been copied into
the %C directory, which you may want to remove.
.
X

l BADINSTDIR
#                                         
m STOP
I was unable to change to the directory you specified.

Please try again.
.
g GETUSER

#                                       
L OPENERROR
#                                       
m STOP
I was unable to read the newly installed JAM files.

This would indicate some sort of critical error that I am unable to
recover from at this point, forcing the installation to be aborted.

Typical errors might be a disk hardware error, network problems, or
conflicts with other windows tasks.
.

X
#   --                                      
L WRITEERROR
#                                          
m STOP
An error occurred in writing your JAM files.

This problem typically occurs when the hard disk is full.
You should check to see if you have enough space to hold
the JAM product and then restart the installation.
.
X
