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

[Version]
Signature="$CHICAGO$"
 
[Main.Uninstall.Devices]
USB\VID_041E&PID_4045
USB\VID_041E&PID_4049
 
[Main.Uninstall.Opt]
Common_Uninstall_Section=CtlCam.Uninstall
Device_Desc_For_Messages="Creative Live! Cam Voice"
 
[DestinationDirs]
DefaultDestDir              =11
CtlCam.CopyKernelDrivers    =10,system32\drivers
CtlCam.CopyUserDrivers      =11
CtlCam.W2K.CopyWinFiles     =10
CtlCam.CopyTwainFiles       =10,twain_32\Creative\PD1370
CtlCam.W2K.CopyVfwDriver    =11
 
; ----------------------------- FILES ---------------------------------
[CtlCam.CopyKernelDrivers]
P1370Vid.sys
P1370Aud.sys
P1370Aul.sys
P1370Evx.sys
CamH1370.bin
CamF1370.bin
 
[CtlCam.CopyUserDrivers]
P1370Hwx.dll
P1370Cvw.dll
P1370Cvw.crl
P1370Cvw.bff
P1370Pin.dll
CtCamPin.crl
P1370Ext.ax
P1370Ext.crl
CtCamMgr.dll
P1370Mpn.dll
PD1370FT.chm
P1370Aor.dll
 
[CtlCam.CopyTwainFiles]
P1370Twn.ds
CtTwain.bff
CtTwain.crl
CtTwain.dll
HookWnd.dll
Gdiplus.dll
 
[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe
P1370Cfg.exe
PD1370.uns
 
[CtlCam.W2K.CopyVfwDriver]
P1370Vfw.dll

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

[CtlCam.Uninstall.NT]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
DelReg=CtlCam.DelReg
DelService=       %szAudioServiceName%,%SERVICE_STOP_SERVICE%,,
DelService=       %szVideoServiceName%,%SERVICE_STOP_SERVICE%,,
DelService=       %szLowerServiceName%,%SERVICE_STOP_SERVICE%,,
ctDelDevices=     CtlCam.DelDevices
ctDelDevClassInst=CtlCam.DelDevClass
ctDelTempPreInsDir=CtlCam.DelDir
 
[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,%MSUninstall%\%szUninstall%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%
HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%szDeviceDesc%
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%

[CtlCam.DelDevices]
USB\VID_041E&PID_4048&MI_00
USB\VID_041E&PID_4048
USB\VID_041E&PID_404A&MI_00
USB\VID_041E&PID_404A
USB\VID_041E&PID_404B

[CtlCam.DelDevClass]
{ff596e7c-6163-48b5-852f-e45752eed16f},%DELETE_CLASS_IF_NO_INST%
{65E8773D-8F56-11D0-A3B9-00A0C9223196},0
{65E8773E-8F56-11D0-A3B9-00A0C9223196},0
{6994AD04-93EF-11D0-A3CC-00A0C9223196},0
{56907941-3AFE-11D4-AE2C-00A0CC242D2C},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

[CtlCam.DelDir]
P1370Dev.inf
 
[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"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry       ="Software\Creative Tech\Web Cameras\PD1370"
szUninstall            ="Creative Live! Cam Voice"
szDeviceDesc           ="Live! Cam Voice"
szVfwKey               ="P1370VFW"
szVideoServiceName     ="P1370VID"
szAudioServiceName     ="P1370Aud"
szLowerServiceName     ="P1370Aul"