;---------------------------------------------------------------------------
; P1070.INF -- Creative Camera Model Number P1070 installation
; Copyright (c) 2002-2003 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6BDD1FC6-810F-11D0-BEC7-08002BE2092F}
provider=%szMfg%
DriverVer=01/23/2003,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative

; This is the list of devices that we are talking about.
[Creative]
%szDeviceDesc% =CtlCam.Device, USB\VID_041E&PID_4016
%szDeviceDesc2%=CtlCam.Device_2, USB\VID_0DCA&PID_0005


[DestinationDirs]
DefaultDestDir = 11
CtlCam.CopyDrivers = 10,system32\drivers
CtlCam.CopyDrivers.NT = 10,system32\drivers
CtlCam.CopyTwain = 10,twain_32\Creative\PD1070
CtlCam.CopyWinFiles = 10
CtlCam.CopyUserDrivers = 11

[CtlCam.Device]
DriverVer=01/23/2003,%szVersion%
AddReg=CtlCam.AddReg, CtlCam.Uns.AddReg,CtlCam.RunOnce.AddReg
CopyFiles=CtlCam.CopyDrivers, CtlCam.CopyTwain, CtlCam.CopyWinFiles, CtlCam.CopyUserDrivers
SubClass=StillImage
DeviceType=2

[CtlCam.Device.NT]
DriverVer=01/23/2003,%szVersion%
AddReg=CtlCam.AddReg, CtlCam.Uns.AddReg.NT,CtlCam.RunOnce.AddReg
CopyFiles=CtlCam.CopyDrivers.NT, CtlCam.CopyTwain, CtlCam.CopyWinFiles, CtlCam.CopyUserDrivers
SubClass=StillImage
DeviceType=2

[CtlCam.Device_2]
DriverVer=01/23/2003,%szVersion%
AddReg=CtlCam.AddReg_2, CtlCam.Uns.AddReg,CtlCam.RunOnce.AddReg_2
CopyFiles=CtlCam.CopyDrivers, CtlCam.CopyTwain, CtlCam.CopyWinFiles, CtlCam.CopyUserDrivers
SubClass=StillImage
DeviceType=2

[CtlCam.Device_2.NT]
DriverVer=01/23/2003,%szVersion%
AddReg=CtlCam.AddReg_2, CtlCam.Uns.AddReg.NT,CtlCam.RunOnce.AddReg_2
CopyFiles=CtlCam.CopyDrivers.NT, CtlCam.CopyTwain, CtlCam.CopyWinFiles, CtlCam.CopyUserDrivers
SubClass=StillImage
DeviceType=2


[CtlCam.Device.NT.Services]
AddService = %szDeviceService%, 0x00000002, CtlCam.AddService

[CtlCam.Device_2.NT.Services]
AddService = %szDeviceService%, 0x00000002, CtlCam.AddService


[CtlCam.AddService]
DisplayName    = %CtlCam.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\p1070crt.sys


[CtlCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,p1070crt.sys
HKLM,%szConfigRegistry%,"Version",0,%szVersion%

; ** For add/remove programs applet **
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall usb\vid_041e&pid_4016 -pluginres p1070pin.crl"

[CtlCam.AddReg_2]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,p1070crt.sys
HKLM,%szConfigRegistry%,"Version",0,%szVersion%

; ** For add/remove programs applet **
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall usb\vid_0dca&pid_0005 -pluginres p1070pin.crl"

[CtlCam.RunOnce.AddReg]
HKLM,%MSRunOnce%,%szDeviceSetup%,,"RunDLL32.exe P1070pin.dll,RunDLL32EP 513"

[CtlCam.RunOnce.AddReg_2]
HKLM,%MSRunOnce%,%szDeviceSetup%,,"RunDLL32.exe P1070pin.dll,RunDLL32EP 514"


[CtlCam.Uns.AddReg]
HKR,,CtUnsPath,,"P1070.uns"
HKR,,CtUnsSection,,"CtlCam.Device.Uninstall"

[CtlCam.Uns.AddReg.NT]
HKR,,CtUnsPath,,"P1070.uns"
HKR,,CtUnsSection,,"CtlCam.Device.Uninstall.NT"


[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
p1070crt.sys=1,,
p1070bas.sys=1,,
p1070twn.ds=1,,
ctdrvins.exe=1,,
p1070.uns=1,,
p1070pin.crl=1,,
p1070pin.dll=1,,
p1070img.dll=1,,
p1070int.dll=1,,
t05-a02-f02.pack=1,,

[CtlCam.CopyDrivers]
p1070crt.sys,p1070crt.w9x
p1070bas.sys,p1070bas.w9x

[CtlCam.CopyDrivers.NT]
p1070crt.sys,p1070crt.w2k
p1070bas.sys,p1070bas.w2k

[CtlCam.CopyWinFiles]
ctdrvins.exe
p1070.uns

[CtlCam.CopyUserDrivers]
p1070pin.crl
p1070pin.dll
p1070img.dll
p1070int.dll

[CtlCam.CopyTwain]
p1070twn.ds
t05-a02-f02.pack

;---------------------------------------------------------------;

[Strings]
szMfg                ="Creative Labs"
szDeviceDesc         ="Creative CardCam"
szDeviceDesc2        ="Creative CardCam (BOOTLDR)"
szDeviceService      ="SMALUSB"
CtlCam.SvcDesc       ="Creative CardCam Driver"
szDiskName           ="Creative CardCam Installation Disk"
szUninstall          ="Creative CardCam"
szUninstallDisplay   ="Creative CardCam Driver"
szConfigRegistry     ="Software\Creative Tech\Dual Mode Cameras\PD1070"
MSRunOnce            ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
szDeviceSetup        ="Creative CardCam Setup"

szVersion            =1.01.01.00

