home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Time Riders in American History
/
TR_AMAZ.BIN
/
amazon.inf
< prev
next >
Wrap
INI File
|
1994-09-19
|
5KB
|
152 lines
DefineVariables
Text [ProductName] := Amazon Trail CD
Text [DefaultInstallDir] := C:\MECC\ATCD
Text [IconCmdLine] := AMAZON.EXE
Text [IconFile] := AMAZON.EXE
number [SpaceNeeded] := 2000000
Text [SpaceText] := 2.1 MB
EndDefineVariables
SetDefaultBitmap Off
LoadBitmap 1 mecc.bmp
ShowBitmap 1 @xy(20,5)
;;SetBackgroundColor 50 50 255 0 0 0
ShowWindow Maximized
Dialog UseHeader "Welcome to [ProductName] installation."
.L This Setup program will create a Program Group and copy
.L [ProductName] files to your hard disk.
.L If you need to quit the installation at any time, press
.L the Esc key while the computer is waiting for a response.
EndDialog
Dialog UseHeader "KNOW YOUR RIGHTS (and respect ours, too)"
.LPlease do not make illegal copies of this software. The software you are using
.Lwas produced through the efforts of many people: designers, artists,
.Lprogrammers, distributors, retailers, and other dedicated workers. The costs of
.Ldeveloping this and other software programs are recovered through software
.Lsales. The unauthorized duplication of personal software raises the cost to all
.Llegitimate users. This software is protected by federal copyright law. Copying
.Lsoftware for any reason other than to make a backup is a violation of law.
.LIndividuals who make unauthorized copies of software may be subject to civil
.Land criminal penalties. As a member of the Software Publishers Association
.L(SPA), MECC supports the industry's efforts to fight illegal copying of
.Lpersonal computer software. Report copyright violations to: SPA, 1730 M
.LStreet NW, Suite 700, Washington DC 20036-4510, 800/388-7478.
.LFor a complete explanation of your legal rights and responsibilities in using
.Lthis product, please refer to your user's guide.
.LThe Amazon Trail CD, Copyright (C) 1994, MECC. All rights reserved.
EndDialog
[Point1]
[InstallationDirectory] := [DefaultInstallDir]
Dialog [InstallationDirectory] 56 BlackOnWhite UseHeader "Setup"
.L Please choose a drive and a directory for [ProductName]'s
.L files. The drive must have at least [SpaceText] of free space.
.L Click OK to choose the drive and directory shown. Or, type in the
.L drive and directory you prefer, then click OK.
EndDialog
[Number2] := FreeSpaceOnDrive InstallationDrive
If [Number2] < [SpaceNeeded]
[String1] := InstallationDrive
Dialog
.LThere is not enough space for [ProductName] on
.Lthe [String1]: drive.
.L Space Available: [Number2] bytes
.L Space Required: [SpaceNeeded] bytes
.LPlease try again, or press the Esc key to quit.
EndDialog
GoTo [Point1]
Endif
CreateDirectoryIfNecessary [InstallationDirectory]
SetReadOnlyInquiry off
SetReplacementInquiry off
CopyFiles quietly
dib.drv
EndCopyFiles
QueFileGroup 1 to [InstallationDirectory]
QueFileGroup 2 to [InstallationDirectory]\LANDMARK
GetQuedFiles
[String2] := "MECC"
;;Dialog [String2] BlackOnWhite UseHeader "Creating the program item"
;;
;; .L A program item for [ProductName] will be added to
;; .L the following Program Manager group.
;;
;; .L If you want to place the icon in a different
;; .L group, type the name of the new or existing group.
;;
;; .L If the group does not exist, it will be created.
;;
;;EndDialog
;;If [String2] = BlankString
;; [String2] := "MECC"
;;EndIf
ProgramManagerDDe
CreateGroup([String2])
ReplaceItem([ProductName])
AddItem([InstallationDirectory]\[IconCmdLine],[ProductName],[InstallationDirectory]\[IconFile])
EndProgramManagerDDE
Dialog
[ProductName] setup is complete.
Thanks for buying [ProductName]!
EndDialog
Procedure DDENonFatalErrorTrap
;; Purpose of DDENonFatalErrorTrap:
;; If a procedure with this name is present in the script and a non-fatal
;; Program Manager DDE error occurs, then this procedure will be executed.
;;
;; Possible Text Error Codes Are:
;; ddeExec%s failed (NOTE: the "%s" is replaced by error types)
;; ddeInitiate failed
;; pmAddItem failed
;; pmClose failed
;; pmCreateGroup failed
;;
;; To trap a DDENonFatalError and respond to it, use the following code
;; [Number1] := PositionOf "PMAddItem" in DDENonFatalError
;; If [Number1] > 0
;; Dialog
;; NonFatal error in AddItem occurred
;; Error Text : DDENonFatalError
;; EndDialog
EndProcedure
EndScript