;***************************************************************************
;* Athena Build ? - 1.44 Install Script                                    *
;* NEW FORMAT SCRIPT - FOR VERSION 3.1+ OF SYMANTEC INSTALL FOR WINDOWS    *
;***************************************************************************

[InstallVersion]
3.1

[process]
Bitmaps.pix

QaCopy = SetActiveCopy

;switch01 = IsRegistered
;#ifnot switch01
;    Registration
;    VersionSearch
;#endif

AllowIntlChars
VersionSearch

SelectInstallType
GetPrevVerSize

#if switch92
   PrimarySelect
#endif

TargetDrive

CreateDirectory.Template
ResetTarget.Reset2

switch03 = IsOptionSelected.filts

#if switch03
   CreateDirectory.Filters
   ResetTarget.Reset3
#endif

Backup.SaveEm
switch10=exists.CheckEm

#if switch10
   messagebox.InformAboutBackup
#else
   Backup.original
   messagebox.InformAboutOrig
#endif

ModifyTextFile.autoexec

DisableUtils
copy
EnableUtils

groups

switch10 = IsRebootRequested
switch11 = IsInstallShell

#if switch10
   End.byeReboot
#else
   #ifnot switch11
       messagebox.ByeMessage
       exit
   #else
       End.byeshell
   #endif
#endif

end

;***************************************************************************
;* SubProc Executed When Install Takes Over As Shell                       *
;***************************************************************************

[SubProc]
Return



;***************************************************************************
;* Disks                                                                   *
;***************************************************************************

[disks]
1=A:\, "Q&A for Windows, Disk 1"
2=A:\, "Q&A for Windows, Disk 2"
3=A:\, "Q&A for Windows, Disk 3"
4=A:\, "Q&A for Windows, Disk 4"

;***************************************************************************
;* Copy                                                                    *
;***************************************************************************

[QaCopy]
CopyMain.BaseFiles,    "Q&&A For Windows - 5528K (Required)",5528, Y, N, Y

CopyMain.filts,        "Import/Export Filters - 176K",          0, N, Y, Y
CopySub.ascii,         "Ascii Filters - 55K",                  55
CopySub.dbase,         "Dbase Filters - 45K",                  45
CopySub.lotus,         "Lotus 1-2-3 Filters - 76K",            76

CopyMain.samps,        "Sample Files - 151K",                   0, N, Y, Y
CopySub.employ,        "Sample Database File - 151K",         151


[QaCopy.disk1]
install.exe,   "Symantec Install for Windows", Link:Basefiles
instbin.exe,   "Symantec Install for Windows", Link:Basefiles
siwdll.dll,    "Symantec Install for Windows", Link:Basefiles
install.inf,   "Symantec Install Script",    Link:Basefiles
uninstal.inf,  "Symantec Uninstall Script",    Link:Basefiles
lzexpand.dll,  "Microsoft decompression",      Link:Basefiles, SYSTEM, VersionCheck
ctl3d.dll,     "3-D Controls DLL",             SYSTEM, VersionCheck, Link:Basefiles
commdlg.dll,   "Windows 3.1 Common Library",   SYSTEM, VersionCheck, Link:Basefiles  
ver.dll,       "Windows 3.1 Common Library",   SYSTEM, VersionCheck, Link:Basefiles
shell.dll,     "Windows 3.1 Common Library",   SYSTEM, VersionCheck, Link:Basefiles
qabcl.dll,     "Bedrock Class Library DLL",    Link:Basefiles     
qabcladv.dll,  "Bedrock Class Library DLL",    Link:Basefiles  
qabclutl.dll,  "Bedrock Class Library DLL",    Link:Basefiles
qabel.dll,     "Bedrock Class Library DLL",    Link:Basefiles
qatrace.dll,   "Bedrock Class Library DLL",    Link:Basefiles
dbie.dll,      "Q&&A Dynamic Link Library",    Link:Basefiles    
qadbres.dll,   "Q&&A Resource DLL",            Link:Basefiles   
gbdintl.dll,   "Bedrock Class Library DLL",    Link:Basefiles 
gbdstr.dll,    "Bedrock Class Library DLL",    Link:Basefiles  
gbdtime.dll,   "Bedrock Class Library DLL",    Link:Basefiles
gbdvalid.dll,  "Bedrock Class Library DLL",    Link:Basefiles
mtask.dll,     "Q&&A Database Engine",         Link:Basefiles
qadbeng.dll,   "Q&&A Database Engine",         Link:Basefiles   
qawinres.dll,  "Resource DLL",                 Link:Basefiles
qawin.hlp,     "Q&&A Help",                    Link:Basefiles
qawin.bmp,     "Q&&A Bitmap",                  Link:Basefiles
personal.dtf,  "Sample Database File",         Link:employ,    TARGET2
personal.idx,  "Sample Database File",         Link:employ,    TARGET2 

