;---------------------------------------------------------------------------
; VF0070.UNS -- Creative WebCam Notebook Ultra uninstallation
; Copyright (c) 2004-2005 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"

[Main.Uninstall.Devices]
USB\VID_041E&PID_403D,CtlCam.Uninstall

[Main.Uninstall.Opt]
;Common_Uninstall_Section=CtlCam.Uninstall
Device_Desc_For_Messages="Creative WebCam Notebook Ultra"

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

; ----------------------------- FILES ---------------------------------
[CtlCam.CopyKernelDrivers]
V0070USB.sys
V0070Vid.sys
V0070Evx.sys

[CtlCam.CopyUserDrivers]
CtCamMgr.dll
CtCamPin.crl
V0070Hwx.dll
V0070Pin.dll
V0070Ext.crl
V0070Ext.ax
V0070sti.dll

[CtlCam.CopyTwainFiles]
CtTwain.dll
V0070Twn.ds
CtTwain.bff
cttwain.crl
HookWnd.dll
Gdiplus.dll

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe
V0070Cfg.exe
VF0070.uns

[CtlCam.CopyWinFiles]
CtDrvIns.exe
V0070Cfg.exe
VF0070.uns
VfwUpd.exe

[CtlCam.CopyVfwDriver]
V0070Vfw.drv

[CtlCam.W2K.CopyVfwDriver]
V0070Vfw.dll

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

[CtlCam.Uninstall]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopyVfwDriver
DelReg=CtlCam.DelReg
UpdateInis=CtlCam.DelIni
ctDelDevices=     CtlCam.DelDevices
ctDelCatFile=     CtlCam.DelCatFile
ctDelDevClassInst=CtlCam.DelDevClass

[CtlCam.Uninstall.NT]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
DelReg=CtlCam.DelReg
DelService=       %szVidServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=       CtlCam.DelIni
ctDelDevices=     CtlCam.DelDevices
ctDelCatFile=     CtlCam.DelCatFile
ctDelDevClassInst=CtlCam.DelDevClass
ctDelTempPreInsDir=CtlCam.DelDir

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,%MSUninstall%\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%
HKCR,CLSID\%szCustomInterface.GUID%
HKLM,%MSRunOnce%,%szConfigAppRegistry%
HKLM,%MSRun%,%szCustomRun%
HKLM,%MSRun%,%szBandingSetting"
HKLM,%MSMediaSets%\%szCustomInterface.GUID%
HKLM,%MSMediaInterfaces%\%szCustomInterface.GUID%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%

HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%szDeviceDesc%
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%

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

[CtlCam.DelCatFile]
V0070.cat

[CtlCam.DelDevices]
USB\VID_041E&PID_403D

[CtlCam.DelDevClass]
{ff596e7c-6163-48b5-852f-e45752eed16f},%DELETE_CLASS_IF_NO_INST%
{65E8773D-8F56-11D0-A3B9-00A0C9223196},0
{6994ad05-93ef-11d0-a3cc-00a0c9223196},0
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0
{a5dcbf10-6530-11d2-901f-00c04fb951ed},0
{fb6c428a-0353-11d1-905f-0000c0cc16ba},0
{A799A800-A46D-11D0-A18C-00A02401DCD4},0
{A799A801-A46D-11D0-A18C-00A02401DCD4},0
{A799A802-A46D-11D0-A18C-00A02401DCD4},0

[CtlCam.DelDir]
V0070Dev.inf


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

[Strings]
SERVICE_STOP_SERVICE=0x200

MSMediaResMSVideo      ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSUninstall            ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaSets            ="System\CurrentControlSet\Control\MediaSets"
MSMediaInterfaces      ="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaCategories      ="System\CurrentControlSet\Control\MediaCategories"
MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSVideoCapturePin.GUID ="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry        ="Software\Creative Tech\Web Cameras\VF0070"
szDeviceDesc            ="Creative WebCam Notebook Ultra"
szUninstall             ="Creative VF0070"
szVfwKey                ="V0070VFW"
szVidServiceName        ="V0070VID"
szVfwBaseFileName       ="V0070Vfw"

; Custom Property pages
szCustomInterface.GUID           ="{2C3698E4-AE24-4626-AC6C-B1EFD45D6501}"
szSTIDevice.GUID                 ="{265C15F0-4CB8-43F9-B828-C29648982490}"
szSTIEventNewPic.GUID            ="{528581B6-BC09-456F-91F7-F21EE55D47E4}"
szSTIEventLaunch.GUID            ="{BC9CA8A9-54F9-4721-B98D-97A9E8937FE5}"

szCustomStreamConfig.GUID        ="{53F7F361-772B-491a-BA2F-3C68758937BA}"
szCustomDevSetting.GUID          ="{13CD9B20-16D5-4DE3-9828-8A4E33B78285}"
szCustomBandingSetting.GUID      ="{24914786-198E-45AA-AA57-C143A208FAFF}"
szCustomExtendedSetting.GUID     ="{935A637C-019D-468e-ACB0-50EE0EFB3FF1}"
