;---------------------------------------------------------------------------
; VC0100.UNS -- Creative Camera Model Number VC0100 uninstallation
; Copyright (c) 2008 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
Signature =$Windows NT$

[Main.Uninstall.Devices]
USB\VID_041E&PID_4058&MI_00
;USB\VID_041E&PID_4058&MI_02

[Main.Uninstall.Opt]
Common_Uninstall_Section =CtlCam.Uninstall
Device_Desc_For_Messages ="Creative Live! Cam Optia AF (VC0100)"

[DestinationDirs]
DefaultDestDir =11
CtlCam.CopyKnlDrv =10,System32\Drivers
CtlCam.CopyKnlDrv.NTamd64 =10,System32\Drivers
CtlCam.CopyUserDrv =11
CtlCam.CopyUserDrv.WOW =10,SysWow64
CtlCam.CopyUserDrv.NTamd64 =11
CtlCam.CopyTwnFiles =10,Twain_32\Creative\VC0100
CtlCam.CopyWinFiles.Cmn =10
CtlCam.CopyWinFiles.Cmnx86 =10
CtlCam.CopyWinFiles.NTamd64 =10

[CtlCam.CopyKnlDrv]
C0100Vid.sys
C0100Afx.sys
C0100PC.bmp

[CtlCam.CopyKnlDrv.NTamd64]
C0100Vid.sys
C0100Afx.sys
C0100PC.bmp

[CtlCam.CopyUserDrv]
C0100Ext.ax
C0100Ext.crl
C0100Hwx.dll
C0100Pin.dll
CtCamMgr.dll
CtCamPin.crl
CTAFX32.dll
C0100AF.dll
C0100AF.crl

[CtlCam.CopyUserDrv.WOW]
C0100Ext.ax
C0100Ext.crl
C0100Hwx.dll
C0100Pin.dll
C0100AF.dll
C0100AF.crl

[CtlCam.CopyUserDrv.NTamd64]
C0100Ext.ax
C0100Ext.crl
C0100Hwx.dll
C0100Pin.dll
CtCamMgr.dll
CtCamPin.crl
CTAFX64.dll
C0100AF.dll
C0100AF.crl

[CtlCam.CopyTwnFiles]
C0100Twn.ds
CTTwain.crl
CTTwain.dll

[CtlCam.CopyWinFiles.Cmn]
VC0100.uns

[CtlCam.CopyWinFiles.Cmnx86]
CtDrvIns.exe

[CtlCam.CopyWinFiles.NTamd64]
CtDrvIns.exe

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

[CtlCam.Uninstall]
DelFiles =CtlCam.CopyKnlDrv,CtlCam.CopyUserDrv,CtlCam.CopyTwnFiles,\
          CtlCam.CopyWinFiles.Cmn,CtlCam.CopyWinFiles.Cmnx86
DelReg =CtlCam.DelReg
DelService =%VideoServiceName%,%SPSVCINST_STOPSERVICE%
DelService =%AFXFilterServiceName%,%SPSVCINST_STOPSERVICE%,,
ctDelDevices =CtlCam.DelDevices
ctDelDevClassInst =CtlCam.DelDevClass
ctDelTempPreInsDir =CtlCam.DelDir
[CtlCam.Uninstall.NTamd64]
DelFiles =CtlCam.CopyKnlDrv.NTamd64,CtlCam.CopyUserDrv.WOW,\
          CtlCam.CopyUserDrv.NTamd64,CtlCam.CopyTwnFiles,\
          CtlCam.CopyWinFiles.Cmn,CtlCam.CopyWinFiles.NTamd64
DelReg =CtlCam.DelReg,CtlCam.DelReg.NTamd64
DelService =%VideoServiceName%,%SPSVCINST_STOPSERVICE%
DelService =%AFXFilterServiceName%,%SPSVCINST_STOPSERVICE%,,

ctDelDevices =CtlCam.DelDevices
ctDelDevClassInst =CtlCam.DelDevClass
ctDelTempPreInsDir =CtlCam.DelDir

[CtlCam.DelDir]
C0100Vid.inf
C0100Aud.inf

[CtlCam.DelReg]
HKLM,%CTConfigRegistry%
HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%DeviceDescription%
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%DeviceDescription%
HKLM,%MSUninstall%\%UninstallKey%

[CtlCam.DelReg.NTamd64]
HKLM,%MSUninstallWow64%\%UninstallKey%
HKLM,%CTConfigRegistryWow%

[CtlCam.DelDevClass]
{FF596E7C-6163-48B5-852F-E45752EED16F},%DELETE_CLASS_IF_NO_INST%
{65E8773D-8F56-11D0-A3B9-00A0C9223196}
{65E8773E-8F56-11D0-A3B9-00A0C9223196}
{6994AD05-93EF-11D0-A3CC-00A0C9223196}
{6994AD04-93EF-11D0-A3CC-00A0C9223196}
{A5DCBF10-6530-11D2-901F-00C04FB951ED}
{40EF6CF0-2DB6-11D3-9F78-00C04F6D5135}
{EA4FA382-B0DA-4C20-8521-A4F159E9A011}
{F18A0E88-C30C-11D0-8815-00A0C906BED8}
{F80C0521-71DC-4976-BBC2-0728C645E6E6}
{FB6C428A-0353-11D1-905F-0000C0CC16BA}
{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}
{56907941-3AFE-11D4-AE2C-00A0CC242D2C}

[CtlCam.DelDevices]
USB\VID_041E&PID_4058&MI_02
USB\VID_041E&PID_4058

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

[Strings]
MSUninstall ="Software\Microsoft\Windows\CurrentVersion\Uninstall"
MSUninstallWow64 ="Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaResourcesMSVideo ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSMMDriver ="Software\Microsoft\Windows NT\CurrentVersion\drivers"
MSRunOnce ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

SPSVCINST_STOPSERVICE =0x00000200

DELETE_CLASS_IF_NO_INST =1

DeviceDescription ="VC0100 Live! Cam Optia AF"
CTConfigRegistry ="Software\Creative Tech\Web Cameras\VC0100"
CTConfigRegistryWow64 ="Software\Wow6432Node\Creative Tech\Web Cameras\VC0100"
UninstallKey ="Creative VC0100"
VideoServiceName ="C0100Vid"
AFXFilterServiceName ="C0100Afx"