[QaCopy.disk2]
qa.exe,        "Q&&A Main Program",            Link:Basefiles
smartmem.dll,  "Bedrock Class Library DLL",    Link:Basefiles 
smrtheap.dll,  "Bedrock Class Library DLL",    Link:Basefiles 
qatskglb.dll,  "Bedrock Class Library DLL",    Link:Basefiles 
wbdbgwin.dll,  "Bedrock Class Library DLL",    Link:Basefiles 
wbdfile.dll,   "Bedrock Class Library DLL",    Link:Basefiles  
exascii.eft,   "Ascii Export Filter",          Link:ascii,     TARGET3  
exdbase.eft,   "DBase Export Filter",          Link:dbase,     TARGET3  
exlotus.eft,   "Lotus 1-2-3 Export Filter",    Link:lotus,     TARGET3  
qawin.exe,     "Q&&A For Windows Executable",  Link:Basefiles   
employee.dtf,  "Sample Database File",         Link:employ,    TARGET2
employee.idx,  "Sample Database File",         Link:employ,    TARGET2 
imascii.ift,   "Ascii Import Filter",          Link:ascii,     TARGET3  
imdbase.ift,   "DBase Import Filter",          Link:dbase,     TARGET3  
imlotus.ift,   "Lotus 1-2-3 Import Filter",    Link:lotus,     TARGET3  
qalabel.tpl,   "Mailing Label Template",       Link:Basefiles    
qaia1.ovl,     "Intelligent Assistant File",   Link:Basefiles    
qaia2.ovl,     "Intelligent Assistant File",   Link:Basefiles    

;***************************************************************************
;* Groups                                                                  *
;***************************************************************************

[groups]
"Symantec",           symantec.grp

[Symantec]
"Q&A for Windows",         qa.exe,             Basefiles
"Remove Q&A for Windows", "install.exe /u",    Basefiles


;***************************************************************************
;* Message Text                                                            *
;***************************************************************************

[QaCopy:CopyDialog]
caption = "Copying Q&A Files..."
posx = -10
posy = -10

[QaCopy:Primary]
caption = "Q&A for Windows - Primary Selection"
button1 = "Files"
button2 = "Filters"
button3 = "Samples"
button4 = "Files"
button5 = "Files"
text = App1Text

[App1Text]
"Please select the items you wish to install.  If a selection"
"has a button to the right, you can select individual files or"
"components."

[QaCopy:Component]
caption = "Q&A for Windows - Component Selection"
text    = "Indicate which components you want to install.  Highlighted items will be installed."

[AdvoDefault]
posx = 10
posy = 20
text = AdvoText

[AdvoText]
"Please take a moment to complete the Product Registration Card
"included with your product and return it to Symantec."
""
"This will ensure that you receive future product announcements"
"and important notices. It will also qualify you for any discounts"
"on future upgrades."
""
"Thank you for purchasing Q&&A for Windows."

[QaCopy:TypeSelect]
count = 2
caption = "Q&A for Windows - Install Type"
text = "Please Select the type of install you would like to perform."
grouptext = "Install Types"
button1 = "Complete Install"
button2 = "Custom Install"
descrip1 = "This option installs the entire product onto your hard drive and will take approximately 5mb of disk space."
descrip2 = "This option allows you to choose the components you wish to install.  If you need to install additional components, you can run install again."

[ByeMessage]
caption  =  "Q&A for Windows - Install Complete"
"This concludes the installation of Q&A"
"for Windows."
" "
"Please review the README.TXT file for last"
"minute changes and corrections to the"
"documentation."
" "

[ByeShell]
caption  =  "Q&A for Windows - Install Complete"
"This concludes the installation of Q&A"
"for Windows."
" "
"Please review the README.TXT file for last"
"minute changes and corrections to the"
"documentation."
" "
"Please select one of the exit options below."

[byereboot]
caption  =  "Q&A for Windows - Install Complete"
"This concludes the installation of Q&A for Windows."
" "
"Please review the README.TXT file for last minute changes"
"and corrections to the documentation."
" "
"Select one of the exit options below."
"Rebooting is highly recommended.  Please remove all floppy"
"disks from the drives."

[InformAboutBackup]
caption = "Startup File Backup"
"Your startup files have been"
"backup up as follows;"
""
"AUTOEXEC.BAT to AUTOEXEC.QA1"
"CONFIG.SYS to CONFIG.QA1"
"WIN.INI to WIN.QA1"
"SYSTEM.INI to SYSTEM.QA1"

