home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wargames
/
wargamescd-romfuturethinking1994.iso
/
ftcdrom.inf
< prev
next >
Wrap
Text File
|
1994-11-30
|
4KB
|
177 lines
;; Purpose: Installs Future Thinking Icon into new icon group and
;;and creates a directory FTCDROM on the C: Drive.
DefineVariables
Text [ProductName] := Future Thinking
Text [DefaultInstallDir] := c:\ftcdrom
Text [IconCmdLine] := c:\ftcdrom\start.exe
;;Command line for icon
Text [IconFile] := ft4.ico
Text [IconPath] :=
Text [PathLineString] :=
Number [PathLine] :=
EndDefineVariables
;; ScreenSetUp
SetBackgroundColor 128 128 255 0 0 255
ShowWindow Maximized
;;This checks to see if icon is already installed
[array1] := GetProgramManagerGroupInfo Future Thinking
[string1] := [array1][1]
If [String1] contains "Future Thinking"
Do DirectoryCheck;; checks to see if directory has been deleted
EndIf
;; Product Introduction Screen
Dialog
The installation places the Future Thinking Icon
in you program manager and creates a directory
for the Future Thinking programs.
EndDialog
Do InstallDirectory
Do InstallIcon
Do AutoexecModification
Do VideoCheck
Dialog
Installation is completed.
Please make sure to close and restart Windows
before double-clicking on the Future Thinking Logo.
You may also have to reboot your computer.
Enjoy you Future Thinking CD-ROM.
EndDialog
Procedure InstallDirectory
;;Installs directory
[FixedDiskRequirement] required
If DriveIsPresent C
[InstallationDirectory] := c:\Ftcdrom
Dialog
The Future Thinking directory requires
1MB of memory on you drive.
EndDialog
else
Dialog
You need to change your hard drive to C:
to run the Future Thinking CD-ROM.
EndDialog
Endif
CopyFiles to c:\ftcdrom
start.exe
runapw2.exe
apdgv.vdr
ft4.ico
win.bat
futurcln.exe
futurern.exe
play.bak
Endcopyfiles
EndProcedure
Procedure InstallIcon
;; In this example we use ProgramManagerDDe to create a group
;; and add a simple icon feature to complete our working example
[IconPath] := FullPathTo [IconFile] Search AllFixed
ProgramManagerDDe
CreateGroup(Future Thinking)
ReplaceItem(Future Thinking)
AddItem([IconCmdLine],Future Thinking,[IconPath])
EndProgramManagerDDE
EndProcedure
Procedure AutoexecModification
NoSysFileConfirmation
ModifyAutoexecBat Quietly
AddPathComponent c:\ftcdrom At Beginning
EndModifyAutoexecBat
EndProcedure
;;checks and install missing video driver
Procedure VideoCheck
[Array2][1] := mci
[Array2][2] := AVIVideo
[Array2][3] := XXX
[Array2][4] := [WindowsDirectory]\system.ini
GetPrivateProfileString Using [Array2]
If [Array2][5] = mciavi.drv
else
Dialog
You do not have Microsoft Video for Windows
installed on your computer.
You can run setup now to install it.
EndDialog
Run [InstallFromDrive]:\disk1\setup.exe
endif
endprocedure
Procedure SystemPathCheck
NoSysFileConfirmation
ExamineTextFile c:\Autoexec.bat
[PathLine] := PathLineNumber
[PathLineString] := Line [PathLine]
If [PathLineString] contains c:\ftcdrom
Popup Future Thinking is already installed on your computer.
Do VideoCheck
SoLong
Else
Do AutoexecModification
Do VideoCheck
SoLong
EndIf
EndProcedure
Procedure DirectoryCheck
;; Procedure checks to see if directory has been deleted
If DirectoryExists c:\ftcdrom
Do SystemPathCheck
Else
Popup The Future Thinking directory need to be re-installed.
Do InstallDirectory
Do AutoexecModification
Do VideoCheck
Solong
EndIf
EndProcedure
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
;; EndIf
EndProcedure
EndScript