home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merriam-Webster's Dictionary for Kids
/
MWDICT_100.iso
/
family.inf
next >
Wrap
INI File
|
1994-09-17
|
24KB
|
867 lines
DefineVariables
Text [ProductName] := Merriam Websters' Dictionary For Kids
Text [MainExeName] := MW1.EXE
Text [Launcher] := BlankString
Text [CommandLineArgs1]
Text [CommandLineArgs2]
Text [ProductIniFile] := MWDICT.INI
Text [ProductIniFile1]
Text [ProgGrpName] := Dictionary For Kids
Text [ProgGrpFileName] := DICTIONA.GRP
Text [SWTWLogo] := BlankString
Text [InstalledFile1] := mwa.idx
Text [ExeName1]
Text [IconName1]
Text [ExeName2]
Text [IconName2]
Directory [DefaultDestDir] := MW
Directory [SourceSubDir1] := SCREEN2
Directory [SubDir2] := SCREEN2
Logical [MinInstall] := N
Logical [MaxInstall] := N
Logical [BailOut] := N
Logical [PreviousInstall] := N
Number [Continue] := 1012
Logical [FromOptToMin] := N
Logical [Root] := N
Directory [SourceDir] := DICT
Directory [TargetDir]
Directory [TargetDrive] := BlankString
Number [NumOptions] := 2
Text [CurrentInstallOpt]
TextArray [InstallableDlls]
TextArray [InstallableExes]
TextArray [NotEnufFreeHDSpace]
;; VFW specific
Logical [VFWIcon] := N
Text [InstalledVFWVersion]
Text [ProductVFWVersion] := 00001.00010.00000.00176 ;;v1.1a & v1.1
Directory [VFWDir] := WINVIDEO
;; Family specific
TextArray [Paths]
TextArray [Settings]
Number [Index]
EndDefineVariables
SetTopLineTo [ProductName]
;; Turn off INSTALITS' bitmap window
SetDefaultBitmap Off
;; Normally set to `Install'. Set to `Preview' for debugging purposes.
SetInstallModeTo Install
SetTraceMode Off
SetExitConfirmationPrompt off
SetPopupBorderTo double
;; If DriveIsPresent C
;; If FreeSpaceOnDrive C < 25000
;; Popup There is insufficient space on C: drive for installation. Exiting Install.
;; SoLong
;; EndIf
;; [InstallationDirectory] := C:\[DefaultDestDir]
;; EndIf
;; If DriveIsPresent D
;; If FreeSpaceOnDrive D < 25000
;; Popup There is insufficient space on D: drive for installation. Exiting Install.
;; SoLong
;; EndIf
;; [InstallationDirectory] := D:\[DefaultDestDir]
;; EndIf
SetReplacementInquiry Off
Do DisplayLogo
Do CleanUpBMPs
[YesOrNo4] := Y
;; Product Introduction Screen
Do IntroDlgBox
If [Continue] = 1011
Do BailDlg
GoTo Bail
EndIf
Do CheckVFWVer
Do FirstInstall
If [PreviousInstall]
Do ReInstallit
EndIf
If .not. [YesOrNo4]
Do BailDlg
GoTo Bail
EndIf
Do EditIniFile
Do CreateProgramGroup
Do LaunchVFWSetup
Do SignOff
:Bail
SoLong
Procedure InitTextArrays
ClearArray [NotEnufFreeHDSpace]
If [NumOptions] = 2
[NotEnufFreeHDSpace][1] := The installation will attempt a minimal install.
[NotEnufFreeHDSpace][2] := To continue, click the 'Yes' button. To exit the installation now, click 'No'.
EndIf
If [NumOptions] = 1
[NotEnufFreeHDSpace][1] := The installation program will now exit - click on any button.
[NotEnufFreeHDSpace][2] := BlankString
EndIf
EndProcedure
Procedure PromptInstallDir
[String10] := C:\[DefaultDestDir]
:Again
Do PromptInstallDlg
If [Continue] = 1011
Do BailDlg
GoTo Bail
EndIf
[Number10] := LengthOf [String10]
If [String10] = BlankString
GoTo Again
EndIf
[String11] := SubstringOf [String10] from 1 to 1
If DriveIsPresent [String11]
GoTo Next
EndIf
GoTo Again
:Next
If DriveIsBernoulli [String11]
GoTo Again
EndIf
If DriveIsCDROM [String11]
GoTo Again
EndIf
If DriveIsRAM [String11]
GoTo Again
EndIf
If DriveIsRemote [String11]
GoTo Again
EndIf
If DriveIsRemoveable [String11]
GoTo Again
EndIf
[String11] := SubstringOf [String10] from 2 to 3
If [String11] <> :\
GoTo Again
EndIf
[InstallationDirectory] := SubstringOf [String10] from Beginning to [Number10]
EndProcedure
Procedure PromptInstallDlg
DialogBox 192 116 UseHeader "Merriam Websters' Dictionary For Kids" Returns [Continue] BlackOnLightGray ModalFrame
LText @xy( 6, 8) 180 8 "Please choose an installation directory "
LText @xy( 6,16) 180 8 "on a fixed drive (e.g., C: or D: drive)."
LText @xy( 6,32) 180 8 "Type in your choice below and press "
LText @xy( 6,40) 180 8 "<Enter> or click on `Continue'. Click on"
LText @xy( 6,48) 180 8 "`Exit' to terminate installation now. "
EditText @xy( 6,72) 180 12 Uses [String10] Border UpperCase
DefPushButton @xy(28,96) 40 16 "Continue" 1012
PushButton @xy(124,96) 40 16 "Exit" 1011
EndDialogBox
EndProcedure
Procedure ReinstallDlg
Do PromptInstallDir
[Dir1] := [InstallationDirectory]
EndProcedure
Procedure OptimalDlg
Dialog BlackOnLightGray
You previously chose Optimal Install option when [ProductName]
was last installed. Since you chose to reinstall [ProductName],
you should chose Minimal Install if your decision to reinstall
is to have any meaning. The Setup program will remove any files
not included in the Minimal installation option.
EndDialog
EndProcedure
Procedure MinimalDlg
Dialog BlackOnLightGray
You previously chose Minimal Install option when [ProductName]
was last installed. Since you chose to reinstall [ProductName],
you should choose Optimal Install if your decision to reinstall
is to effect any changes.
EndDialog
EndProcedure
Procedure BadDirDlg
Dialog [YesOrNo1] WhiteOnRed
The destination directory entered is either incorrect or non
existent. If you wish to continue installation, enter 'Y' for
Yes, or 'N' to terminate this installation.
EndDialog
EndProcedure
Procedure WishToContinueDlg
Dialog [YesOrNo4] BlackOnLightGray
You have chosen to reinstall [ProductName] over a previous
installation. If this choice is in error or if you have changed
your mind, click the 'No' button. If you wish to continue,
click the 'Yes' button
EndDialog
EndProcedure
Procedure NoFloppiesDlg
Dialog BlackOnLightGray UseHeader "Non-Fixed Disk Target"
A non-fixed disk target (ex: 'A' or 'B' floppy drives) cannot
be entered as a target drive for [ProductName]. Please enter
a logical drive letter mapped to a FIXED HARD DRIVE installed
on your computer.
EndDialog
EndProcedure
Procedure NotEnufFreeHDSpace
Dialog [YesOrNo6] BlackOnLightGray
There is not sufficient free space on the hard drive selected for
[CurrentInstallOpt] installation of [ProductName].
[NotEnufFreeHDSpace][1]
[NotEnufFreeHDSpace][2]
EndDialog
EndProcedure
Procedure RemoveOptimalInstallDlg
Dialog 3000 BlackOnLightGray
[ProductName] Setup is preparing your destination
hard disk for the selected Minimal installation.
EndDialog
EndProcedure
Procedure BailDlg
Dialog 3000 BlackOnLightGray
You are exiting [ProductName] Setup without completing
installation. No new files, directories or MS Windows Groups
have been created.
EndDialog
EndProcedure
Procedure IntroDlgBox
DialogBox 280 84 UseHeader "Welcome to Merriam Websters' Dictionary For Kids" Returns [Continue] BlackOnLightGray ModalFrame
LText @xy( 6, 8) 276 8 "Welcome to Merriam Websters' Dictionary For Kids installation. This program "
LText @xy( 6,16) 276 8 "will copy, to a destination directory on the hard drive you select, a small "
LText @xy( 6,24) 276 8 "number of files necessary to run Merriam Websters' Dictionary. No MS-DOS "
LText @xy( 6,32) 276 8 "or Windows system settings will be changed. If you wish to continue with this"
LText @xy( 6,40) 276 8 "installation, click the 'Continue' button; otherwise, click the 'Exit' button."
DefPushButton @xy( 47, 60) 40 16 "Continue" 1012
DefPushButton @xy(181, 60) 40 16 " Exit " 1011
EndDialogBox
EndProcedure
Procedure NoInstallToRootDlg
Dialog 6000 WhiteOnRed
You hve chosen to install [ProductName] in the root directory of [String8].
The install program does not allow installations to root directories. You
will be given the opportunity again to indicate a subdirectory to install to.
EndDialog
EndProcedure
Procedure LaunchVFWDlg
Dialog [YesOrNo11] BlackOnLightGray
[ProductName] requires updated Windows video software to operate correctly.
The installation program has determined that your video software needs to
be upgraded. It is recommended that this be done by clicking the 'Yes' button.
If you do not wish to install Windows video software now, click 'No'. To
install the Windows video upgrade at a later date, rerun this SETUP program.
EndDialog
EndProcedure
Procedure DisplayLogo
If MaxX < 300 .or. MaxX > 1024
ShowWindow Maximize
GoTo NoSWTWLogo
EndIf
If MaxX > 800
[SWTWLogo] := CD1024.BMP
GoTo SWTWLogo
EndIf
If MaxX > 640
[SWTWLogo] := CD800.BMP
GoTo SWTWLogo
EndIf
If MaxX > 300
[SWTWLogo] := CD640.BMP
GoTo SWTWLogo
EndIf
[SWTWLogo] := cd1024.BMP
:SWTWLogo
QueFiles to ShadowDirectory Quietly
[SWTWLogo]
EndQueFiles
GetQuedFiles Quietly
LoadBitmap 1 ShadowDirectory\[SWTWLogo]
ShowBitmap 1 @xy(0,0)
ShowWindow Maximize
Delay 3000
:NoSWTWLogo
EndProcedure
Procedure FirstInstall
If .not. [PreviousInstall]
:DoItAgain
Do PromptInstallDir
If [Continue] = 1011
GoTo Bail
EndIf
Do GetTargetDirAndDrive
[Dir1] := [InstallationDirectory]
Do NoInstallToRoot
If [Root]
[Root] := N
GoTo DoItAgain
EndIf
If FileExists [InstallationDirectory]\[ProductIniFile]
[PreviousInstall] := Y
GoTo DontDoOption
EndIf
Do MinMaxInstallOption
:DontDoOption
EndIf
EndProcedure
Procedure MakeSubDirs
If .not. DirectoryExists [InstallationDirectory]\[SubDir2]
CreateDirectoryIfNecessary [InstallationDirectory]\[SubDir2]
EndIf
EndProcedure
Procedure GetTargetDirAndDrive
[String1] := [InstallationDirectory]
[TargetDir] := SubstringOf [String1] from 3 to End
[TargetDrive] := SubstringOf [String1] from 1 to 2
EndProcedure
Procedure MinMaxInstallOption
GetMenuChoice BlackOnLightGray (2*MaxX)/3 MaxY/2 Highlight 1 UseHeader "Merriam Websters' Dictionary For Kids" BorDlg SysMenu
Optimal
; The optimal installation requires a maximum of 14.2 MBytes of
; hard disk space. This choice will significantly increase program
; execution speed.
Minimum
; The minimum installation requires about 4.5 MBytes of hard disk
; space. Choose this option if free space on your hard drive is
; limited. Program performance will vary with your CD drive speed.
EndGetMenuChoice
InCase Choice is
=1: Do OptimalInstall
=2: Do MinimalInstall
EndInCase
EndProcedure
Procedure CheckFreeSpace
If FreeSpaceOnDrive [TargetDrive] < QueSize
UnQueAllFiles
If [NumOptions] < 2
Do InitTextArrays
Do NotEnufFreeHDSpace
GoTo NoMin
EndIf
Do InitTextArrays
Do NotEnufFreeHDSpace
If .not. [YesOrNo6]
Do BailDlg
GoTo Bail
EndIf
If [YesOrNo6] .and. [MaxInstall] ;;already tried Max install
[NumOptions] := [NumOptions] - 1
Do MinimalInstall
[YesOrNo6] := N
EndIf
If [YesOrNo6] .and. [MinInstall] ;;Already tried Min Install
:NoMin
Do BailDlg
GoTo Bail
EndIf
EndIf
EndProcedure
Procedure OptimalInstall
If [NumOptions] > 1
[CurrentInstallOpt] := Maximum
Endif
[MaxInstall] := Y
[MinInstall] := N
QueFiles to [InstallationDirectory] Always NoInquiry
MW1.EXE
MWDICT.INI
MWS.IDX
MWA.IDX
MWK.IDX
MWW.IDX
MW.DD
EndQueFiles
Do MakeSubDirs
QueFiles to [InstallationDirectory]\[SubDir2] Always NoInquiry
GAMDUM.BMP
MW1MAIN.BMP
HISTORY.BMP
WRDFIND.BMP
SYNONYM.BMP
WARN2.BMP
EndQueFiles
Do CheckFreeSpace
GetQuedFiles
EndProcedure
Procedure RemoveOptimalInstall
DeleteFiles from [InstallationDirectory] Quietly
MW1.EXE
MWDICT.INI
MWS.IDX
MWA.IDX
MWK.IDX
MWW.IDX
MW.DD
EndDeleteFiles
DeleteFiles from [InstallationDirectory] Quietly
GAMDUM.BMP
MW1MAIN.BMP
HISTORY.BMP
WRDFIND.BMP
SYNONYM.BMP
WARN2.BMP
EndDeleteFiles
[FromOptToMin] := Y
EndProcedure
Procedure MinimalInstall
[CurrentInstallOpt] := Minimum
[MinInstall] := Y
[MaxInstall] := N
If [FromOptToMin]
Do RemoveOptimalInstall
EndIf
[DefaultDestDir] := [InstallFromDirectory]\[SourceDir]
QueFiles to [InstallationDirectory] Always NoInquiry
MW1.EXE
MWDICT.INI
MWS.IDX
EndQueFiles
Do MakeSubDirs
QueFiles to [InstallationDirectory]\[SubDir2] Always NoInquiry
GAMDUM.BMP
MW1MAIN.BMP
HISTORY.BMP
WRDFIND.BMP
SYNONYM.BMP
WARN2.BMP
EndQueFiles
[NumOptions] := [NumOptions] - 1
Do CheckFreeSpace
[NumOptions] := [NumOptions] + 1
GetQuedFiles
EndProcedure
Procedure CheckVFWVer
If .not. FileExists [WindowsSystemDirectory]\VER.DLL
QueFiles to [WindowsSystemDirectory] Always NoInquiry
ver.dll
EndQueFiles
GetQuedFiles Quietly
EndIf
If .not. FileExists [WindowsSystemDirectory]\MSVIDEO.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\ACMCMPRS.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\AVICAP.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\AVIFILE.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\CLEANUP.REG
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\COMPOBJ.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\CTL3D.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\DISPDIB.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\DVA.386
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\ICCVID.DRV
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\IMAADPCM.ACM
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\INDEOV.DRV
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\IR30.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\IR21_R.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\MCIAVI.DRV
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\MSACM.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\MSACM.DRV
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\MSADPCM.ACM
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\MSVIDC.DRV
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\OLE2.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\OLE2.REG
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\OLE2CONV.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\OLE2DISP.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\OLE2NLS.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\OLE2PROX.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\STORAGE.DLL
[VFWIcon] := Y
EndIf
If .not. FileExists [WindowsSystemDirectory]\TYPELIB.DLL
[VFWIcon] := Y
EndIf
If FileExists [WindowsSystemDirectory]\MSVIDEO.DLL
[InstalledVFWVersion] := FileVersionOf [WindowsSystemDirectory]\MSVIDEO.DLL
If ([InstalledVFWVersion] < [ProductVFWVersion])
[VFWIcon] := Y
EndIf
EndIf
EndProcedure
Procedure LaunchVFWSetup
If [VFWIcon]
Do LaunchVFWDlg
If [YesOrNo11]
[VFWIcon] := N
Run [InstallFromDirectory]\[SourceDir]\[VFWDir]\wvsetup.exe
EndIf
EndIf
EndProcedure
Procedure NoInstallToRoot
[String7] := [Dir1]
[String8] := SubstringOf [String7] from 1 to 2
If ([String7] = [String8]\)
Do NoInstallToRootDlg
[Root] := Y
EndIf
EndProcedure
Procedure ReInstallit
:Loop
Do WishToContinueDlg
If [YesOrNo4] = N
GoTo End
EndIf
Do ReinstallDlg
Do NoInstallToRoot
If [Root]
[Root] := N
GoTo Loop
EndIf
If DirectoryExists [Dir1]
[InstallationDirectory] := [Dir1]
[YesOrNo3] := Y
Do GetTargetDirAndDrive
If [NumOptions] = 1
Do OptimalInstall
GoTo End
EndIf
If FileExists [Dir1]\[MainExeName] ;;If already Optimal Install
[FromOptToMin] := Y
Do MinMaxInstallOption
GoTo Found
EndIf
If FileExists [Dir1]\[InstalledFile1] ;;If already Optimal Install
[FromOptToMin] := Y
Do MinMaxInstallOption
EndIf
:Found
If .not. [FromOptToMin] ;;If already Minimal Install
Do MinMaxInstallOption
EndIf
[FromOptToMin] := N
EndIf
If .not. [YesOrNo3]
Do BadDirDlg
If [YesOrNo1]
GoTo Loop
EndIf
If .not. [YesOrNo1]
[YesOrNo4] := N
EndIf
EndIf
:End
EndProcedure
Procedure LoadIniPaths
ClearArray [Settings]
[Settings][1] := VID_PATH
[Settings][2] := ILLUS_PATH
[Settings][3] := AUD_PATH
[Settings][4] := SCREEN_PATH
[Settings][5] := SCREEN_PATH_2
[Settings][6] := GAME_PATH
[Settings][7] := DATA_PATH
[Settings][8] := INDEX_PATH_MWA
[Settings][9] := INDEX_PATH_MWK
[Settings][10] := INDEX_PATH_MWS
[Settings][11] := INDEX_PATH_MWW
[Settings][12] := ABOUT_PATH
[Settings][13] := HELP_PATH
ClearArray [Paths]
[Paths][1] := vid\
[Paths][2] := ill\
[Paths][3] := aud\
[Paths][4] := screen\
[Paths][5] := screen2\
[Paths][6] := games\
[Paths][7] := data\
[Paths][8] := index\mwa\
[Paths][9] := index\mwk\
[Paths][10] := index\mws\
[Paths][11] := index\mww\
[Paths][12] := about\
[Paths][13] := help\
EndProcedure
Procedure EditIniFile
SetFileAttrTo 00 for [InstallationDirectory]\[ProductIniFile]
[Array2][1] := PATHS
[Array2][2] := VID_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\vid\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := ILLUS_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\ill\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := AUD_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\aud\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := SCREEN_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\screen\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := SCREEN_PATH_2
[Array2][3] := [InstallationDirectory]\screen2\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := GAME_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\games\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := DATA_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\data\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
If [MinInstall]
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWA
[Array2][3] := [InstallFromDirectory]\[SourceDir]\index\mwa\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndIf
If [MaxInstall]
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWA
[Array2][3] := [InstallationDirectory]\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndIf
If [MinInstall]
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWK
[Array2][3] := [InstallFromDirectory]\[SourceDir]\index\mwk\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndIf
If [MaxInstall]
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWK
[Array2][3] := [InstallationDirectory]\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndIf
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWS
[Array2][3] := [InstallationDirectory]\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
If [MinInstall]
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWW
[Array2][3] := [InstallFromDirectory]\[SourceDir]\index\mww\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndIf
If [MaxInstall]
[Array2][1] := PATHS
[Array2][2] := INDEX_PATH_MWW
[Array2][3] := [InstallationDirectory]\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndIf
[Array2][1] := PATHS
[Array2][2] := ABOUT_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\about\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
[Array2][1] := PATHS
[Array2][2] := HELP_PATH
[Array2][3] := [InstallFromDirectory]\[SourceDir]\help\
[Array2][4] := [InstallationDirectory]\[ProductIniFile]
WritePrivateProfileString Using [Array2] NoBackup
ClearArray [Array2]
EndProcedure
Procedure CreateProgramGroup
[YesOrNo2] := N
If FileExists c:\WINDOWS\[ProgGrpFileName]
ProgramManagerDDE
DeleteGroup([ProgGrpName])
EndProgramManagerDDE
[YesOrNo2] := Y
EndIf
If [MaxInstall]
ProgramManagerDDE
CreateGroup([ProgGrpName])
AddItem([TargetDrive][TargetDir]\MW1.EXE, Dictionary For Kids)
EndProgramManagerDDE
EndIf
If [MinInstall]
ProgramManagerDDE
CreateGroup([ProgGrpName])
AddItem([TargetDrive][TargetDir]\MW1.EXE, Dictionary For Kids)
EndProgramManagerDDE
EndIf
If [YesOrNo2]
ProgramManagerDDE
Reload([ProgGrpName])
EndProgramManagerDDE
EndIf
EndProcedure
Procedure CleanUpBMPs
DeleteFiles from ShadowDirectory Quietly
[SWTWLogo]
EndDeleteFiles
EndProcedure
Procedure SignOff
Dialog BlackOnLightGray
[ProductName] installation is complete.
EndDialog
EndProcedure
Procedure DDENonFatalErrorTrap
;; Trap the dde error for ReplaceItem.
;; See Simple.Stf for more information on how to
;; use ProgramManager's DDENonFatalErrorTrap.
EndProcedure
EndScript