[InformAboutOrig]
caption = "Startup File Backup"
"Your startup files have been"
"backup up as follows;"
""
"AUTOEXEC.BAT to AUTOEXEC.QA0"
"CONFIG.SYS to CONFIG.QA0"
"WIN.INI to WIN.QA0"
"SYSTEM.INI to SYSTEM.QA0"

[Registration]
caption =  "Q&A for Windows - Registration"
text1   =  "Please register your name and company before continuing:"
text2   =  "&Name:"
text3   =  "&Company:"
Cancel  =  "Cancel"
Help    =  "&Help"
appname =  athena.exe
string  =  "Symantec Install for Windows"
active  =  no

[VersionSearch]
caption =  "Searching for Previous Version"
text1   =  "Searching for a previously"
text2   =  "installed version of Q&A for Windows"
appname =  "athena.exe"
apppath =  C:\QAWIN

[TargetDrive]
caption =  "Q&A for Windows - Select Destination"
defpath =  C:\QAWIN
text    =  "Please select the drive/directory where you would like Q&&A for Windows installed to."
reqspace=  "Approximate disk space required"

[errors]
noprev  =  "Symantec Install for Windows is already running!"

[FileCopy]
copycaption   =  "Installing Q&A for Windows"
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"
Message       =   MessageText

[cancel]
caption = "Q&A for Windows - Exit Install"
text    = "Are you sure you want to exit?"

[cancelshell]
caption = "Q&A for Windows - Exit Install"
text = "You have selected to cancel Install.\nIn order to reset the Windows\nenvironment, Install will also close Windows.\nAre you sure you want to exit?"

;***************************************************************************
;* Ini modifications                                                       *
;***************************************************************************


;***************************************************************************
;* Delete Files                                                            *
;***************************************************************************

[Leftovers]
win.siw, WINDOWS
system.siw, WINDOWS

;***************************************************************************
;* Misc install functions                                                  *
;***************************************************************************

[template]
%s\template, TARGET

[filters]
%s\filters, TARGET

[reset2]
reset = TARGET2
location = %s\template, TARGET

[reset3]
reset = TARGET3
location = %s\filters, TARGET

[VerDll]
ver.dll, system

[CheckEm]
win.qa0, WINDOWS

[SaveEm]
win.ini, win.qa1, WINDOWS, WINDOWS
system.ini, system.qa1, WINDOWS, WINDOWS
ndw.ini, ndw.qa1, WINDOWS, WINDOWS
c:\config.sys, c:\config.qa1, dummy, dummy
c:\autoexec.bat, c:\autoexec.qa1, dummy, dummy

[original]
win.ini, win.qa0, WINDOWS, WINDOWS
system.ini, system.qa0, WINDOWS, WINDOWS
ndw.ini, ndw.re0, WINDOWS, WINDOWS
c:\config.sys, c:\config.qa0, dummy, dummy
c:\autoexec.bat, c:\autoexec.qa0, dummy, dummy

[pix]
color = %s\qawin.bmp

;***************************************************************************
;* Autoexec Mods                                                           *
;***************************************************************************

[Autoexec]
caption    = "Q&A - Modify Autoexec.bat File"
text1      = "The following modifications need to performed on your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype   = autoexec
findrems   = 0
rem1       = "rem"
rem2       =
rem3       =
rem4       =
EditCaption= "Edit Autoexec.bat File"
EditText   = "Edit the file as desired.  When complete, press Finished.  To cancel all changes made in this or previous edits, press Cancel Edit."
AddPath    = target
DelItems   = AutoexecDelItems
AddItems   = AutoexecAddItems

[AutoexecDelItems]

[AutoexecAddItems]


;***************************************************************************
;* SetShell section                                                        *
;***************************************************************************

[SetShell]
AppIniName = qaw.ini
WinIniName = win.ini
SystemIniName = system.ini
Message = MessageBox.SetShellMessage
SysSectionName = boot
WinSectionName = windows
shell = %s\install.exe
load =
run =
SetShellIfLoaded=
Backup = Backup.SetShellSave
Restore = Backup.SetShellRestore
Active = yes
IfActiveList=LoadedList
SubProcess=

[SetShellSave]
win.ini, win.siw, WINDOWS, WINDOWS
system.ini, system.siw, WINDOWS, WINDOWS

[SetShellRestore]
system.siw, system.ini, WINDOWS, WINDOWS
win.siw, win.ini, WINDOWS, WINDOWS

[LoadedList]
athena.exe
commdlg.dll
shell.dll
ver.dll

[SetShellMessage]
caption  =  "Q&A for Windows - Install Program"
"Welcome to the Q&A for Windows Installation"
"program.  Please press OK to allow Install"
"to restart Windows and continue the"
"Installation.  Press Cancel to exit"
"Install."
