; TW5333.INF for S3 with ICD and S3Display, S3Gamma2, S3Info2 
;
; Windows XP\Win2000 installation file (.INF) for the S3 Graphics, Inc. display driver 
; for Twister and Twister K.
;
; Copyright (c) 1999, 2000 By S3 Incorporated.
; Copyright (c) 2001, 2002 By S3 Graphics, Inc.
;

[Version]
Signature="$CHICAGO$"
Class=Display
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Provider=%INF_Provider%
CatalogFile=s3twistr.cat
DriverVer=11/22/2002, 6.13.10.1102
;13.93.62.1


[ControlFlags]
ExcludeFromSelect = PCI\VEN_5333&DEV_8D01
ExcludeFromSelect = PCI\VEN_5333&DEV_8D02

									 
;
;  Disk and Directory sections
;

[DestinationDirs]
DefaultDestDir      = 11
S3Twistr.Miniport   = 12   ; drivers
S3Twistr.Display    = 11   ; system32
S3Twistr.Icd        = 11
S3DispSys.Copy      = 11
S3DispHlp.Copy      = 18
S3UninstSys.Copy    = 11
GAMMA2copy.sys      = 11
GAMMA2copy.hlp      = 18
Info2Sys.Copy	    = 11
Info2Hlp.Copy	    = 18

[SourceDisksNames.x86]
1 = %DiskId%,,,""

[SourceDisksFiles]
s3gnbm.sys       = 1 ;all files are on Disk 1
s3gnb.dll        = 1
; For ICD
nbicdnt.dll     = 1
; For S3Display
S3Disply.dll    = 1
S3Disply.cfg    = 1
S3DspWST.hlp    = 1
S3DspCHS.hlp    = 1
S3DspCHT.hlp    = 1
S3DspJPN.hlp    = 1
S3DspKOR.hlp    = 1

;  For S3Gamma2
S3Gamma2.dll    = 1
S3Gamma2.cfg    = 1
S3Gm2WST.hlp    = 1
S3Gm2CHS.hlp    = 1
S3Gm2CHT.hlp    = 1
S3Gm2JPN.hlp    = 1
S3Gm2KOR.hlp    = 1
;  For S3Info2
s3info2.dll     = 1
s3info2.cfg     = 1
s3in2wst.hlp    = 1
s3in2chs.hlp    = 1
s3in2cht.hlp    = 1
s3in2jpn.hlp    = 1
s3in2kor.hlp    = 1

;  For S3Uninst
S3uninst.exe    = 1

;
; Driver information
;

[Manufacturer]
%S3%   = S3.Mfg

;
; This section should be modified to reflect the chip strings the
; user will see in the Displays applet when the new driver is being
; installed from the driver diskette.
;
[S3.Mfg]
S3 Graphics Twister = S3Twistr, PCI\VEN_5333&DEV_8D01
S3 Graphics Twister K = S3Twistr, PCI\VEN_5333&DEV_8D02

;
; General installation section
;

[S3Twistr]
CopyFiles = S3Twistr.Miniport, S3Twistr.Display, S3Twistr.Icd, S3DispHlp.Copy, S3DispSys.Copy, Info2Hlp.Copy, Info2Sys.Copy, S3UninstSys.Copy, GAMMA2copy.hlp, GAMMA2copy.sys
AddReg    = S3Twistr.AddRegs, S3DispNT.AddReg, S3Gamma2NT.AddReg, Info2NT.AddReg

;
; File sections
;

[S3Twistr.Miniport]
s3gnbm.sys      ; miniport driver

[S3Twistr.Display]
s3gnb.dll       ; Savage4 display driver

[S3Twistr.Icd]
nbicdnt.dll    ; OpenGL ICD driver

[S3Twistr.AddRegs]
HKLM,Software\Microsoft\%WinNTDir%\CurrentVersion\OpenGLdrivers,SavageNB,,"nbicdnt"

[S3Twistr.GeneralConfigData]
MaximumDeviceMemoryConfiguration=128

;
; Service Installation
;

[S3Twistr.Services]
AddService = S3Twistr, 0x00000002, S3Twistr_Service_Inst, S3Twistr_EventLog_Inst

