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

[Version]
Signature="$Windows NT$"

[Main.Uninstall.Devices]
USB\VID_041E&PID_4029
USB\VID_041E&PID_403f

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

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

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

[CtlCam.CopyUserDrivers]
V0100pin.dll   ; from Creative
V0100pin.crl   ; from Creative
V0100ext.ax    ; from Creative
V0100ext.crl   ; from Creative
V0100hwx.dll   ; from Creative
;V0100srv.exe   ; from Creative
CtCamMgr.dll   ; from Creative
V0100sti.dll

[CtlCam.CopyTwainFiles]
V0100Twn.ds
CtTwain.bff
CtTwain.crl
CtTwain.dll
gdiplus.dll
HookWnd.dll

[CtlCam.W2K.CopyWinFiles]
V0100cfg.exe   ; from Creative
VF0100.uns     ; from Creative

[CtlCam.W98.CopyWinFiles]
V0100cfg.exe   ; from Creative
VF0100.uns     ; from Creative
vfwupd.exe

[CtlCam.W98.CopyVfwDriver]
V0100vfw.drv

[CtlCam.W2K.CopyVfwDriver]
V0100vfw.dll

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

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%
HKCR,CLSID\%szSTIDevice.GUID%

HKLM,%MSRunOnce%,%szConfigAppRegistry%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%

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

[CtlCam.DelCatFile]
V0100dev.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
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0
{a5dcbf10-6530-11d2-901f-00c04fb951ed},0
{fb6c428a-0353-11d1-905f-0000c0cc16ba},0

[CtlCam.DelDevices]
USB\VID_041E&PID_4029
USB\VID_041E&PID_403f

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

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

MSMediaResourcesMSVideo="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szConfigRegistry        ="Software\Creative Tech\Web Cameras\VF0100"
szUninstall             ="Creative VF0100"
szVfwKey                ="VF0100VFW"
szVidServiceName        ="V0100VID"
szConfigAppRegistry     ="VF0100 Config Applet"

szSTIDevice.GUID  	="{0123601B-9892-4f43-96F5-F50CC6FDC740}"
