; PS5333.INF for S3 ProSavageDDR with ICD and S3Display, S3Gamma2, S3Info2 & S3Overlay
;
; Windows XP\Win2000 installation file (.INF) for the S3 Graphics, Inc. display driver 
; for ProSavageDDR
;
; Copyright (c) 1999, 2000 By S3 Incorporated.
; Copyright (c) 2001, 2002, 2003, 2004 By S3 Graphics, Inc.
;

[Version]
Signature="$CHICAGO$"
Class=Display
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Provider=%INF_Provider%
CatalogFile=s3psddr.cat
DriverVer=05/20/2004, 6.14.10.0026
;13.94.26

[ControlFlags]
ExcludeFromSelect = PCI\VEN_5333&DEV_8D04
									 
;
;  Disk and Directory sections
;

[DestinationDirs]
DefaultDestDir      = 11
S3Psddr.Miniport   = 12   ; drivers
S3Psddr.Display    = 11   ; system32
S3Psddr.Icd        = 11
S3DispSys.Copy      = 11
S3DispHlp.Copy      = 18
S3UninstSys.Copy    = 11
GAMMA2copy.sys      = 11
GAMMA2copy.hlp      = 18
Info2Sys.Copy	    = 11
Info2Hlp.Copy	    = 18
OverlaySys.Copy	    = 11
OverlayHlp.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
S3Displ2.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 S3Overlay
s3ovrlay.dll    = 1
s3ovrlay.cfg    = 1
s3ovlwst.hlp    = 1
s3ovlchs.hlp    = 1
s3ovlcht.hlp    = 1
s3ovljpn.hlp    = 1
s3ovlkor.hlp    = 1
;  For S3Uninst
S3uninst.exe    = 1
VTPreset.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 ProSavageDDR = S3Psddr, PCI\VEN_5333&DEV_8D04

;
; General installation section
;

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

;
; File sections
;

[S3Psddr.Miniport]
s3gnbm.sys      ; miniport driver

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

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

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

[S3Psddr.GeneralConfigData]
MaximumDeviceMemoryConfiguration=128

;
; Service Installation
;

[S3Psddr.Services]
AddService = S3Psddr, 0x00000002, S3Psddr_Service_Inst, S3Psddr_EventLog_Inst


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

[S3Psddr_EventLog_Inst]
AddReg = S3Psddr_EventLog_AddReg

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

;
; Software Installation
;

[S3Psddr.SoftwareSettings] 
AddReg = S3Psddr_SoftwareDeviceSettings
DelReg = S3Psddr_UserPreferences   ; user-selected preferences


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

[S3Psddr_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     = "S3Psddr"
  ;; 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"

; For S3Overlay
OVERLAYCLS = "{6c146c80-66e8-11d3-88af-00600837776e}"
OVERLAYNAME= "S3Overlay"
OVERLAYKEY = "SOFTWARE\S3\S3Overlay"

;;
;;   S3 Display
;;

[S3DispSys.Copy]
S3Disply.dll
S3Disply.cfg
S3Displ2.cfg

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

[S3UninstSys.Copy]
S3uninst.exe
VTPreset.exe

[Info2Sys.Copy]
S3Info2.dll
S3Info2.cfg

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

[OverlaySys.Copy]
S3Ovrlay.dll
S3Ovrlay.cfg

[OverlayHlp.Copy]
s3ovlwst.hlp
s3ovlchs.hlp
s3ovlcht.hlp
s3ovljpn.hlp
s3ovlkor.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,,0
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%\S3Displ*.cfg
HKLM,"Software\S3\S3Uninst\S3Display","23.DelFiles",,%17%\S3Disply.?nf
HKLM,"Software\S3\S3Uninst\S3Display","23.DelFiles",,%11%\VTPreset.exe
HKLM,"Software\S3\S3Uninst\S3Display","30.DelKey",,"HKLM\Software\Microsoft\Windows\CurrentVersion\Run\VTPreset"

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

;; ---------- The following section is for NT/Win2K S3Overlay ------------
[OverlayNT.AddReg]
HKLM,%CURVER%\Uninstall\S3Overlay,DisplayName,,%OVERLAYNAME%
HKLM,%CURVER%\Uninstall\S3Overlay,UninstallString,,"s3uninst.exe -reg 5 'HKLM\Software\S3\S3Uninst\S3Overlay'"
HKCR,CLSID\%OVERLAYCLS%,,,"S3Overlay Property Sheet"
HKCR,CLSID\%OVERLAYCLS%\InProcServer32,,,S3Ovrlay.dll
HKCR,CLSID\%OVERLAYCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Overlay,"",,%OVERLAYCLS%
HKLM,%OVERLAYKEY%,Filename,,S3Ovrlay.dll

;; -------------------- Uninstallation information ---------------------
HKLM,"Software\S3\S3Uninst\S3Overlay","10.DelKey",,HKLM\%OVERLAYKEY%
HKLM,"Software\S3\S3Uninst\S3Overlay","11.DelKey",,HKCR\CLSID\%OVERLAYCLS%
HKLM,"Software\S3\S3Uninst\S3Overlay","12.DelKey",,HKLM\%CURVER%\Uninstall\S3Overlay
HKLM,"Software\S3\S3Uninst\S3Overlay","13.DelKey",,HKLM\%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Overlay
HKLM,"Software\S3\S3Uninst\S3Overlay","20.DelFiles",,%11%\S3Ovrlay.dll
HKLM,"Software\S3\S3Uninst\S3Overlay","21.DelFiles",,%18%\S3Ovl*.hlp
HKLM,"Software\S3\S3Uninst\S3Overlay","22.DelFiles",,%11%\S3Ovrlay.cfg
HKLM,"Software\S3\S3Uninst\S3Overlay","23.DelFiles",,%17%\S3Ovrlay.?nf

HKLM,Software\Microsoft\Windows\CurrentVersion\Run,VTPreset,,"VTPreset.exe"
