; Installs the Chrome3 Suite
; Copyright (c) 2011 S3 Graphics Co., Ltd.
;----------------------------------------------------------------------------

[version]
signature="$CHICAGO$"
SetupClass=NOTPnP
Provider=%S3%

[SourceDisksNames]
1="Chrome3 Suite", , 0001

[SourceDisksFiles]
;; chrome3
chrome3.exe=1
chrome3U.tip=1
chrome3U.cfg=1

;; S3Hotkey
S3Funkey.svc = 1
S3Hotkey.dll = 1
S3HotkeyU.cfg = 1
S3HotkeyU.tip = 1

;; portal
s3launch.dll=1
s3launchU.cfg=1

;; context menu
S3Ctxt.dll=1

;; control panel applet
S3Chrome3CPL.cpl=1

;; s3cfg3d
S3Cfg3d.dll=1
S3Cfg3dU.cfg=1
s3cfg3dU.tip=1
S3MultiChrome.dll     = 1

;; s3chromo
s3chromo.dll=1
s3chromoU.cfg=1
S3ChromoU.tip=1

;; s3disply
S3Disply.dll=1
S3DisplyU.cfg=1
S3DisplyU.tip=1

;; s3gamm2
S3Gamma2.dll=1
S3Gamma2U.cfg=1
S3gamma2U.tip=1

;; S3info
s3info2.dll=1
s3info2U.cfg=1
S3Info2U.tip=1

;; S3ColorPlus
s3ovrlay.dll=1
s3ovrlayU.cfg=1
S3OvrlayU.tip=1

;; S3RefLock
S3Rflock.dll=1
S3RflockU.cfg=1
S3ReflockU.tip=1

;; S3PowerWise
S3Power.dll=1
S3PowerU.cfg=1
S3PowerU.tip=1

;; Catalogs
tree.dir=1
Tray.dir=1
Chrome3.dir=1
Banner.dir=1

;; Skins
StdBannerShellbg_Wide.bmp = 1, skins\DefaultSkin		;; %DefaultSkin%
S3BannerBg_Wide.bmp = 1, skins\DefaultSkin		;; %DefaultSkin%
S3BannerCol_Wide.bmp = 1, skins\DefaultSkin		;; %DefaultSkin%
S3BannerExp_Wide.bmp = 1, skins\DefaultSkin		;; %DefaultSkin%
skin.dat = 1, skins\DefaultSkin		;; %DefaultSkin%

;; S3Hotplug
s3loadsv.svc	= 1
s3hotplug.dll	= 1

;; Uninstall
chrome3.inf	= 1

[DestinationDirs]
S3Hotkey.Files=16422, %S3Path%
Cfg3D.Files=16422, %S3Path%
Chromo.Files=16422, %S3Path%
Disply.Files=16422, %S3Path%
Gamma2.Files=16422, %S3Path%
Info2.Files=16422, %S3Path%
ColorPlus.Files=16422, %S3Path%
RefLock.Files=16422, %S3Path%
PowerWise.Files=16422, %S3Path%
Chrome3.Files=16422, %S3Path%
Catalog.Files=16422, %S3Path%
Portal.Files=16422, %S3Path%
S3CtxtSys.Files=16422, %S3Path%
S3Cpl.Files=11
DefaultSkin.Files=16422, %S3Path%\%DefaultSkin%
S3Hotplug.Files = 16422, %S3Path%
Uninstall.Files = 16422, %S3Path%
TrunkLegacy.Files = 16422, %S3Path%

