home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Win 3.11 Apps
/
win311aps.iso
/
PIXAR
/
TYPESTRY.INF
< prev
Wrap
INI File
|
1995-05-15
|
17KB
|
588 lines
;; INSTALIT Script to install beta version of Pixar's Typestry
;; Built to run with INSTALIT for windows.
;; Needs tests for sufficient hardware and software
DefineVariables
Text [CompanyName] := Pixar
Text [ProductName] := Typestry
Text [ProductVersion] := 1.1
Logical [OfferInstallationDirectoryChoice] := Y
Directory [DefaultInstallationDirectory] := TYPESTRY
Text [ModifyMode] := UNDECIDED
Number [MinimumFilesSetting] := 0
Number [MinimumBuffersSetting] := 0
Directory [ReadmeFileName]
Logical [InquireAboutSystemFileLocation] := Y
Logical [AskBeforeFileReplacement] := N
Text [ExitMessage] := Thanks!
Directory [ProgramToRun]
Logical [AddInstallDirectoryToPath] := Y
Text [MinimumOSVersion] := 0
Number [MinimumSystemMemoryRequiredPresent] := 0
Logical [AllowCGA] := N
Logical [AllowMDA] := N
Logical [Allow808x] := N
Logical [Allow80286] := N
Logical [MathCoprocessorRecommended] := N
Logical [FixedDiskRequired] := Y
Text [NetWorkInstallation] := AllowNetwork
Logical [UseShadows] := Y
Text [MainBorder] := NONE
Text [PopupBorder] := SINGLE
Text [TopLine] := " INSTALLING [ProductName] [ProductVersion] "
Text [TopLineColors] := BlackOnLightGray
Text [BottomLineColors] := BlackOnLightGray
Text [PopupColors] := BlackOnWhite
Text [AttentionColors] := BlackOnWhite
Text [SpecialPopupColors] := BlackOnWhite
Text [ExtractionOptions] := ShowJustOne ;; See GetQuedFiles
Logical [NeedToTerminate] := N
Logical [Installed] := N
Text [DisplayAdapterSummary]
Text [CPUTypeSummary]
Text [NetworkActive]
Text [MathCoprocessorStatus]
Text [InstallationDriveSummary]
Text [OSVersionSummary]
Text [SystemMemorySummary]
Logical [InsufficientSystem] := N
Logical [CompatibilityNoticeGiven] := N
Logical [NeedToModify] := N
Text [PathTask]
Text [BuffersTask]
Text [FilesTask]
Text [BackgroundCharacter] := B0
Text [ScreenColors] := BlackOnWhite
EndDefineVariables
SetCustomControls Off
SetBackdrop Off
SetDefaultBitmap Off
If [CommandLine1] = -ReplaceFiles
SetReplacementInquiry Off
EndIf
If [CommandLine2] = -ReplaceFiles
SetReplacementInquiry Off
EndIf
If [CommandLine3] = -ReplaceFiles
SetReplacementInquiry Off
EndIf
If [InquireAboutSystemFileLocation] = NoCharacter
If DriveIsPresent [BootDrive] ;; if not, COMSPEC has been changed
NoSysFileConfirmation
EndIf
EndIf
If [AskBeforeFileReplacement] = NoCharacter
SetReplacementInquiry Off
EndIf
Do SetupInstalit
Do PrepareSystemReport
:Again
ClearScreen
;;TextBox @xy(Center,4)
;; Thanks for purchasing [ProductName].
;; To install [ProductName] double click on "Install" below.
;;EndTextBox
GetMenuChoice @xy(Center,10) UseHeader "MAIN MENU"
Install
;Install [ProductName] [ProductVersion]
Exit
;Exit without installing [ProductName]
EndGetMenuChoice
ClearScreen
InCase choice is
=2: Do ExitInstallation
EndInCase
QueFiles
aawin.exe
dos4gw.exe
mkfli.exe
aaplay.dll
pixar.dll
*.hlp
*.msg
*.pif
*.slo
*.tex
*.txt
*.via
*.vma
EndQueFiles
;;enque the correct executable file for this machine
If MathCoprocessorPresent
QueFiles
typefpu.exe
EndQueFiles
Else
QueFiles
typenofp.exe
EndQueFiles
EndIf
If QueSize = 0
GoTo Continue
EndIf
;;if < Windows 3.1 then install commdlg.dll
If WindowsVersion < 3.1
QueFiles
commdlg.dll
EndQueFiles
EndIF
;;check system requirements here
If [InsufficientSystem] = YesCharacter
Dialog [YesOrNo1] BlackOnWhite ;; Insufficient system notice
Analysis of your system has determined that it is
not compatible with [ProductName]. For a complete
summary, press YesCharacter.
Do you wish to continue anyway?
EndDialog
If [YesOrNo1] = NoCharacter
GoTo Again
Else
Do ShowSystemSummary
EndIf
EndIf
If [Installed] = YesCharacter
else
If [FixedDiskRequired] = YesCharacter
DetermineInstallationDrive QueSize RequireFixed
else
DetermineInstallationDrive QueSize
EndIf
[InstallationDirectory] := InstallationDrive:\[DefaultInstallationDirectory]
If [OfferInstallationDirectoryChoice] = YesCharacter
If [FixedDiskRequired] = YesCharacter
DetermineInstallationDirectory QueSize RequireFixed
else
DetermineInstallationDirectory QueSize
EndIf
else
EndIf
EndIf
GetQuedFiles [ExtractionOptions]
[Installed] := YesCharacter
If QueSize <> 0 ;; Some files were selected but not installed if <> 0
[Installed] := NoCharacter
UnqueAllFiles ;; Remove uninstalled files from que
Dialog ;; Message when unable to get all necessary files
Unable to successfully complete this option.
EndDialog
EndIf
;;delete typestry (for reinstall) and rename the executable
DeleteFiles
typestry.exe
EndDeleteFiles
If MathCoprocessorPresent
RenameFile [InstallationDirectory]\typefpu.exe to typestry.exe
Else
RenameFile [InstallationDirectory]\typenofp.exe to typestry.exe
EndIf
;;if < Windows 3.1 then move commdlg.dll to windows system directory
If WindowsVersion < 3.1
If FileExists [WindowsSystemDirectory]\commdlg.dll
Else
CopyFiles from [InstallationDirectory] to [WindowsSystemDirectory]
commdlg.dll
EndCopyFiles
DeleteFiles
commdlg.dll
EndDeleteFiles
EndIf
EndIF
;;write the rendermn.ini file
AppendFile [InstallationDirectory]\rendermn.ini
#
# Pixar application configuration defaults.
#
/errorpath [InstallationDirectory]\messages
/displaytype/framebuffer windows
/displaytype/file tiff
/display/tiff internal
/display/tiff/progress 1
/display/zfile internal
/display/zfile/progress 1
/display/shadow internal
/display/shadow/progress 1
/display/windows internal
/display/windows/progress 1
/display/bmp internal
/display/bmp/progress 1
/display/fliraw internal
/display/fliraw/progress 1
/display/tga internal
/display/tga/progress 1
/display/postscript internal
/display/postscript/progress 1
/display/cpostscript internal
/display/cpostscript/progress 1
/standardshaderpath .
/standardtexturepath .
/shaderpath .:@:[InstallationDirectory]
/texturepath .:@:[InstallationDirectory]
/shaderlib/standard standard.slb
/shaderlib/pixar pixar.slb
/prman/shadingrate 1.0
/prman/gridsize 256
/prman/texturememory 256
/prman/bucketsize 16 16
/standardvfxmasterpath [InstallationDirectory]\master
/vfxmasterpath .:@
/typestry/autosave 60
EndAppendFile
;;if there is no typbrwsr.ini write the default browser ini file
If FileExists [WindowsDirectory]\typbrwsr.ini
Else
AppendFile [WindowsDirectory]\typbrwsr.ini
[Palette]
0=[InstallationDirectory]\STARTER\SHADOWMA.VIA
1=[InstallationDirectory]\STARTER\BACKGROU\SKY.VIA
2=[InstallationDirectory]\STARTER\BASIC\PLASTIC.VIA
3=[InstallationDirectory]\STARTER\BUILDING\CONCRETE.VIA
4=[InstallationDirectory]\STARTER\BUILDING\PLASTER.VIA
5=[InstallationDirectory]\STARTER\BUILDING\BRICK\RED.VIA
6=[InstallationDirectory]\STARTER\METAL\BRUSHED\COPPER.VIA
7=[InstallationDirectory]\STARTER\METAL\BRUSHED\GOLD.VIA
8=[InstallationDirectory]\STARTER\METAL\SMOOTH\CHROME.VIA
9=[InstallationDirectory]\STARTER\PATTERN\CHECKER.VIA
10=[InstallationDirectory]\STARTER\PATTERN\POLKADOT.VIA
11=[InstallationDirectory]\STARTER\PATTERN\RAMP\CYANMAGE.VIA
12=[InstallationDirectory]\STARTER\STONE\GRANITE\GREY.VIA
13=[InstallationDirectory]\STARTER\STONE\GRANITE\ROSE.VIA
14=[InstallationDirectory]\STARTER\STONE\MARBLE\BLACK.VIA
15=[InstallationDirectory]\STARTER\STONE\MARBLE\GREEN.VIA
16=[InstallationDirectory]\STARTER\STONE\MARBLE\RED.VIA
17=[InstallationDirectory]\STARTER\WOOD\MAPLE.VIA
18=[InstallationDirectory]\STARTER\WOOD\OAK.VIA
19=[InstallationDirectory]\VALIS\DEMO1\BLISTERP.VIA
20=[InstallationDirectory]\VALIS\DEMO1\CERAMICT.VIA
21=[InstallationDirectory]\VALIS\DEMO1\CRAYONIL.VIA
22=[InstallationDirectory]\VALIS\DEMO1\DRAGONHI.VIA
23=[InstallationDirectory]\VALIS\DEMO1\RIDGEDAL.VIA
24=[InstallationDirectory]\VALIS\DEMO1\TORTOISE.VIA
[RadioButtons]
FileNames=2
EndAppendFile
EndIf
;;add or modify the extension list in win.ini for typestry
ModifyTextFile [WindowsDirectory]\win.ini
InSection [Extensions]
AddOrChangeLineWith (typ,=,^.typ) as "typ=[InstallationDirectory]\typestry.exe ^.typ" At Beginning
EndModifyTextFile
;;make a pixar group and add typestry.exe to it
BuildProgramGroup "Pixar" PIXAR.GRP
[InstallationDirectory]\typestry.exe "[ProductName] [ProductVersion]"
[InstallationDirectory]\aawin.exe "AAPlay 1.1" [InstallationDirectory]\aawin.exe 2
EndBuildProgramGroup
Do ExitInstallation
:Continue
GoTo Again
Procedure ShowHelpInfo
Dialog PressAKey [SpecialPopupColors] ;; How to reach technical support
For assistance, dial (555)555-1212 and ask for
Customer Service. You are installing
[ProductName].
You can get a summary of your computer system
by pressing YesCharacter. This information will be
important should you call Customer Service.
EndDialog
If [YesOrNo1] = YesCharacter
Do ShowSystemSummary
EndIf
EndProcedure
Procedure ShowSystemSummary ;; System summary - change with care.
Dialog PressAKey [SpecialPopupColors]
.cHERE IS A SUMMARY OF YOUR SYSTEM
.c[String8] ;; notes whether any incompatibilities were found
Operating System Version: [OSVersionSummary]
CPU Type: [CPUTypeSummary]
Display Adapter: [DisplayAdapterSummary]
Math Coprocessor: [MathCoprocessorStatus]
Main Memory Present: [SystemMemorySummary]
Extended Memory Present: ExtendedMemoryPresentK
Installation Drive: [InstallationDriveSummary]
Network: [NetworkActive]
[String9] ;; information about network suitability
EndDialog
EndProcedure
Procedure PrepareSystemReport
[InsufficientSystem] := NoCharacter
If OSVersion < [MinimumOSVersion]
[OSVersionSummary] := OSVersion (need at least [MinimumOSVersion])
[InsufficientSystem] := YesCharacter
else
[OSVersionSummary] := OSVersion
EndIf
If MainMemory < [MinimumSystemMemoryRequiredPresent]
[SystemMemorySummary] := MainMemoryK (need at least [MinimumSystemMemoryRequiredPresent]K)
[InsufficientSystem] := YesCharacter
else
[SystemMemorySummary] := MainMemoryK
EndIf
If 808X
If [Allow808X] = YesCharacter
[CPUTypeSummary] := 808x
else
[CPUTypeSummary] := 808x (not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If 80286
[CPUTypeSummary] := 80286
EndIf
If 80386
[CPUTypeSummary] := 80386
EndIf
If 80486
[CPUTypeSummary] := 80486
EndIf
If [CPUTypeSummary] = BlankString
[CPUTypeSummary] := 808x
EndIf
If MicroChannel
[CPUTypeSummary] := [CPUTypeSummary] (in MicroChannel Architecture)
else
[CPUTypeSummary] := [CPUTypeSummary] (ISA or EISA Architecture)
EndIf
If CGA
If [AllowCGA] = YesCharacter
[DisplayAdapterSummary] := CGA
else
[DisplayAdapterSummary] := CGA (not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If MDA
If [AllowMDA] = YesCharacter
[DisplayAdapterSummary] := MDA
else
[DisplayAdapterSummary] := MDA (not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If EGA
[DisplayAdapterSummary] := EGA
EndIf
If VGA
[DisplayAdapterSummary] := VGA
EndIf
If HGC
[DisplayAdapterSummary] := HGC
EndIf
If HGCPlus
[DisplayAdapterSummary] := HGC Plus
EndIf
If Network
[NetworkActive] := Network Active
else
[NetworkActive] := No Network Active
EndIf
If Novell
[NetworkActive] := Novell [NetworkActive]
EndIf
If [InstallationDirectory] <> BlankString
[InstallationDriveSummary] := InstallationDrive (FreeSpaceOnDrive InstallationDrive bytes free)
else
[InstallationDriveSummary] := (Not Selected)
EndIf
If MathCoprocessorPresent
[MathCoprocessorStatus] := Present
else
If [MathCoprocessorRecommended] = YesCharacter
[MathCoprocessorStatus] := Not Present But Recommended
If [CompatibilityNoticeGiven] = YesCharacter
else
Dialog ;; Notice if math coprocessor recommended
[ProductName] needs a math coprocessor
for best performance. Your system does not
contain one.
EndDialog
EndIf
else
[MathCoprocessorStatus] := Not Present
EndIf
EndIf
If [InsufficientSystem] = YesCharacter
[String8] := (Please note the listed incompatibilities)
EndIf
If [NetworkInstallation] contains DisallowNetwork
[String9] := " (You cannot install this version on a network drive)"
EndIf
[CompatibilityNoticeGiven] := YesCharacter
EndProcedure
Procedure GetNewCopyOfFile
:StartOver
Dialog [String1] 12 UseHeader "Getting a single file" UpperCase
Please enter the name of the file
you need a new copy of or leave
blank to exit.
EndDialog
If [String1] = BlankString
Exit
EndIf
If [String1] contains \
Popup Please enter just the file name with no path.
GoTo StartOver
EndIf
If FileIsInLibrary [String1]
else
Popup Cannot find a file named [String1].
GoTo StartOver
EndIf
QueFiles
[String1]
EndQueFiles
GetQuedFiles [ExtractionOptions]
EndProcedure
Procedure ExitInstallation
ClearScreen
;;If [Installed] = YesCharacter
;; [Number1] := [MinimumBuffersSetting] + [MinimumFilesSetting]
;; If [Number1] <> 0
;; ModifyConfigSys
;; SetBuffersToAtLeast [MinimumBuffersSetting]
;; SetFilesToAtLeast [MinimumFilesSetting]
;; EndModifyConfigSys
;; EndIf
;; NoSysFileConfirmation ;; since already inquired once
;; If [InstallationDirectory] <> BlankString
;; If [AddInstallDirectoryToPath] = YesCharacter
;; ModifyAutoexecBat
;; AddPathComponent [InstallationDirectory] at End ;; or "at Beginning"
;; EndModifyAutoexecBat
;; EndIf
;; EndIf
;; If BootFilesModified
;; else
;; Dialog
;; No changes were necessary to AUTOEXEC.BAT or CONFIG.SYS.
;; EndDialog
;; EndIf
;;EndIf
If [ProgramToRun] <> BlankString
Dialog [YesOrNo1] ;; Explains purpose of program to be run, if any
[ProgramToRun] does <insert purpose here>.
Do you wish to run it now?
EndDialog
If [YesOrNo1] = YesCharacter
Run [ProgramToRun] SwapOut
If OSErrorCode <> 0
Dialog ;; Message if OS unable to Run program
Unable to run [ProgramToRun].
Error code was OSErrorCode.
EndDialog
else
If OSExitCode <> 0
Dialog ;; Message if program ran but returned non-zero code
[ProgramToRun] executed but was not successful.
Return code OSExitCode.
EndDialog
EndIf
EndIf
EndIf
EndIf
If [ReadmeFileName] <> BlankString
Dialog [YesOrNo1] ;; Ask whether to browse readme file, if any
[ReadmeFileName] contains important information.
Do you wish to read it now?
EndDialog
If [YesOrNo1] = YesCharacter
If FileExists [ReadmeFileName]
BrowseFile [ReadmeFileName]
else
Popup Sorry, readme file [ReadMeFileName] is missing.
EndIf
EndIf
EndIf
Popup Typestry Installation Complete
SoLong Quietly
EndProcedure
Procedure SetupInstalit
SetCoordinatesTo 80x25
SetScreenAttrTo [ScreenColors]
SetBackgroundCharTo [BackgroundCharacter]
Do PrepareSystemReport
If [UseShadows] = YesCharacter
SetShadows On
else
SetShadows Off
EndIf
If [InquireAboutSystemFileLocation] = NoCharacter
NoSysFileConfirmation
EndIf
SetMainBorderTo [MainBorder]
SetPopupBorderTo [PopupBorder]
SetModifyModeTo [ModifyMode]
SetShadowAttrTo DarkGrayOnBlack
SetScreenAttrTo [ScreenColors]
SetPopupAttrTo [PopupColors]
SetAttentionAttrTo [AttentionColors]
SetTopLineAttrTo [TopLineColors]
SetBottomLineAttrTo [BottomLineColors]
SetTopLineTo [TopLine]
SetExitMessageTo [ExitMessage]
SetAllowExit Off
EndProcedure