;---------------------------------------------------------------------------
; VF0330.UNS -- Creative Camera Model Number VF0330 uninstallation
; Copyright (c) 2007 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"

[Main.Uninstall.Devices]
USB\VID_041E&PID_405F

[Main.Uninstall.Opt]
Common_Uninstall_Section=CtlCam.Uninstall
Device_Desc_For_Messages="Creative WebCam Vista/Live! Cam Chat (VF0330)"

[DestinationDirs]
DefaultDestDir=11
Cam.CopyKernDrivers=10,system32\drivers
Cam.CopyUserDrivers=11
Cam.CopyWinFiles=10
Cam.CopyBmpFile=10,system32                 ;ZDP
Cam.CopyTwainFiles=10,twain_32\Creative\VF0330
Cam.CopyVfwDriver=11
Cam.WNT.CopyVfwDriver=11
Cam.Setting.CopyFiles=11

Cam.AMD64.CopyKnlDrv=10,system32\drivers
Cam.AMD64.CopyUserDrv=11
Cam.AMD64.CopyWinFiles=10
Cam.AMD64WOW.CopyUserDrivers=10,SysWow64

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

[Cam.CopyWinFiles]
V0330Mon.exe
VF0330.uns

[Cam.AMD64.CopyWinFiles]
V0330Mon.exe
VF0330.uns

[Cam.CopyUserDrivers]
CtCamMgr.dll
CtCamPin.crl
V0330Hwx.dll
V0330Pin.dll
V0330Ext.ax
V0330Ext.crl
V0330Cvw.dll
V0330Cvw.crl
V0330Cvw.bff
V0330PC.bmp
cximage.dll

[Cam.AMD64.CopyUserDrv]
V0330Ext.ax
V0330Ext.crl
V0330Hwx.dll
V0330Pin.dll
CtCamPin.crl
CtCamMgr.dll

[Cam.AMD64WOW.CopyUserDrivers]
V0330Cvw.bff
V0330Cvw.crl
V0330Cvw.dll
V0330Ext.ax
V0330Ext.crl
V0330Hwx.dll
V0330Vfw.dll
CtCamMgr.dll
cximage.dll

[Cam.CopyTwainFiles]
V0330Twn.ds
CtTwain.bff
CtTwain.crl
CtTwain.dll
HookWnd.dll

[Cam.CopyVfwDriver]
V0330Vfw.drv
Msh263.drv

[Cam.CopyBmpFile]
V0330PC.bmp

[Cam.WNT.CopyVfwDriver]
V0330Vfw.dll

[Cam.CopyKernDrivers]
V0330Vid.sys
V0330Stb.sys

[Cam.AMD64.CopyKnlDrv]
V0330Vid.sys
V0330PC.bmp

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

[CtlCam.Uninstall]
DelFiles=Cam.CopyKernDrivers,Cam.CopyUserDrivers,Cam.CopyTwainFiles,Cam.CopyWinFiles,Cam.CopyVfwDriver,Cam.Setting.CopyFiles,Cam.CopyBmpFile
DelReg=Cam.DelReg,Cam.Uns.DelReg
UpdateInis=       Cam.DelIni
ctDelDevices=     Cam.DelDevices
ctDelCatFile=     Cam.DelCatFile
ctDelDevClassInst=Cam.DelDevClass

[CtlCam.Uninstall.NT]
DelFiles=Cam.CopyKernDrivers,Cam.CopyUserDrivers,Cam.CopyTwainFiles,Cam.CopyWinFiles,Cam.WNT.CopyVfwDriver,Cam.Setting.CopyFiles
DelReg=Cam.DelReg,Cam.Vfw.DelReg.NT,Cam.Uns.DelReg.NT
DelService=       %szVideoServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=       Cam.DelIni
ctDelDevices=     Cam.DelDevices
ctDelDevClassInst=Cam.DelDevClass
ctDelTempPreInsDir=Cam.DelDir

[CtlCam.Uninstall.AMD64]
DelFiles=Cam.AMD64.CopyKnlDrv,Cam.AMD64.CopyUserDrv,Cam.CopyTwainFiles,Cam.AMD64.CopyWinFiles,Cam.AMD64WOW.CopyUserDrivers,Cam.WNT.CopyVfwDriver,Cam.Setting.CopyFiles
DelReg=Cam.DelReg,Cam.Vfw.DelReg.NT,Cam.Uns.DelReg.NTAMD64
DelService=       %szVideoServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=       Cam.DelIni
ctDelDevices=     Cam.DelDevices
ctDelDevClassInst=Cam.DelDevClass
ctDelTempPreInsDir=Cam.DelDir

[Cam.DelReg]
HKLM,%szConfigRegistry%
HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%szDeviceDesc%
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%
HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%szDeviceDescOld%
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDescOld%

;**************************************************************************

HKLM,"Software\OmniVision\PC Camera"

;**************************************************************************

[Cam.Uns.DelReg]
HKLM,%MSUninstall%\%szUninstall%

[Cam.Uns.DelReg.NT]
HKLM,%MSUninstall%\%szUninstall%

[Cam.Uns.DelReg.NTAMD64]
HKLM,%MSWow64Uninstall%\%szUninstall%

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

[Cam.DelIni]
system.ini,drivers,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",,0

[Cam.DelDevices]
USB\VID_041E&PID_405F

[Cam.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
{fb6c428a-0353-11d1-905f-0000c0cc16ba},0
{6bdd1fc4-810f-11d0-bec7-08002be2092f},0
{659be370-ac15-45fe-9eda-39cf8f95862e},0
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0

[Cam.DelDir]
V0330Vid.inf

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

[Strings]
SERVICE_STOP_SERVICE=0x200

MSUninstall             ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSWow64Uninstall        ="Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaResourcesMSVideo ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szDeviceDesc            ="WebCam Vista/Live! Cam Chat"
szDeviceDescOld         ="WebCam Vista"
szConfigRegistry        ="Software\Creative Tech\Web Cameras\VF0330"

szUninstall             ="Creative VF0330"
szVfwKey                ="V0330VFW"
szVideoServiceName      ="V0330VID"
szVfwBaseFileName       ="V0330Vfw"
