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

[Main.Uninstall.Devices]
USB\VID_041E&PID_400A&MI_01,CtlCam.Uninstall

[Main.Uninstall.Opt]
Common_Uninstall_Section=CtlCam.Uninstall
Device_Desc_For_Messages="Creative PC-CAM 300"

[DestinationDirs]
DefaultDestDir=11
CtlCam.CopyKernelDrivers=10,system32\drivers
CtlCam.CopyUserDrivers=11
CtlCam.W2K.CopyWinFiles=10
CtlCam.CopyWinFiles=10
CtlCam.CopyBulkDriver=10,System32\Drivers
CtlCam.CopyTwainFiles=10,twain_32\Creative\PD0160
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11
; ----------------------------- FILES ---------------------------------


[CtlCam.W2K.CopyWinFiles]
Pd0160.uns
Pd016Cfg.exe      ; from Creative

[CtlCam.CopyBulkDriver]
PD016blk.sys

[CtlCam.CopyKernelDrivers]
PD016vid.sys
PD016cmd.sys

[CtlCam.CopyUserDrivers]
VqSetup.dll
PD016if.dll
PD016DNL.dll
PD016GRA.dll
PD016JPG.dll
PD016api.dll
Raw2Xga.dll
PD016Raw.dll
Raw2SVGA.dll
Rawsnap.dll
Raw2RGB.DLL
PD016Hwx.dll
PD016Foa.dll
PD016sti.dll
PD016vex.dll
PD016vex.pro
PD016vex.loc
PD016dex.ax       ; from Creative
PD016dec.dll
PD016dex.crl
PD016Pin.dll      ; from Creative
PD016Pin.crl      ; from Creative
PD016Vfw.drv      ; from Creative
PD016Vfw.dll	; from Creative
Pd016Swa.dll      ; from Creative
Pd016Wia.dll      ; from Creative
Pd016Cfg.crl      ; from Creative

[CtlCam.CopyTwainFiles]
PD016Avi.ax
PD016DEP.dll
PD016Sna.dll
PD016Ctl.dll
PD016Twn.ds
PD016UI.dll
PD016Cap.dll
PD016Twn.pro
PD016Twn.loc

[CtlCam.W2K.CopyWinFiles]
Pd016Cfg.exe      ; from Creative
Pd0160.uns        ; from Creative
Pd016Stp.dll

[CtlCam.CopyWinFiles]
Pd016Cfg.exe      ; from Creative
Pd0160.uns        ; from Creative
Pd016Stp.dll

[CtlCam.CopyVfwDriver]
Pd016Vfw.drv   ; from Creative

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

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

[CtlCam.Uninstall]
DelFiles=CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopyVfwDriver,CtlCam.CopyBulkDriver,CtlCam.CopyKernelDrivers
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg
UpdateInis=CtlCam.DelIni
ctDelDevices=     CtlCam.DelDevices
ctDelCatFile=     CtlCam.DelCatFile
ctDelDevClassInst=CtlCam.DelDevClass,CtlCam.DelDevClassEx.W98

[CtlCam.Uninstall.NT]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver,CtlCam.CopyBulkDriver
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg,CtlCam.Service.DelReg
;DelService=       %szVideoServiceName%,%SERVICE_STOP_SERVICE%,,
;DelService=       %szBulkServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=       CtlCam.DelIni
ctDelDevices=     CtlCam.DelDevices
ctDelCatFile=     CtlCam.DelCatFile
ctDelDevClassInst=CtlCam.DelDevClass

[CtlCam.Servie.DelReg]
HKLM, System\CurrentControlSet\Services\%szVideoServiceName%
HKLM, System\CurrentControlSet\Services\%szBulkServiceName%

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,%MSUninstall%\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%
HKCR,CLSID\%szCustomInterface.GUID%
HKCR,CLSID\%szCustomDevSetting.GUID%
HKCR,CLSID\%szCustomBandingSetting.GUID%
HKCR,CLSID\%szCustomStreamConfig.GUID%
HKCR,CLSID\%szVFWNR.GUID%
HKCR,CLSID\%szVFWSG.GUID%
HKCR,CLSID\{16D139C0-5933-4C61-AADC-74705F663E15} 
HKCR,CLSID\{47BDB22B-A536-4BC0-80D6-973DC73531CE} 
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%
HKLM,%MSMediaSets%\%szCustomInterface.GUID%
HKLM,%MSMediaInterfaces%\%szCustomInterface.GUID%
HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%szCustomStreamConfig.GUID%
HKLM,%MSRun%,%szRegStiApp%

[CtlCam.Vfw.DelReg]
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%

[CtlCam.DelIni]
system.ini,drivers,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",,0
system.ini,drivers32,"VIDC.VQJC=%szVQJCcodec%",,0
System.ini,drivers32,"VIDC.I420=msh263.drv",,0

[CtlCam.DelRunApp]

[CtlCam.DelCatFile]
Pd016Com.cat
Pd016Vid.cat

[CtlCam.DelDevices]
USB\VID_041E&PID_400A
USB\VID_041E&PID_400A&MI_01
USB\VID_041E&PID_400A&MI_00

[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
{6bdd1fc4-810f-11d0-bec7-08002be2092f},0
{659be370-ac15-45fe-9eda-39cf8f95862e},0
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0
Image,0 ;;special for win98

[CtlCam.DelDevClassEx.W98]
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0

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

[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"
MSMediaCategories      ="System\CurrentControlSet\Control\MediaCategories"
MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSVideoCapturePin.GUID ="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry        ="Software\Creative Tech\Dual Mode Cameras\PD0160"
szRegStiApp             ="PC-CAM 300 STI App Registration"

szUninstall             ="Creative PD0160"
szVfwKey                ="PD016VFW"
szVideoServiceName      ="PD016VID"
szBulkServiceName       ="PD016BLK"
szVfwBaseFileName       ="Pd016Vfw"
szVQJCcodec             ="Pd016dec.dll"
szSTIDevice.GUID        ="{54F5B055-5303-4ca0-813B-C6194FC82F47}"


; Custom Property pages
szCustomInterface.GUID         ="{55C2D65B-947D-4983-8BEA-19CBBCB814F6}"
szCustomStreamConfig.GUID      ="{087DE99F-19F7-4a9b-B34B-9F171B53767B}"
szCustomDevSetting.GUID        ="{087DE99E-19F7-4a9b-B34B-9F171B53767B}"
szCustomBandingSetting.GUID    ="{7E82D160-CD87-4d3f-9376-9F5836D8B10D}"
szVFWNR.GUID                   ="{2FA4F053-6D60-4cb0-9503-8E89234F3F90}"
szVFWSG.GUID                   ="{2FA4F053-6D60-4cb0-9503-8E89234F3F91}"
