;---------------------------------------------------------------------------
; PD1030.UNS -- Creative WebCam Pro Camera uninstallation.
; Copyright (c) 2002-2003 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
Signature="$CHICAGO$"

[Main.Uninstall.Devices]
USB\VID_05A9&PID_A511,CtlCam.Uninstall

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

[DestinationDirs]
DefaultDestDir=11
CtlCam.Copy.KernelDrivers=10,System32\Drivers
CtlCam.Copy.TwainFiles=10,TWAIN_32\Creative
CtlCam.Copy.WinFiles=10
CtlCam.Copy.SettingFiles=10,OvtCam
CtlCam.Copy.UserDrivers=11

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

[CtlCam.Copy.KernelDrivers]
p1030vid.sys
p1030cam.sys 

[CtlCam.Copy.UserDrivers]
p1030vfw.drv
p1030vfw.dll
p1030usd.dll
p1030ext.dll
p1030ext.ax
p1030pin.dll
p1030pin.crl
p1030cfg.crl
p1030hwx.dll
p1030dex.ax
p1030dex.crl


[CtlCam.Copy.WinFiles]
pd1030.uns
p1030cfg.exe

[CtlCam.Copy.TwainFiles]
p1030twn.ds

[CtlCam.Copy.SettingFiles]
7620p.set
7620aep.set
6620p.set
customp.set
pd1030.cat

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

[CtlCam.Uninstall]
DelFiles=CtlCam.Copy.UserDrivers,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.WinFiles
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg
UpdateInis=CtlCam.DelIni
ctDelDevClassInst=CtlCam.DelDevClass,CtlCam.DelDevClassEx.W98
CtDelTempPreInsDir=Ctl.DelTemPreInsDir
;ctDelDevices=CtlCam.DelDevices.511P

[CtlCam.Uninstall.NT]
DelFiles=CtlCam.Copy.UserDrivers,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.WinFiles
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg
DelService=%sz511PServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=CtlCam.DelIni
ctDelDevClassInst=CtlCam.DelDevClass
ctDelDevices=CtlCam.DelDevices.511P
CtDelTempPreInsDir=Ctl.DelTemPreInsDir

[CtlCam.DelReg]
HKLM,%szConfigReg%
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%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%
HKLM,%MSMediaSets%\%szCustomInterface.GUID%
HKLM,%MSMediaSets%\{0E179372-ADA0-4f95-AE93-52F40D95168F}\PropertyPages\%szCustomDevSetting.GUID%
HKLM,%MSMediaSets%\{0E179372-ADA0-4f95-AE93-52F40D95168F}\PropertyPages\%szCustomBandingSetting.GUID%
HKLM,%MSMediaInterfaces%\%szCustomInterface.GUID%
HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%szCustomStreamConfig.GUID%
HKLM,Software\OmniVision\"PC Camera"

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

[CtlCam.DelDevClass]
{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

[CtlCam.DelDevClassEx.W98]
{6bdd1fc6-810f-11d0-bec7-08002be2092f},0

[CtlCam.DelDevices.511P]

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

[Ctl.DelTemPreInsDir]
Pd1030Dv.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"
MSVideoCapturePin.GUID ="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"

;----------------
; User-definable
;----------------
szCamSetting         ="CameraSetting"
szConfigReg          ="Software\Creative Tech\Web Cameras\PD1030"
szLaunchApp          ="Open Application"
szNewPicture         ="New Picture Captured"
szStiAppName         ="PC-CAM Center"
sz511PServiceName    =PD1030VID
szTwainDSDesc        ="Creative WebCam Pro"
szUninstall          ="Creative WebCam Pro"
szUninstallDisplay   ="Creative WebCam Pro Driver"
szVfwDeviceDesc      ="Creative WebCam Pro (VFW)"
szVfwKey             ="PD1030VFW"
szSTIDevice.GUID     ="{00506AC3-2B95-11d6-96C5-00D0B7C7235A}"

; Custom Property pages
szDSExtPageFile                  ="p1030ext.ax"
szPlugIn_CustomCameraProp        ="PD1030 Custom Camera Interface handler"
szPropPage_CustomDevSetting      ="PD1030 Custom Device Setting Property Page"
szPropPage_CustomBandingSetting  ="PD1030 Custom Banding Frequency Property Page"
szCustomInterface.GUID           ="{5722C312-0AC6-454c-AA42-25EB4F013DA5}"
szCustomDevSetting.GUID          ="{94009DA0-2B98-11d6-96C5-00D0B7C7235A}"
szCustomBandingSetting.GUID      ="{94009DA1-2B98-11d6-96C5-00D0B7C7235A}"
szCustomStreamConfig.GUID        ="{36BA2407-2DF6-49c8-AFCD-233A765E510F}"
