;---------------------------------------------------------------------------
; PD1120.UNS -- Creative Camera Model Number P1120 uninstallation
; Copyright (c) 2003 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
Signature="$Windows NT$"

[Main.Uninstall.Devices]
USB\VID_041E&PID_401D
USB\VID_041E&PID_4021

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

[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\pd1120
CtlCam.W98.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

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

[CtlCam.CopyUserDrivers]
p1120pin.dll   ; from Creative
p1120pin.crl   ; from Creative
p1120ext.ax    ; from Creative
p1120ext.crl   ; from Creative
P1120hwx.dll   ; from Creative
P1120ctm.dll   ; from Creative
;P1120srv.exe   ; from Creative
CtCamMgr.dll   ; from Creative
P1120sti.dll
P1120if.dll
P1120GRA.dll
P1120JPG.dll
P1120Vex.loc

[CtlCam.CopyTwainFiles]
P1120DEP.dll
P1120Ctl.dll
P1120Twn.ds
P1120UI.dll
P1120Cap.dll
P1120Twn.pro
P1120Twn.loc

[CtlCam.W2K.CopyWinFiles]
p1120cfg.exe   ; from Creative
Pd1120.uns     ; from Creative

[CtlCam.W98.CopyWinFiles]
p1120cfg.exe   ; from Creative
Pd1120.uns     ; from Creative
vfwupd.exe

[CtlCam.W98.CopyVfwDriver]
p1120vfw.drv

[CtlCam.W2K.CopyVfwDriver]
p1120vfw.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%
HKCR,CLSID\%szCustomInterface.GUID%
HKCR,CLSID\%szCustomDevSetting.GUID%
HKCR,CLSID\%szCustomBandingSetting.GUID%
HKCR,CLSID\%szCustomStreamConfig.GUID%
;HKCR,CLSID\%szVFWNR.GUID%
;HKCR,CLSID\%szVFWSG.GUID%
HKLM,System\CurrentControlSet\Control\MediaSets\%szCustomInterface.GUID%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%szCustomInterface.GUID%

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

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

[CtlCam.DelCatFile]
p1120dev.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_401D
USB\VID_041E&PID_4021

;-----------------------  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\PD1120"
szUninstall             ="Creative PD1120"
szVfwKey                ="PD1120VFW"
szVidServiceName        ="P1120VID"
szConfigAppRegistry     ="PD1120 Config Applet"

; Custom Property pages
szCustomInterface.GUID          ="{F0C8D8C0-EE38-4e0e-9414-AA8811332997}"
szCustomStreamConfig.GUID       ="{81D4EF4B-3767-4068-990E-CCF6BBB772A4}"
szCustomBandingSetting.GUID	="{210C45D9-B752-4b8d-94BC-DB3B443ED2C1}"
szCustomDevSetting.GUID         ="{393BB71E-4E12-4001-919D-74C23DA4A165}"
szSTIDevice.GUID  		="{B1A2E53B-7164-4b4b-A9BC-2D57DBAB8B4F}"
;szVFWNR.GUID                    ="{9EEF2191-E7EB-43ff-ADE6-A27B5F0334B2}"
;szVFWSG.GUID                    ="{FD617ACC-80C1-442a-8BF1-BC7FC0C652E8}"