[S3Twistr_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary  = %12%\s3gnbm.sys

[S3Twistr_EventLog_Inst]
AddReg = S3Twistr_EventLog_AddReg

[S3Twistr_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\s3gnbm.sys"
HKR,,TypesSupported,0x00010001,7


;
; Software Installation
;

[S3Twistr.SoftwareSettings] 
AddReg = S3Twistr_SoftwareDeviceSettings
DelReg = S3Twistr_UserPreferences   ; user-selected preferences


[S3Twistr_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,      %REG_MULTI_SZ%, s3gnb
HKR,, VgaCompatible,                %REG_DWORD%,    0
HKR,, CapabilityOverride,           %REG_DWORD%,    0
HKR,, SupportIcd,                   %REG_DWORD%,    1
HKR,, PruningMode,                  %REG_DWORD%,    1
HKR,, bSupportCRTCalibration,       %REG_DWORD%,    0

[S3Twistr_UserPreferences]
HKR,, UseDDCInfo
HKR,, NtscTvPositionX
HKR,, NtscTvPositionY
HKR,, Pal6TvPositionX
HKR,, Pal6TvPositionY
HKR,, Pal8TvPositionX
HKR,, Pal8TvPositionY
HKR,, DisplaysActivePreference
HKR,, TvStandardPreference
HKR,, DdcMaxRefresh
HKR,, GammaFor16BppModes
HKR,, GammaFor32BppModes

[Strings]

;
; Non-Localizable Strings
;

REG_MULTI_SZ   = 0x00010000
REG_DWORD      = 0x00010001

;
; Localizable Strings
;

DiskId         = "S3 Graphics, Inc. Installation DISK (VIDEO)"
S3             = "S3 Graphics, Inc."
INF_Provider   = "S3 Graphics, Inc."
WinNTDir       = "Windows NT"

;  For S3Display
CtrlFld    = "Controls Folder"
CURVER     = "Software\Microsoft\Windows\CurrentVersion"
S3DISPCLS  = "{a3b69838-fc13-48b9-9438-beaf0eda660a}"
S3DISPNAME = "S3Display"
S3DSPKEY   = "SOFTWARE\S3\S3Display"

;  For S3Gamma
S3SRVC     = "S3Twistr"
  ;; Strings specific to this utility
SGm2Desc  = "S3Gamma2"
GM2CLSID  = "{46b23a80-2895-11d3-bfcb-00aa0022f384}"
GM2NAME   = "S3Gamma2"
S3G2KEY   = "SOFTWARE\S3\S3Gamma2"

; For S3Info2
INFO2CLS   = "{48429801-16E6-11d4-8ECD-00609784BD62}"
INFO2NAME  = "S3Info2"
INFO2KEY   = "SOFTWARE\S3\S3Info2"


;;
;;   S3 Display
;;

[S3DispSys.Copy]
S3Disply.dll
S3Disply.cfg

[S3DispHlp.Copy]
S3DspWST.hlp
S3DspCHS.hlp
S3DspCHT.hlp
S3DspJPN.hlp
S3DspKOR.hlp

[S3UninstSys.Copy]
S3uninst.exe

[Info2Sys.Copy]
S3Info2.dll
S3Info2.cfg

[Info2Hlp.Copy]
s3in2wst.hlp
s3in2chs.hlp
s3in2cht.hlp
s3in2jpn.hlp
s3in2kor.hlp


[S3DispNT.AddReg]
HKLM,%CURVER%\Uninstall\S3Display,DisplayName,,%S3DISPNAME%
HKLM,%CURVER%\Uninstall\S3Display,UninstallString,,"s3uninst.exe -reg 5 'HKLM\Software\S3\S3Uninst\S3Display'"
HKCR,CLSID\%S3DISPCLS%,,,"S3Display Property Sheet"
HKCR,CLSID\%S3DISPCLS%\InProcServer32,,,S3Disply.dll
HKCR,CLSID\%S3DISPCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Display,"",,%S3DISPCLS%
HKLM,%S3DSPKEY%,Installed,,1
HKLM,%S3DSPKEY%,Filename,,S3Disply.dll
HKLM,%S3DSPKEY%,UtilityName,,%S3DISPNAME%
HKLM,%S3DSPKEY%,ConfigNum,,3
HKLM,%S3DSPKEY%,URL,,http://www.s3graphics.com

HKLM,SOFTWARE\S3\S3Control,TrayIcon,,"none"

;; -------------------- Uninstallation information ---------------------
HKLM,"Software\S3\S3Uninst\S3Display","10.DelKey",,HKLM\%S3DSPKEY%
HKLM,"Software\S3\S3Uninst\S3Display","11.DelKey",,HKCR\CLSID\%S3DISPCLS%
HKLM,"Software\S3\S3Uninst\S3Display","12.DelKey",,HKLM\%CURVER%\Uninstall\S3Display
HKLM,"Software\S3\S3Uninst\S3Display","13.DelKey",,HKLM\%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Display
HKLM,"Software\S3\S3Uninst\S3Display","20.DelFiles",,%11%\S3Disply.dll
HKLM,"Software\S3\S3Uninst\S3Display","21.DelFiles",,%18%\S3Dsp*.hlp
HKLM,"Software\S3\S3Uninst\S3Display","22.DelFiles",,%11%\S3Disply.cfg
HKLM,"Software\S3\S3Uninst\S3Display","23.DelFiles",,%17%\S3Disply.?nf

;;
;;   S3 Gamma2
;;

[GAMMA2copy.sys]
S3Gamma2.dll
S3Gamma2.cfg

[GAMMA2copy.hlp]
S3Gm2WST.hlp
S3Gm2CHS.hlp
S3Gm2CHT.hlp
S3Gm2JPN.hlp
S3Gm2KOR.hlp

[S3Gamma2NT.AddReg]
HKLM,"%CURVER%\Uninstall\S3Gamma2",DisplayName,,"%SGm2Desc%"
HKLM,"%CURVER%\Uninstall\S3Gamma2","UninstallString",,"s3uninst.exe -reg 5 'HKLM\Software\S3\S3Uninst\S3Gamma2'"
HKCR,"CLSID\%GM2CLSID%",,,"S3Gamma2 Property Sheet"
HKCR,"CLSID\%GM2CLSID%\InProcServer32",,,"S3Gamma2.dll"
HKCR,"CLSID\%GM2CLSID%\InProcServer32",ThreadingModel,,"Apartment"
HKLM,"%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Gamma2","",,"%GM2CLSID%"
HKLM,"%S3G2KEY%","Installed",,"1"
HKLM,"%S3G2KEY%","Filename",,"S3Gamma2.dll"
HKLM,"%S3G2KEY%","UtilityName",,"%GM2NAME%"
HKLM,"%S3G2KEY%","URL",,"http://www.s3graphics.com"

;; ---------- Following lines are uninstall information ------------
HKLM,"Software\S3\S3Uninst\S3Gamma2","10.DelKey",,"HKLM\%S3G2KEY%"
HKLM,"Software\S3\S3Uninst\S3Gamma2","11.DelKey",,"HKCR\CLSID\%GM2CLSID%"
HKLM,"Software\S3\S3Uninst\S3Gamma2","12.DelKey",,"HKLM\%CURVER%\Uninstall\S3Gamma2"
HKLM,"Software\S3\S3Uninst\S3Gamma2","13.DelKey",,"HKLM\%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Gamma2"
HKLM,"Software\S3\S3Uninst\S3Gamma2","20.DelFiles",,"%11%\S3Gamma2.dll"
HKLM,"Software\S3\S3Uninst\S3Gamma2","21.DelFiles",,"%18%\S3Gm2*.hlp"
HKLM,"Software\S3\S3Uninst\S3Gamma2","22.DelFiles",,"%11%\S3Gamma2.cfg"
HKLM,"Software\S3\S3Uninst\S3Gamma2","23.DelFiles",,"%17%\S3Gamma2.?nf"

;; ------------------ The following lines is NT specific ------------------


;; ---------- The following section is for NT/Win2K S3Info2 ------------
[Info2NT.AddReg]
HKLM,%CURVER%\Uninstall\S3Info2,DisplayName,,%INFO2NAME%
HKLM,%CURVER%\Uninstall\S3Info2,UninstallString,,"s3uninst.exe -reg 5 'HKLM\Software\S3\S3Uninst\S3Info2'"
HKCR,CLSID\%INFO2CLS%,,,"S3Info2 Property Sheet"
HKCR,CLSID\%INFO2CLS%\InProcServer32,,,S3Info2.dll
HKCR,CLSID\%INFO2CLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Info2,"",,%INFO2CLS%
HKLM,%INFO2KEY%,Filename,,S3Info2.dll
HKLM,%INFO2KEY%,URL,,http://www.s3graphics.com

;; -------------------- Uninstall information, S3Info2 ---------------------
HKLM,"Software\S3\S3Uninst\S3Info2","10.DelKey",,HKLM\%INFO2KEY%
HKLM,"Software\S3\S3Uninst\S3Info2","11.DelKey",,HKCR\CLSID\%INFO2CLS%
HKLM,"Software\S3\S3Uninst\S3Info2","12.DelKey",,HKLM\%CURVER%\Uninstall\S3Info2
HKLM,"Software\S3\S3Uninst\S3Info2","13.DelKey",,HKLM\%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Info2
HKLM,"Software\S3\S3Uninst\S3Info2","20.DelFiles",,%11%\S3Info2.dll
HKLM,"Software\S3\S3Uninst\S3Info2","21.DelFiles",,%18%\S3In2*.hlp
HKLM,"Software\S3\S3Uninst\S3Info2","22.DelFiles",,%11%\S3Info2.cfg
HKLM,"Software\S3\S3Uninst\S3Info2","23.DelFiles",,%17%\S3Info2.?nf