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

[Version]
Signature =$Windows NT$

[Main.Uninstall.Devices]
USB\VID_05A9&PID_7670&MI_00

[Main.Uninstall.Opt]
Common_Uninstall_Section =CtlCam.Uninstall
Device_Desc_For_Messages ="Laptop Integrated Webcam"

[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\OEM004
CtlCam.CopyWinFiles.Cmn =10
CtlCam.CopyWinFiles.Cmnx86 =10
CtlCam.CopyWinFiles.NTamd64 =10

[CtlCam.CopyKnlDrv]
OEM04Vid.sys
OEM04Vfx.sys
OEM04PC.bmp
OEM04Pvc.bmp
OEM04Afx.sys

[CtlCam.CopyKnlDrv.NTamd64]
OEM04Vid.sys
OEM04Vfx.sys
OEM04PC.bmp
OEM04Pvc.bmp
OEM04Afx.sys

[CtlCam.CopyUserDrv]
OEM04Cvw.bff
OEM04Cvw.dll
OEM04Cvw.crl
OEM04Hwx.dll
OEM04Pin.dll
OEM04Pin.crl
CtCamMgr.dll

[CtlCam.CopyUserDrv.WOW]
OEM04Cvw.bff
OEM04Cvw.dll
OEM04Cvw.crl
OEM04Hwx.dll
OEM04Pin.dll
OEM04Pin.crl
;;CtCamMgr.dll

[CtlCam.CopyUserDrv.NTamd64]
OEM04Hwx.dll
OEM04Pin.dll
OEM04Pin.crl
;;CtCamMgr.dll

[CtlCam.CopyTwnFiles]
HookWnd.dll

[CtlCam.CopyWinFiles.Cmn]
OEM004.uns

[CtlCam.CopyWinFiles.Cmnx86]
OEM04Mon.exe
OEM04Cfg.exe
CtDrvIns.exe

[CtlCam.CopyWinFiles.NTamd64]
OEM04Mon.exe
OEM04Cfg.exe
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 =%VFXFilterServiceName%,%SPSVCINST_STOPSERVICE%,,
DelService =%AppServiceName%,%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
DelService =%VideoServiceName%,%SPSVCINST_STOPSERVICE%
DelService =%VFXFilterServiceName%,%SPSVCINST_STOPSERVICE%,,
DelService =%AppServiceName%,%SPSVCINST_STOPSERVICE%,,
ctDelDevices =CtlCam.DelDevices
ctDelDevClassInst =CtlCam.DelDevClass
ctDelTempPreInsDir =CtlCam.DelDir

[CtlCam.DelDir]
OEM04Dev.inf

[CtlCam.DelReg]
HKLM,%CTConfigRegistry%
HKLM,%CTConfigRegistryWow64%
HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%DeviceDescription%
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%DeviceDescription%
HKLM,%MSUninstall%\%UninstallKey%
HKLM,%MSUninstallWow64%\%UninstallKey%
HKLM,%MSRunOnce%,%ConfigAppRegistry%
HKLM,%MSRunOnceWow64%,%ConfigAppRegistry%

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

[CtlCam.DelDevices]
USB\VID_05A9&PID_7670

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

[Strings]
MSUninstall ="Software\Microsoft\Windows\CurrentVersion\Uninstall"
MSUninstallWow64 ="Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
MSRunOnce ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRunOnceWow64 ="SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnce"

SPSVCINST_STOPSERVICE =0x00000200

DELETE_CLASS_IF_NO_INST =1

DeviceDescription ="Laptop Integrated Webcam"
CTConfigRegistry ="Software\Creative Tech\Web Cameras\OEM004"
CTConfigRegistryWow64 ="Software\Wow6432Node\Creative Tech\Web Cameras\OEM004"
UninstallKey ="Creative OEM004"
ConfigAppRegistry ="OEM004 Config Applet"
VideoServiceName ="OEM04Vid"
VFXFilterServiceName ="OEM04Vfx"
AppServiceName ="C0100Srv"
