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

[Version]
Signature="$CHICAGO$"

[Main.Uninstall.Devices]
USB\VID_041E&PID_401E
USB\VID_041E&PID_4022

[Main.Uninstall.Opt]
Common_Uninstall_Section=CtlCam.Uninstall
Device_Desc_For_Messages="Creative WebCam NX Pro"

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

; --------------- This is the Copy file sections for deletion --------------
[CtlCam.CopyKernelDrivers]
P1130Vid.sys

[CtlCam.CopyUserDrivers]
P1130Sti.dll
P1130Ext.ax	; from Creative
P1130Hwx.dll	; from Creative
P1130Pin.dll	; from Creative
P1130Pin.crl	; from Creative
P1130Cfg.crl	; from Creative
P1130Ext.crl	; from Creative

[CtlCam.CopyTwainFiles]
P1130Twn.ds

[CtlCam.W98.CopyWinFiles]
P1130Cfg.exe	; from Creative
Pd1130.uns	; from Creative
Vfwupd.exe

[CtlCam.W2K.CopyWinFiles]
P1130Cfg.exe	; from Creative
Pd1130.uns	; from Creative

[CtlCam.W98.CopyVfwDriver]
P1130Vfw.drv	; from Creative

[CtlCam.W2K.CopyVfwDriver]
P1130Vfw.dll	; from Creative

;----------------------- UNINSTALLATION -------------------------------------
[CtlCam.Uninstall]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W98.CopyWinFiles,CtlCam.W98.CopyVfwDriver
DelReg=CtlCam.DelReg
UpdateInis=CtlCam.DelIni
ctDelCatFile=CtlCam.DelCatFile
ctDelDevices=CtlCam.DelDevices
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
ctDelCatFile=CtlCam.DelCatFile
ctDelDevices=CtlCam.DelDevices

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,%MSUninstall%\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%
HKCR,CLSID\%szCustomDevSetting.GUID%
HKCR,CLSID\%szCustomBandingSetting.GUID%
HKCR,CLSID\%szCustomStreamConfig.GUID%
HKCR,CLSID\%szVfwNullRender.GUID%
HKCR,CLSID\%szVfwGrabberSample.GUID%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%

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

[CtlCam.DelCatFile]
Pd1130.cat

[CtlCam.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
{659be370-ac15-45fe-9eda-39cf8f95862e},0
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0

[CtlCam.DelDevices]
; for other devices only, e.g. Composite device have video and still device
; then specify the VID&PID of the video and still device over here


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

[Strings]
; Used in uninstallation only
SERVICE_STOP_SERVICE    =0x200
DELETE_CLASS_IF_NO_INST =1

MSMediaInterfaces      		="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaSets            		="System\CurrentControlSet\Control\MediaSets"
MSRunOnce              		="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSUninstall            		="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSRun                  		="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSMediaResourcesMSVideo		="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSDefStreamConfig.GUID 		="{71F96467-78F3-11d0-A18C-00A0C9118956}"
MSVideoCapturePin.GUID 		="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry		="Software\Creative Tech\Web Cameras\PD1130"
szUninstall			="Creative PD1130"
szVfwKey			="PD1130VFW"
szVidServiceName		="P1130VID"

; Custom Property pages
szCustomDevSetting.GUID		="{B46B02D4-A0E0-4fcf-BAD0-AFD342FF28CF}"
szCustomBandingSetting.GUID	="{88133F64-392A-4cee-8838-F37DED7A4B4A}"
szCustomStreamConfig.GUID	="{9BA4486A-6F46-48e4-8F06-031F97C8C581}"
szSTIDevice.GUID		="{44CAFD81-4A72-11d7-BD32-00D0B7C28423}"
szVfwNullRender.GUID		="{D775C10E-3137-4040-A84F-C9CA413079CC}"
szVfwGrabberSample.GUID		="{CCAFDF62-B7B6-49eb-82C3-453EAB6EC6D3}"

