;---------------------------------------------------------------------------
; PD0620.UNS -- Creative WebCam Instant uninstallation
; Copyright (c) 2004 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"

[Main.Uninstall.Devices]
USB\VID_041E&PID_4034,CtlCam.Uninstall
USB\VID_041E&PID_4035,CtlCam.Uninstall

[Main.Uninstall.Opt]
;Common_Uninstall_Section=CtlCam.Comm.Uninstall
Device_Desc_For_Messages="Creative WebCam Instant"

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

; ----------------------------- FILES ---------------------------------
[CtlCam.CopyKernelDrivers]
P0620Vid.sys

[CtlCam.CopyUserDrivers]
P0620Hwx.dll
P0620Pin.dll   ; from Creative
P0620Pin.crl   ; from Creative
P0620Ext.ax    ; from Creative
P0620Ext.crl   ; from Creative
P0620sti.dll
CtCamMgr.dll

[CtlCam.CopyTwainFiles]
P0620Twn.ds

[CtlCam.W2K.CopyWinFiles]
P0620Cfg.exe   ; from Creative
Pd0620.uns     ; from Creative

[CtlCam.CopyWinFiles]
P0620Cfg.exe   ; from Creative
Pd0620.uns    ; from Creative
Vfwupd.exe

[CtlCam.CopyVfwDriver]
P0620Vfw.drv   ; from Creative

[CtlCam.W2K.CopyVfwDriver]
P0620Vfw.dll   ; from Creative
;----------------------- UNINSTALLATION -------------------------------------

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


[CtlCam.Uninstall.NT]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg
DelService=%szVidServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=CtlCam.DelIni
ctDelDevClassInst=CtlCam.DelDevClass
ctDelCatFile=CtlCam.DelCatFile
ctDelDevices=CtlCam.DelDevices
ctDelTempPreInsDir=CtlCam.DelDir


[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%
HKCR,CLSID\%szCustomDevSetting.GUID%
HKCR,CLSID\%szCustomBandingSetting.GUID%
HKCR,CLSID\%szCustomStreamConfig.GUID%
HKLM,%MSRunOnce%,%szConfigAppRegistry%
HKCR,CLSID\{C90E7D2D-D01B-4ece-A9A8-4757D7EFFF1A}
HKLM,System\CurrentControlSet\Control\MediaSets\%szCustomInterface.GUID%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%szCustomInterface.GUID%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%
HKCR,CLSID\{9C757C5A-8D95-453c-8284-906A68DC53FA}

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

[CtlCam.DelCatFile]
P0620.cat

[CtlCam.DelDir]
P0620Dev.inf

[CtlCam.DelDevClass]
{ff596e7c-6163-48b5-852f-e45752eed16f},%DELETE_CLASS_IF_NO_INST%
{65E8773D-8F56-11D0-A3B9-00A0C9223196},0
{6994ad05-93ef-11d0-a3cc-00a0c9223196},0
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0
{a5dcbf10-6530-11d2-901f-00c04fb951ed},0
{fb6c428a-0353-11d1-905f-0000c0cc16ba},0


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

[Strings]
SERVICE_STOP_SERVICE=0x200

MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSMediaResourcesMSVideo="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSVideoCapturePin.GUID ="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD0620"

szUninstall             ="Creative PD0620"
szVfwKey                ="P0620VFW"
szVidServiceName        ="PD0620VID"
szVfwBaseFileName       ="P0620Vfw"
szMJPGcodec             ="P0620JPG.dll"

; Custom Property pages
szCustomInterface.GUID           ="{9C757C5A-8D95-453c-8284-906A68DC53FA}"
szSTIDevice.GUID                 ="{80989FCE-A58A-4902-B5C8-37410E34023F}"
szSTIEventNewPic.GUID            ="{E76F3028-CA52-468e-B06E-2F32E2F6B59E}"
szSTIEventLaunch.GUID            ="{E76F3027-CA52-468e-B06E-2F32E2F6B59E}"

szCustomStreamConfig.GUID        ="{2C9ECE97-C894-4db1-B5BD-3A724D377371}"
szCustomDevSetting.GUID          ="{5F9C6883-0095-4f11-BBE4-3D212CBBC7D0}"
szCustomBandingSetting.GUID      ="{D4298A24-B7EB-4c63-9C66-19B1EB794EF8}"
