;---------------------------------------------------------------------------
; PD1170.UNS -- Creative WebCam Notebook uninstallation
; Copyright (c) 2003 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"

[Main.Uninstall.Devices]
USB\VID_0572&PID_0041,CtlCam.Uninstall
USB\VID_0572&PID_0042,CtlCam.Uninstall

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

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

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

[CtlCam.CopyKernelDrivers]
P1170Vid.sys

[CtlCam.CopyUserDrivers]
P1170Pin.dll      ; from Creative
P1170Pin.crl      ; from Creative
P1170Cfg.crl      ; from Creative
P1170HWX.dll      ; from Creative
P1170Sti.dll      ; stiusd
P1170Jpg.dll      ; MJPGcodec
p1170Ext.ax
p1170Ext.crl

[CtlCam.CopyTwainFiles]
P1170Twn.ds

[CtlCam.W2K.CopyWinFiles]
P1170Cfg.exe      ; from Creative
PD1170.uns        ; from Creative

[CtlCam.CopyWinFiles]
vfwupd.exe
P1170Cfg.exe      ; from Creative
PD1170.uns        ; from Creative

[CtlCam.CopyVfwDriver]
P1170Vfw.drv   ; from Creative

[CtlCam.W2K.CopyVfwDriver]
P1170Vfw.dll   ; from Creative


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

[CtlCam.Uninstall]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopyVfwDriver
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg; CtlCam.Service.DelReg
UpdateInis=CtlCam.DelIni
ctDelDevClassInst=CtlCam.DelDevClass

[CtlCam.Uninstall.NT]
DelFiles=CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
DelReg=CtlCam.DelReg,CtlCam.Vfw.DelReg
DelService=%szVidServiceName%,%SERVICE_STOP_SERVICE%,,
UpdateInis=CtlCam.DelIni
ctDelDevClassInst=CtlCam.DelDevClass

[CtlCam.DelReg]
HKLM,%szConfigRegistry%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%
HKCR,CLSID\%szCustomInterface.GUID%
HKCR,CLSID\%szCustomDevSetting.GUID%
HKCR,CLSID\%szCustomBandingSetting.GUID%
HKCR,CLSID\%szCustomStreamConfig.GUID%
HKCR,CLSID\%szVFWNR.GUID%
HKCR,CLSID\%szVFWSG.GUID%
HKCR,CLSID\{C90E7D2D-D01B-4ece-A9A8-4757D7EFFF1A}
HKLM,System\CurrentControlSet\Control\MediaSets\%szCustomInterface.GUID%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%szCustomInterface.GUID%
HKLM,%MSMediaResourcesMSVideo%\"MSVideo.%szVfwKey%=%szVfwBaseFileName%.dll"

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

[CtlCam.DelIni]
system.ini,drivers,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",,0
system.ini,drivers32,"vidc.mjpg=%szMJPGcodec%",,0

[CtlCam.DelRunApp]

[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
{1e84c900-7e70-11d0-a5d6-28db04c10000},0
{aa161700-9acb-11d4-8d5e-00902761eb53},0
{ee816e97-5a46-4760-863d-b681ad9ed655},0


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

[Strings]
SERVICE_STOP_SERVICE=0x200

MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSMediaResourcesMSVideo="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
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\PD1170"

szUninstall             ="Creative PD1170"
szVfwKey                ="PD1170VFW"
szVidServiceName        ="PD1170VID"
szVfwBaseFileName       ="P1170Vfw"
szMJPGcodec             ="P1170JPG.dll"

; Custom Property pages
szCustomInterface.GUID           ="{aa161700-9acb-11d4-8d5e-00902761eb53}" 
szCustomStreamConfig.GUID        ="{A34115C7-CB0E-4894-B3E5-B20798578B7C}"
szCustomBandingSetting.GUID      ="{E7516541-D8CC-4020-9D45-A8B6FCEF061E}"
szCustomDevSetting.GUID          ="{D434D58F-072B-415c-B473-D0F5F8669BE3}"
szVFWNR.GUID                     ="{2FA4F053-6D60-4cb0-9503-8E89234F3F80}"
szVFWSG.GUID                     ="{2FA4F053-6D60-4cb0-9503-8E89234F3F81}"