;; win9x
[DefaultInstall]
CopyFiles = Cfg3D.Files, Chromo.Files, Disply.Files, Gamma2.Files, Info2.Files, ColorPlus.Files, RefLock.Files, PowerWise.Files, Chrome3.Files, Catalog.Files, DefaultSkin.Files, Portal.Files, S3CtxtSys.Files, S3Cpl.Files, S3Hotkey.Files, S3Hotplug.Files, Uninstall.Files
DelFiles = TrunkLegacy.Files
AddReg    = Cfg3D.Regs, Chromo.Regs, Disply.Regs, Gamma2.Regs, Info2.Regs, ColorPlus.Regs, RefLock.Regs, S3PowerWise.Regs, Chrome3.Regs, S3Context.Regs, S3Hotkey.Regs, HotPlug.Regs, Uninstall.Regs
DelReg    = S3Info3.Del, Chrome2.Del, TrunkLegacy.Del, Uninstall.Regs

[DefaultUnInstall]
DelFiles = Cfg3D.Files, Chromo.Files, Disply.Files, Gamma2.Files, Info2.Files, ColorPlus.Files, RefLock.Files, PowerWise.Files, Chrome3.Files, Catalog.Files, DefaultSkin.Files, Portal.Files, S3CtxtSys.Files, S3Cpl.Files, S3Hotkey.Files, S3Hotplug.Files, Uninstall.Files
DelReg    = Cfg3D.Regs, Chromo.Regs, Disply.Regs, Gamma2.Regs, Info2.Regs, ColorPlus.Regs, RefLock.Regs, S3PowerWise.Regs, Chrome3.Regs, S3Context.Regs, S3Hotkey.Regs, HotPlug.Regs, Uninstall.Regs
DelReg    = S3Info3.Del, Chrome2.Del

;; win2k/xp
[DefaultInstall.NT]
CopyFiles = Cfg3D.Files, Chromo.Files, Disply.Files, Gamma2.Files, Info2.Files, ColorPlus.Files, RefLock.Files, PowerWise.Files, Chrome3.Files, Catalog.Files, DefaultSkin.Files, Portal.Files, S3CtxtSys.Files, S3Cpl.Files, S3Hotkey.Files, S3Hotplug.Files, Uninstall.Files
DelFiles = TrunkLegacy.Files
AddReg    = Cfg3D.Regs, Chromo.Regs, Disply.Regs, Gamma2.Regs, Info2.Regs, ColorPlus.Regs, RefLock.Regs, S3PowerWise.Regs, Chrome3.Regs, S3Context.Regs, S3Hotkey.Regs, HotPlug.Regs, Uninstall.Regs
DelReg    = S3Info3.Del, Chrome2.Del, TrunkLegacy.Del, Uninstall.Regs
DelService = S3LoadSv, 0x00000200
DelService = S3Funkey, 0x00000200
AddService = S3LoadSv, , S3LoadSv_Service_Inst
AddService = S3Funkey, , S3Funkey_Service_Inst

[DefaultUnInstall.NT]
DelFiles = Cfg3D.Files, Chromo.Files, Disply.Files, Gamma2.Files, Info2.Files, ColorPlus.Files, RefLock.Files, PowerWise.Files, Chrome3.Files, Catalog.Files, DefaultSkin.Files, Portal.Files, S3CtxtSys.Files, S3Cpl.Files, S3Hotkey.Files, S3Hotplug.Files, Uninstall.Files
DelReg    = Cfg3D.Regs, Chromo.Regs, Disply.Regs, Gamma2.Regs, Info2.Regs, ColorPlus.Regs, RefLock.Regs, S3PowerWise.Regs, Chrome3.Regs, S3Context.Regs, Chrome2.Del, S3Hotkey.Regs, HotPlug.Regs, Uninstall.Regs

[DefaultInstall.Services]
DelService = S3LoadSv, 0x00000200
DelService = S3Funkey, 0x00000200
AddService = S3LoadSv, , S3LoadSv_Service_Inst
AddService = S3Funkey, , S3Funkey_Service_Inst

[DefaultUnInstall.Services]
DelService = S3LoadSv, , S3LoadSv_Service_Inst
DelService = S3Funkey, , S3Funkey_Service_Inst

[DefaultInstall.NT.Services]
AddService = S3LoadSv, , S3LoadSv_Service_Inst
AddService = S3Funkey, , S3Funkey_Service_Inst

