; TW5333.INF for Twister/Twister K for NT 4.0
;
; Installation inf for the S3 Graphics, Inc. display driver for Twister/TwisterK.
;
; Copyright (C) 1999, 2000 S3 Incorporated.
; Copyright (c) 2001 by S3 Graphics, Inc.

[Version]
Signature="$CHICAGO$"
Provider=%S3%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=10/05/2001, 13.10.02

[DestinationDirs]
DefaultDestDir   = 11
S3Inc.Miniport   = 12   ; drivers
S3Inc.Display    = 11   ; system32
S3Inc.Inf        = 17   ; Windows INF directory

S3Inc.Icd           = 11

S3DispSys.Copy      = 11
S3DispHlp.Copy      = 18
S3UninstSys.Copy    = 11
GAMMA2copy.sys      = 11
GAMMA2copy.hlp      = 18
Info2Sys.Copy	    = 11
Info2Hlp.Copy	    = 18

;
; Driver information
;

[Manufacturer]
%S3%   = S3.Mfg

;
; Device Section
;
; 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 = S3Inc

;
; General installation section
;

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

;
; File sections
;

[S3Inc.Miniport]
s3nbm.sys      ; miniport driver

[S3Inc.Display]
s3nb.dll    	 ; SavageNB display driver
s3hotkey.exe     ; MOBILE_PRODUCTS, NT 4.0: Enable for hotkey app

[S3Inc.Inf]
tw5333.inf    ; Windows INF directory

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

[S3Inc.AddRegs]
HKLM,Software\S3\S3RemDrv,INF_Filename,,"tw5333.inf"
HKLM,Software\Microsoft\%WinNTDir%\CurrentVersion\OpenGLdrivers,SavageNB,,"nbicdnt"

;
; Service Installation
;

[S3Inc.Services]
AddService = S3Inc, 0x00000002, S3Inc_Service_Inst, S3Inc_EventLog_Inst

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

[S3Inc_EventLog_Inst]
AddReg = S3Inc_EventLog_AddReg

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


;
; Software Installation
;

[S3Inc.SoftwareSettings]
AddReg = S3Inc_HotkeySettings   ; mobile: hotkey applet file section
AddReg = S3Inc_SoftwareDeviceSettings
DelReg = S3Inc_UserPreferences   ; user-selected preferences


[S3Inc_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,     %REG_MULTI_SZ%, s3nb
HKR,, SupportIcd,                  %REG_DWORD%,    1
HKR,, VgaCompatible,               %REG_DWORD%,    0

[S3Inc_HotkeySettings]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run, S3Hotkey, %REG_SZ%, "s3hotkey.exe"

[S3Inc_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


;
; Source file information
;

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

[SourceDisksFiles]
s3nbm.sys       = 1                     ; all files on Disk 1
s3nb.dll        = 1
tw5333.inf    = 1
s3hotkey.exe    = 1      		; MOBILE_PRODUCTS

; 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.inf    = 1
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

[Strings]

;
; Non-Localizable Strings
;

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = System\CurrentControlSet\Services

;
; Localizable Strings
;

DiskId      = "S3 Graphics, Inc. Installation DISK (VIDEO)"
GraphAdap   = "Graphics Adapter"
S3          = "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     = "S3Inc"
  ;; 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"

[S3DispSys.Copy]
S3Disply.dll
S3Disply.cfg

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

[S3UninstSys.Copy]
S3uninst.exe

[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,,0
HKLM,%S3DSPKEY%,URL,,http://www.s3graphics.com

;; -------------------- 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

[Info2Sys.Copy]
S3Info2.dll
S3Info2.cfg

[Info2Hlp.Copy]
s3in2wst.hlp
s3in2chs.hlp
s3in2cht.hlp
s3in2jpn.hlp
s3in2kor.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 ------------------
HKLM,"SYSTEM\CurrentControlSet\Services\%S3SRVC%\Device0","GammaSupportEnabled",65537,1,0,0,0

;; ---------- 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
HKLM,%INFO2KEY%,UMAEnabled,,ON

;; -------------------- 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
