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

[Main.Uninstall.Devices]
USB\VID_041E&PID_401C
USB\VID_041E&PID_4020

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

[DestinationDirs]
DefaultDestDir=11
Cam.CopyKernDrivers=10,system32\drivers
Cam.CopyUserDrivers=11
Cam.CopyWinFiles=10
Cam.CopyTwainFiles=10,twain_32\Creative\PD1110
Cam.CopyVfwDriver=11
Cam.WNT.CopyVfwDriver=11

; ----------------------------- FILES ---------------------------------

[Cam.CopyWinFiles]
Pd1110.uns
P1110Cfg.exe
CtDrvIns.exe
Vfwupd.exe

[Cam.CopyKernDrivers]
P1110vid.sys
P1110Stb.sys

[Cam.CopyUserDrivers]
P1110Sti.dll
P1110Hwx.dll
P1110Pin.dll
P1110Aor.dll
CtCamMgr.dll
P1110Ext.ax
P1110Ext.crl
CtCamPin.crl
CtRegApp.dll

[Cam.CopyTwainFiles]
P1110Twn.ds
CtTwain.bff
CtTwain.crl
CtTwain.dll
HookWnd.dll
Gdiplus.dll

[Cam.CopyVfwDriver]
P1110Vfw.drv

[Cam.WNT.CopyVfwDriver]
P1110Vfw.dll

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

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

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

[Cam.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,%MSRun%,%szRegStiApp%
HKLM,%MSNetMeeting%\%szDeviceDesc%
HKLM,%MSNetMeetingFmtDef%\%szDeviceDesc%

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

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

[Cam.DelCatFile]
P1110Dev.cat

[Cam.DelDevices]
USB\VID_041E&PID_401c
USB\VID_041E&PID_4020

[Cam.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

[Cam.DelDir]
P1110Vid.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"
MSNetMeeting           ="Software\Microsoft\Conferencing\CaptureDevices"
MSNetMeetingFmtDef  ="Software\Microsoft\Conferencing\CaptureDefaultFormats"
MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"

; For uninstallation only
DELETE_CLASS_IF_NO_INST=1

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szDeviceDesc            ="Creative WebCam NX"
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD1110"
szRegStiApp             ="WebCam NX STI App Registration"

szUninstall             ="Creative PD1110"
szVfwKey                ="PD1110VFW"
szVideoServiceName      ="P1110VID"
szVfwBaseFileName       ="PD1110Vfw"
szSTIDevice.GUID        ="{80989FCE-A58A-4902-B5C8-37410E34023F}"

; Custom Property pages
szCustomInterface.GUID         ="{E76318AC-9EE6-4224-B25A-899383C6655C}"