[DefaultUnInstall.NT.Services]
DelService = S3LoadSv, , S3LoadSv_Service_Inst
DelService = S3Funkey, , S3Funkey_Service_Inst

[S3LoadSv_Service_Inst]
ServiceType    = 0x00000110         ; SERVICE_WIN32_OWN_PROCESS| SERVICE_INTERACTIVE_PROCESS
StartType      = 2                  ; SERVICE_AUTO_START
LoadOrderGroup = Video
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
ServiceBinary  = %16422%\%S3Path%\s3loadsv.svc	; chrome3 directory
Description    = "VIA/S3 Graphics service to support hot plug detection."

[S3Funkey_Service_Inst]
ServiceType    = 0x00000110         ; SERVICE_WIN32_OWN_PROCESS| SERVICE_INTERACTIVE_PROCESS
StartType      = 2                  ; SERVICE_AUTO_START
LoadOrderGroup = Video
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
ServiceBinary  = %16422%\%S3Path%\s3funkey.svc	; chrome3 directory
Description    = "VIA/S3 Graphics service to support hotkey."

[Cfg3D.Files]
s3cfg3d.dll,,,0x00004000
S3Cfg3dU.cfg
s3cfg3dU.tip
S3MultiChrome.dll,,,0x00004000

[Chromo.Files]
s3chromo.dll,,,0x00004000
s3chromoU.cfg
S3ChromoU.tip

[Disply.Files]
S3Disply.dll,,,0x00004000
S3DisplyU.cfg
S3DisplyU.tip

[S3Hotkey.Files]
S3Funkey.svc,,,0x00004000
S3Hotkey.dll,,,0x00004000
S3HotkeyU.cfg
S3HotkeyU.tip

[Gamma2.Files]
S3Gamma2.dll,,,0x00004000
S3Gamma2U.cfg
S3gamma2U.tip

[Info2.Files]
s3info2.dll,,,0x00004000
s3info2U.cfg
S3Info2U.tip

[ColorPlus.Files]
s3ovrlay.dll,,,0x00004000
s3ovrlayU.cfg
S3OvrlayU.tip

[RefLock.Files]
S3Rflock.dll,,,0x00004000
S3RflockU.cfg
S3ReflockU.tip

[PowerWise.Files]
S3Power.dll,,,0x00004000
S3PowerU.cfg
S3PowerU.tip

[Chrome3.Files]
chrome3.exe,,,0x00004000
chrome3U.tip
chrome3U.cfg

[Portal.Files]
s3launch.dll,,,0x00004000
s3launchU.cfg

[S3CtxtSys.Files]
S3Ctxt.dll,,,0x00004000

[S3Cpl.Files]
S3Chrome3CPL.cpl

[Catalog.Files]
tree.dir
Tray.dir
Chrome3.dir
Banner.dir

[DefaultSkin.Files]
StdBannerShellbg_Wide.bmp
S3BannerBg_Wide.bmp
S3BannerCol_Wide.bmp
S3BannerExp_Wide.bmp
skin.dat

[Uninstall.Files]
chrome3.inf

[TrunkLegacy.Files]
s3funkey.exe,,,0x00000001	;;; (DELFLG_IN_USE)
S3hotkeyU.tip
S3ScrnToys.exe,,,0x00000001	;;; (DELFLG_IN_USE)
S3ScrnToysU.cfg
S3ScrnToys.dir
S3ScrnToysU.tip
S3Tray.dir

[S3Hotplug.Files]
s3loadsv.svc,,,0x00004000
s3hotplug.dll,,,0x00004000

; ---------------------------------------------------------------------
;                               S3Hotkey
; ---------------------------------------------------------------------
[S3Hotkey.Regs]
HKLM,System\CurrentControlSet\Services\S3funkey,"ObjectName",,"LocalSystem"    ;; XPE default is not using localsystem account
HKLM,%S3hk2KEY%,Filename,,S3Hotkey.dll
HKLM,%S3hk2KEY%,UiStyle,,Chrome3
HKLM,%S3hk2KEY%,URL,,http://www.s3graphics.com
HKLM,%S3hk2KEY%,EnableHotkey,,1
HKLM,%S3hk2KEY%,EnableTimer,,0

