;---------------------------------------------------------------------------
; CT6860.UNS -- Creative Video Blaster WebCam Go Camera uninstallation
; Copyright (c) 1999-2001 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
Signature="$Windows NT$"

[DestinationDirs]
CtlCam.CopyKernelDrivers=10,system32\drivers
CtlCam.CopyUserDrivers=11
CtlCam.W2K.CopyWinFiles=10
CtlCam.W98.CopyWinFiles=10
CtlCam.CopyTwainFiles=10,twain_32\Creative
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

; --------------------------- FILES ---------------------------------

[CtlCam.CopyKernelDrivers]
wbcgovid.sys
wbcgohal.sys

[CtlCam.CopyUserDrivers]
;;ctwbjpg.dll
wbcgores.cpl
wbcgores.crl
wbcgosti.dll
wbcgofsd.dll
wbcgovex.dll
wbcgovex.crl
wbcgohal.dll
wbcgopin.dll
wbcgopin.crl

[CtlCam.CopyTwainFiles]
wbcgotwn.ds
wbcgotwn.crl
cttwnui.crl
cttwnui.dll
ctskin.dll
ctspea32.dll
ctres32.dll

[CtlCam.W2K.CopyWinFiles]
wbcgosvc.exe
ct6860.uns

[CtlCam.W98.CopyWinFiles]
vfwupd.exe
ct6860.uns

[CtlCam.CopyVfwDriver]
wbcgovfw.drv

[CtlCam.W2K.CopyVfwDriver]
wbcgovfw.dll

;----------------------- UNINSTALLATION -------------------------------------

[CtlCam.Uninstall]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W98.CopyWinFiles,CtlCam.CopyVfwDriver
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg,CtlCam.Service.DelReg
UpdateInis=CtlCam.DelIni
ctDelRunApp=CtlCam.DelRunApp
ctDelDevClassInst=CtlCam.DelDevClass

[CtlCam.Uninstall.NT]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg
DelService=%szVidServiceName%,%SERVICE_STOP_SERVICE%,,
DelService=%szHalServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=CtlCam.DelIni
ctDelRunApp=CtlCam.DelRunApp

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%

[CtlCam.Service.DelReg]
HKLM,System\CurrentControlSet\Services\%szHalServiceName%

[CtlCam.Vfw.DelReg]
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%

[CtlCam.DelIni]
system.ini,drivers,"MsVideo.%szVfwKey%=wbcgovfw.drv",,0

[CtlCam.DelRunApp]
%szStiRunAppDesc%,WbcgoSvcClass

[CtlCam.DelDevClass]
{ff596e7c-6163-48b5-852f-e45752eed16f},%DELETE_CLASS_IF_NO_INST%
{65E8773D-8F56-11D0-A3B9-00A0C9223196},0
{6994ad05-93ef-11d0-a3cc-00a0c9223196},0
{a5dcbf10-6530-11d2-901f-00c04fb951ed},0

;-----------------------  STRINGS DEFINITION ---------------------------------

[Strings]
SERVICE_STOP_SERVICE=0x200

MSMediaResourcesMSVideo ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry     ="Software\Creative Tech\Video Blaster\WebCam Go"
szCamConfigRegistry  ="CamConfiguration"
szCodecNameJPG       ="WinBond JPEG [CJPG]"
szCodecNameYUY2      ="WinBond YUY2 [YUY2]"
szCreateDeviceName   ="\\.\PCAMSTI"
szDeviceChange.GUID  ="{3393756E-854B-4d9f-A41C-6C050DB3EF9B}"
szLaunchApp          ="Open Application"
szNewPicture         ="New Picture Captured"
szStiAppName         ="WebCam Go Control"
szStillImageDesc     ="CT6860 Still Image USD"
szTwainDSDesc        ="Video Blaster WebCam Go"
szUninstall          ="Creative Video Blaster WebCam Go"
szUninstallDisplay   ="Creative Video Blaster WebCam Go Driver"
szVfwKey             ="WebCamGo"
szVfwDeviceDesc      ="Video Blaster WebCam Go (VFW)"
szDiskName           ="Creative Video Blaster WebCam Go Driver Disk"
szStiRunAppDesc      ="WebCam Go Sti Service Application"
szVidServiceName     =WBCGOVID
szHalServiceName     =WBCGOHAL
szSTIDevice.GUID     ="{CF426920-BA4E-426e-937D-1D616C33638C}"
