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

[Main.Uninstall.Devices]
USB\VID_041E&PID_4028
USB\VID_041E&PID_403E

[Main.Uninstall.Opt]
Common_Uninstall_Section=CtlCam.Uninstall
Device_Desc_For_Messages="Creative WebCam Vista Plus"

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

[CtlCam.CopyKernelDrivers]
V0090vid.sys

[CtlCam.CopyUserDrivers]
CtCamMgr.dll   ; from Creative
CtRegApp.dll   ; from Creative
CtCamPin.crl   ; from Creative
V0090Hwx.dll   ; from Creative
V0090Pin.dll   ; from Creative
V0090Sti.dll   ; from Creative
V0090Ext.ax    ; from Creative
V0090Ext.crl   ; from Creative
V0090Vfw.drv
V0090Vfw.dll

[CtlCam.CopyTwainFiles]
CtTwain.dll    ; from Creative
CtTwain.crl    ; from Creative
CtTwain.bff    ; from Creative
HookWnd.dll    ; from Creative
V0090Twn.ds    ; from Creative
Gdiplus.dll

[CtlCam.W2K.CopyWinFiles]
V0090Cfg.exe      ; from Creative
VF0090.uns        ; from Creative
VF0091.uns        ; from Creative

[CtlCam.CopyWinFiles]
V0090Cfg.exe      ; from Creative
VF0090.uns        ; from Creative
VF0091.uns        ; from Creative

[CtlCam.CopyVfwDriver]
V0090Vfw.drv      ; from Creative

[CtlCam.W2K.CopyVfwDriver]
V0090Vfw.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,CtlCam.Service.DelReg
UpdateInis=CtlCam.DelIni
;ctDelDevices=     CtlCam.DelDevices
ctDelDevClassInst=CtlCam.DelDevClass

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

[CtlCam.Service.DelReg]
HKLM,"%szServicePath%\%szVideoServiceName%

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,%MSUninstall%\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%
HKCR,CLSID\%szCustomInterface.GUID%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%
HKLM,%MSMediaSets%\%szCustomInterface.GUID%
HKLM,%MSMediaInterfaces%\%szCustomInterface.GUID%
HKLM,%MSUninstall%\"Creative VF0091"
HKLM,%MSMediaResMSVideo%\MSVideo.V0091VFW

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

[CtlCam.DelIni]
system.ini,drivers,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",,0
system.ini,drivers,"MSVideo.V0091VFW=%szVfwBaseFileName%.drv",,0

[CtlCam.DelDevices]
USB\VID_041E&PID_4043

[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

[CtlCam.DelDir]
V0090Dev.inf
V0091Dev.inf

;-----------------------  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\Web Cameras\VF0090"

szUninstall             ="Creative VF0090"
szVfwKey                ="V0090VFW"
szVideoServiceName      ="V0090VID"
szVfwBaseFileName       ="V0090Vfw"
szSTIDevice.GUID        ="{8AA633F4-E8F7-43bc-A07E-991A132EEA75}"
szServicePath           ="System\CurrentControlSet\Services"

; Custom Property pages
szCustomInterface.GUID         ="{A6E5982E-1C8B-4224-AE91-D35C6E5C69E6}"