[Cfg3D.Regs]
HKLM,%S3CfgKEY%,Filename,,S3Cfg3d.dll
HKLM,%S3CfgKEY%,MultiChromeDll,,S3MultiChrome.dll
HKLM,%S3CfgKEY%,URL,,http://www.s3graphics.com
HKLM,%S3CfgKEY%,UiStyle,,""

[Chromo.Regs]
HKLM,%S3CHROMOKEY%,Filename,,S3Chromo.dll
HKLM,%S3CHROMOKEY%,URL,,http://www.s3graphics.com
HKLM,%S3CHROMOKEY%,UiStyle,,""

[Disply.Regs]
HKLM,%S3DSPKEY%,Filename,,S3Disply.dll
HKLM,%S3DSPKEY%,ConfigNum,,0
HKLM,%S3DSPKEY%,URL,,http://www.s3graphics.com
HKLM,%S3DSPKEY%,UiStyle,,""
HKLM,%S3DSPKEY%,SupportSAMM,,"ON"

[Gamma2.Regs]
HKLM,%S3G2KEY%,Filename,,S3Gamma2.dll
HKLM,%S3G2KEY%,URL,,http://www.s3graphics.com
HKLM,%S3G2KEY%,UiStyle,,""

[Info2.Regs]
HKLM,%INFO2KEY%,Filename,,S3Info2.dll
HKLM,%INFO2KEY%,URL,,http://www.s3graphics.com
HKLM,%INFO2KEY%,UiStyle,,""
HKLM,%INFO2KEY%,TrayFileName,,chrome3.exe

[ColorPlus.Regs]
HKLM,%OVERLAYKEY%,Filename,,S3Ovrlay.dll
HKLM,%OVERLAYKEY%,URL,,http://www.s3graphics.com
HKLM,%OVERLAYKEY%,UiStyle,,""

[RefLock.Regs]
HKLM,%S3RflKEY%,Filename,,S3Rflock.dll
HKLM,%S3RflKEY%,URL,,http://www.s3graphics.com
HKLM,%S3RflKEY%,UiStyle,,""

[S3PowerWise.Regs]
HKLM,%S3PwrKEY%,Filename,,S3Power.dll
HKLM,%S3PwrKEY%,URL,,http://www.s3graphics.com
HKLM,%S3PwrKEY%,UiStyle,,""

[Chrome3.Regs]
HKLM,%S3CHROME3KEY%,WorkingDirectory,,%S3Path%
HKCR,CLSID\%LAUNCHCLS%,,,"Property Portal Sheet"
HKCR,CLSID\%LAUNCHCLS%\InProcServer32,,,%16422%\%S3Path%\S3launch.dll
HKCR,CLSID\%LAUNCHCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Launch,"",,%LAUNCHCLS%
HKLM,%LAUNCHKEY%,Filename,,""
HKLM,%LAUNCHKEY%,UiStyle,,""
HKLM,%LAUNCHKEY%,URL,,http://www.s3graphics.com
HKLM,%LAUNCHKEY%,"OEMLogo",,""
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,Chrome3,,";;; %16422%\%S3Path%\Chrome3.exe -chkautorun"

[HotPlug.Regs]
HKLM,System\CurrentControlSet\Services\S3loadsv,"ObjectName",,"LocalSystem"    ;; XPE default is not using localsystem account
HKLM,%S3TimerKey%,NeedHotPlug, %REG_DWORD%, 1
HKLM,%S3TimerKey%,NeedDevicePriority, %REG_DWORD%, 1
HKLM,%S3TimerKey%,BeepOnPlug, %REG_DWORD%, 0
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,VTTimer,,";;; VTTimer.exe"

[S3Info3.Del]
HKCR,CLSID\%INFO3CLS%
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Info3

[Chrome2.Del]
;; stop running chrome2 utility when windows startup.
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,S3Trayp,,"S3trayp.exe"

[TrunkLegacy.Del]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,Chrome3,,%16422%\%S3Path%\S3ScrnToys.exe -chkautorun
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,S3Funkey,,%16422%\%S3Path%\S3Funkey.exe

[S3Context.Regs]
HKCR,CLSID\%S3CTXTCLS%,,,"S3 Context Menu"
HKCR,CLSID\%S3CTXTCLS%\InProcServer32,,,%16422%\%S3Path%\S3Ctxt.dll
HKCR,CLSID\%S3CTXTCLS%\InProcServer32,ThreadingModel,,Apartment
HKCR,Directory\Background\shellex\ContextMenuHandlers\S3Ctxt,"",,%S3CTXTCLS%
HKCR,Directory\Background\shellex\ContextMenuHandlers\S3Ctxt,bInvoke,0x00010001,1

[Uninstall.Regs]
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,DisplayIcon,,"%16422%\%S3Path%\chrome3.exe"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,DisplayName,,"S3 Graphics Utilities"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,DisplayVersion,,%UtilityVersion%
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,UninstallString,,"Rundll32 setupapi,InstallHinfSection DefaultUnInstall.NT 0 %16422%\%S3Path%\chrome3.inf"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,Comments,,"This utility is used to tune the settings of s3graphics adapter. Support discrete and UMA family."
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,HelpLink,,"http://chromezone.s3graphics.com/forums"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,Publisher,,"S3 Graphics Co., Ltd."
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,VersionMajor,,"3.3201"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,VersionMinor,,"25d"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,Contact,,"marketing@s3graphics.com"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,HelpTelephone,,"+1 (510) 687 4900"
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,RegCompany,,"S3 Graphics Co., Ltd."
HKLM, %CURVER%\Uninstall\S3 Graphics Utilities,RegOwner,,"S3 Graphics Co., Ltd."

[Strings]
S3         = "S3 Graphics, Inc."
CtrlFld    = "Controls Folder"
CURVER     = "Software\Microsoft\Windows\CurrentVersion"

; Non-Localizable Strings
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
REG_SZ_APPEND  = 0x00010008

S3CfgKEY   = "SOFTWARE\S3\S3Cfg3d"

S3CHROMOKEY = "SOFTWARE\S3\S3Chromo"

S3DSPKEY   = "SOFTWARE\S3\S3Display"

SGm2Desc  = "S3Gamma2"
S3G2KEY   = "SOFTWARE\S3\S3Gamma2"

INFO2KEY   = "SOFTWARE\S3\S3Info2"

LAUNCHCLS   = "{E57ABE14-C78E-4f02-9233-480CB2B1A0A8}"
LAUNCHKEY   = "SOFTWARE\S3\S3TabLaunch"

INFO3CLS   = "{DBC6B1BD-D2FD-46cd-A8FC-D031E55B93C1}"
INFO3KEY   = "SOFTWARE\S3\S3Info3"

OVERLAYKEY = "SOFTWARE\S3\S3Overlay"

S3RflKEY   = "SOFTWARE\S3\S3RefreshLock"

S3PwrKEY   = "SOFTWARE\S3\S3Power"

S3CTXTCLS  = "{1D0A702E-DBF1-46a6-8DDB-716535E24F75}"
S3CtxtDesc = "S3Context Menu"

S3CHROME3KEY = "SOFTWARE\S3"

S3Path     = "s3graphics\chrome3"

;; skins
DefaultSkin = "skins\DefaultSkin"

; For S3hotkey
S3hk2KEY   = "SOFTWARE\S3\s3hotkey"

; For S3Timer
S3TimerKey  = "SOFTWARE\S3\VT\S3Timer"

UtilityVersion = "3.3201.25d43-0216"
