; Copyright (c) 2005 Hewlett-Packard Company;
; Composite scan STI/WIA .INF file
; Tulip Enabled.
; Note - this file is for Windows 2000/Windows XP and later  Win9X not supported!!
;
; Magic Keyword for scrubber
; {CA8734B2-3056-4335-8499-A824524C9F72}
;


[Version]
Signature="$Windows NT$"
Class=IMAGE
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Provider%
DriverVer=10/27/2009,3.0.0.0
CatalogFile.NT=hppasc08.cat

[DestinationDirs]
; By default, files will be copied to \windows\system.
DefaultDestDir=11
32on64_CopyFiles=16425
SPF_CopyFiles=11

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
"Hewlett-Packard"=HP,NTx86.5.1,NTx86.5.2, NTamd64,NT.6.0,NTAMD64.6.0

;STI Models -- use STI on 2K
[HP]
"HP LJ M1522n Scan"= STI_1522n_Inst, USB\vid_03f0&pid_4517&mi_00
"HP LJ M1522n Scan"= STI_1522n_NW,vid_03f0&pid_4517&IP_SCAN
"HP LJ M1522nf Scan"= STI_1522nf_Inst, USB\vid_03f0&pid_4C17&mi_00
"HP LJ M1522nf Scan"= STI_1522nf_NW,vid_03f0&pid_4C17&IP_SCAN

; Windows XP or later use WIA on XP or later
[HP.NTx86.5.1]
"HP LJ M1522n Scan"= WIA_1522n_Inst, USB\vid_03f0&pid_4517&mi_00
"HP LJ M1522n Scan"= WIA_1522n_NW,vid_03f0&pid_4517&IP_SCAN
"HP LJ M1522nf Scan"= WIA_1522nf_Inst, USB\vid_03f0&pid_4C17&mi_00
"HP LJ M1522nf Scan"= WIA_1522nf_NW,vid_03f0&pid_4C17&IP_SCAN 


; Windows Server 2003
[HP.NTx86.5.2]
"HP LJ M1522n Scan"= WIA_1522n_Inst_2K3, USB\vid_03f0&pid_4517&mi_00
"HP LJ M1522n Scan"= WIA_1522n_NW_2K3,vid_03f0&pid_4517&IP_SCAN
"HP LJ M1522nf Scan"= WIA_1522nf_Inst_2K3, USB\vid_03f0&pid_4C17&mi_00
"HP LJ M1522nf Scan"= WIA_1522nf_NW_2K3,vid_03f0&pid_4C17&IP_SCAN 

; Windows 64bit AMD
[HP.NTamd64]
"HP LJ M1522n Scan"= WIA_1522n_Inst_x64, USB\vid_03f0&pid_4517&mi_00
"HP LJ M1522n Scan"= WIA_1522n_NW_x64,vid_03f0&pid_4517&IP_SCAN
"HP LJ M1522nf Scan"= WIA_1522nf_Inst_x64, USB\vid_03f0&pid_4C17&mi_00
"HP LJ M1522nf Scan"= WIA_1522nf_NW_x64,vid_03f0&pid_4C17&IP_SCAN

;Windows Vista
[HP.NT.6.0]
"HP LJ M1522n Scan"= WIA_1522n_Inst.NT.6.0, USB\vid_03f0&pid_4517&mi_00
"HP LJ M1522n Scan"= WIA_1522n_NW.NT.6.0,vid_03f0&pid_4517&IP_SCAN
"HP LJ M1522nf Scan"= WIA_1522nf_Inst.NT.6.0, USB\vid_03f0&pid_4C17&mi_00
"HP LJ M1522nf Scan"= WIA_1522nf_NW.NT.6.0,vid_03f0&pid_4C17&IP_SCAN 

;Windows Vista 64
[HP.NTAMD64.6.0]
"HP LJ M1522n Scan"= WIA_1522n_Inst_Vista64, USB\vid_03f0&pid_4517&mi_00
"HP LJ M1522n Scan"= WIA_1522n_NW_Vista64,vid_03f0&pid_4517&IP_SCAN
"HP LJ M1522nf Scan"= WIA_1522nf_Inst_Vista64, USB\vid_03f0&pid_4C17&mi_00
"HP LJ M1522nf Scan"= WIA_1522nf_NW_Vista64,vid_03f0&pid_4C17&IP_SCAN 


; *****************************************************************************************
;           Windows 2000 Only (STI)
; *****************************************************************************************
[STI_1522n_Inst.NT]
SubClass=StillImage
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x10
DeviceData=STI_DeviceData
AddReg=STI_AddReg,ComReg,USReg,UserScanReg
CopyFiles=STI_CopyFiles,SPF_CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"

[STI_1522n_NW.NT]
SubClass=StillImage
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x10
DeviceData=STI_DeviceData
AddReg=STI_AddReg,ComReg,NetReg,UserScanReg
CopyFiles=STI_CopyFiles,SPF_CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[STI_1522n_Inst.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[STI_1522n_NW.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[STI_1522n_Inst.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[STI_1522n_NW.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[STI_1522n_Inst.NT.HW]
AddReg=HWModel1522n

[STI_1522n_NW.NT.HW]
AddReg=HWModel1522n 



[STI_1522nf_Inst.NT]
SubClass=StillImage
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x10
DeviceData=STI_DeviceData
AddReg=STI_AddReg,ComReg,USReg,UserScanReg
CopyFiles=STI_CopyFiles,SPF_CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"

[STI_1522nf_NW.NT]
SubClass=StillImage
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x10
DeviceData=STI_DeviceData
AddReg=STI_AddReg,ComReg,NetReg,UserScanReg
CopyFiles=STI_CopyFiles,SPF_CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[STI_1522nf_Inst.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[STI_1522nf_NW.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[STI_1522nf_Inst.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[STI_1522nf_NW.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[STI_1522nf_Inst.NT.HW]
AddReg=HWModel1522nf

[STI_1522nf_NW.NT.HW]
AddReg=HWModel1522nf

; *****************************************************************************************
;           Windows XP (Whistler) and later (WIA)
; *****************************************************************************************

[WIA_1522n_Inst.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"

[WIA_1522n_NW.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,NetReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522n_Inst.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522n_NW.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522n_Inst.NT.HW]
AddReg=HWModel1522n

[WIA_1522n_NW.NT.HW]
AddReg=HWModel1522n

[WIA_1522n_Inst.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[WIA_1522n_NW.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services



[WIA_1522nf_Inst.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"

[WIA_1522nf_NW.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522nf_Inst.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522nf_NW.NT.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522nf_Inst.NT.HW]
AddReg=HWModel1522nf

[WIA_1522nf_NW.NT.HW]
AddReg=HWModel1522nf

[WIA_1522nf_Inst.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[WIA_1522nf_NW.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;*******************************************************************************
; Windows Server 2003

[WIA_1522n_Inst_2K3]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"

[WIA_1522n_NW_2K3]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522n_Inst_2K3.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522n_NW_2K3.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522n_Inst_2K3.HW]
AddReg=HWModel1522n

[WIA_1522n_NW_2K3.HW]
AddReg=HWModel1522n

[WIA_1522n_Inst_2K3.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc

[WIA_1522n_NW_2K3.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc



[WIA_1522nf_Inst_2K3]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"

[WIA_1522nf_NW_2K3]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522nf_Inst_2K3.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522nf_NW_2K3.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522nf_Inst_2K3.HW]
AddReg=HWModel1522nf

[WIA_1522nf_NW_2K3.HW]
AddReg=HWModel1522nf

[WIA_1522nf_Inst_2K3.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc

[WIA_1522nf_NW_2K3.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc

;*******************************************************************************
; Windows x64

[WIA_1522n_Inst_x64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"

[WIA_1522n_NW_x64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522n_Inst_x64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522n_NW_x64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522n_Inst_x64.HW]
AddReg=HWModel1522n

[WIA_1522n_NW_x64.HW]
AddReg=HWModel1522n

[WIA_1522n_Inst_x64.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc

[WIA_1522n_NW_x64.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc




[WIA_1522nf_Inst_x64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"

[WIA_1522nf_NW_x64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x31
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522nf_Inst_x64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522nf_NW_x64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522nf_Inst_x64.HW]
AddReg=HWModel1522nf

[WIA_1522nf_NW_x64.HW]
AddReg=HWModel1522nf

[WIA_1522nf_Inst_x64.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc

[WIA_1522nf_NW_x64.Services]
Include=sti.inf
Needs=STI.USBSection.Services
AddService=stisvc,,ClassInstall32.Service.stisvc


;*******************************************************************************
; Windows Vista

[WIA_1522n_Inst.NT.6.0]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
CopyInf=hppcp608.inf,hppaew08.inf,hppcps08.inf,hppafx08.inf

[WIA_1522n_NW.NT.6.0]
Include=sti.inf
Needs=STI.SerialSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522n_Inst.NT.6.0.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522n_NW.NT.6.0.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522n_Inst.NT.6.0.HW]
AddReg=HWModel1522n

[WIA_1522n_NW.NT.6.0.HW]
AddReg=HWModel1522n

[WIA_1522n_Inst.NT.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[WIA_1522n_NW.NT.6.0.Services]
Include=sti.inf
Needs=STI.SerialSection.Services




[WIA_1522nf_Inst.NT.6.0]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
CopyInf=hppcp608.inf,hppaew08.inf,hppcps08.inf,hppafx08.inf

[WIA_1522nf_NW.NT.6.0]
Include=sti.inf
Needs=STI.SerialSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522nf_Inst.NT.6.0.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522nf_NW.NT.6.0.coinstallers]
AddReg=Coinstaller.AddReg
CopyFiles=Coinstaller.CopyFiles

[WIA_1522nf_Inst.NT.6.0.HW]
AddReg=HWModel1522nf

[WIA_1522nf_NW.NT.6.0.HW]
AddReg=HWModel1522nf

[WIA_1522nf_Inst.NT.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[WIA_1522nf_NW.NT.6.0.Services]
Include=sti.inf
Needs=STI.SerialSection.Services


;*******************************************************************************
; Windows Vista 64


[WIA_1522n_Inst_Vista64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"
CopyInf=hppdp608.inf,hppaew08.inf,hppdps08.inf,hppafx08.inf

[WIA_1522n_NW_Vista64]
Include=sti.inf
Needs=STI.SerialSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522n_Inst_Vista64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522n_NW_Vista64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522n_Inst_Vista64.HW]
AddReg=HWModel1522n

[WIA_1522n_NW_Vista64.HW]
AddReg=HWModel1522n

[WIA_1522n_Inst_Vista64.Services]
Include=sti.inf
Needs=STI.USBSection.Services
;AddService=stisvc,,ClassInstall32.Service.stisvc

[WIA_1522n_NW_Vista64.Services]
Include=sti.inf
Needs=STI.SerialSection.Services
;AddService=stisvc,,ClassInstall32.Service.stisvc




[WIA_1522nf_Inst_Vista64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"
CopyInf=hppcp608.inf,hppaew08.inf,hppcps08.inf,hppafx08.inf

[WIA_1522nf_NW_Vista64]
Include=sti.inf
Needs=STI.SerialSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x30
DeviceData=WIA_DeviceData
AddReg=WIA_AddReg_x64,USReg,UserScanReg,SpfReg,HPScan.SetupReg
CopyFiles=WIA_CopyFiles_x64,32on64_CopyFiles,SPF_CopyFiles
RegisterDlls=RegisterDlls_x64
ICMProfiles="sRGB Color Space Profile.icm"
PortSelect=NO

[WIA_1522nf_Inst_Vista64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522nf_NW_Vista64.coinstallers]
AddReg=Coinstaller_x64.AddReg
CopyFiles=Coinstaller_x64.CopyFiles

[WIA_1522nf_Inst_Vista64.HW]
AddReg=HWModel1522nf

[WIA_1522nf_NW_Vista64.HW]
AddReg=HWModel1522nf

[WIA_1522nf_Inst_Vista64.Services]
Include=sti.inf
Needs=STI.USBSection.Services
;AddService=stisvc,,ClassInstall32.Service.stisvc

[WIA_1522nf_NW_Vista64.Services]
Include=sti.inf
Needs=STI.SerialSection.Services
;AddService=stisvc,,ClassInstall32.Service.stisvc


[ClassInstall32.Service.stisvc]
DisplayName=%WIA.SvcDisplayName%
Description=%WIA.SvcDesc%
ServiceType=0x00000020  ; This is SERVICE_WIN32_SHARE_PROCESS
StartType=0x00000002    ; This is SERVICE_AUTOMATIC
ErrorControl=0x00000001 ; This is SERVICE_ERROR_NORMAL
StartName="NT AUTHORITY\LocalService"
Dependencies=RpcSs, ShellHWDetection
ServiceBinary=%11%\svchost.exe -k imgsvc
AddReg = WiaSvc.AddReg

[WiaSvc.AddReg]
HKR, Parameters, ServiceDll, 0x20000, "%%SystemRoot%%\System32\wiaservc.dll"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost",imgsvc,0x00010000,"StiSvc"

; *****************************************************************************************
;           Common sections
; *****************************************************************************************

;  This is for the coninstaller functionality that replaces VendorSetup
;  ***  Todo:  change the model to the model of your device that Wookie-Scan will recognize.
[HWModel1522n]
HKR,,CoinstallerModel,,"M1522n"

[HWModel1522nf]
HKR,,CoinstallerModel,,"M1522nf"

[Coinstaller.AddReg]
HKR,,CoInstallers32,0x00010000,"hppasc08.dll,HPScannerCoInstaller"

[Coinstaller_x64.AddReg]
HKR,,CoInstallers32,0x00010000,"hppasc08_x64.dll,HPScannerCoInstaller"

[STI_DeviceData]
TwainDS="HP LaserJet 1522"
InstallCLSID={9EE79F3E-707C-4280-8C22-00FEB9701E80}
InstallRegPath="Software\Hewlett-Packard\DigitalImaging"
TulipCLSID={DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}
ScanSettingsCLSID={64124ABF-4F3C-442C-AADB-81183644684B}
ConnectionTimeout=0x0A

[WIA_DeviceData]
TwainDS="HP LaserJet 1522"
InstallCLSID={9EE79F3E-707C-4280-8C22-00FEB9701E80}
InstallRegPath="Software\Hewlett-Packard\DigitalImaging"
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TulipCLSID={DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}
ScanSettingsCLSID={64124ABF-4F3C-442C-AADB-81183644684B}
ConnectionTimeout=0x0A

;
; TulipIOType - from Tulip doc for ENUM SCANNER_IO_TYPE
; 1 = USB, 2 = Parallel, 3 = SCSI, 4 = DOT4, 5 = IP (network), 6 = USB2, 7 = 1394 (firewire).

[STI_AddReg]
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*NTKERN
; Register the Tulip Common USD
HKR,,USDClass,,"{D3B4F0C6-93E4-4bac-B44D-70FD15A8C4B9}"
HKCR,CLSID\{D3B4F0C6-93E4-4bac-B44D-70FD15A8C4B9},,,"Hewlett-Packard Scanjet Tulip Common USD"
HKCR,CLSID\{D3B4F0C6-93E4-4bac-B44D-70FD15A8C4B9}\InProcServer32,,,%11%\hpst1522.dll
HKCR,CLSID\{D3B4F0C6-93E4-4bac-B44D-70FD15A8C4B9}\InProcServer32,ThreadingModel,,"Both"
HKR,DeviceData,HasScanButton,0x10001,1
HKR,DeviceData,Resolutions,0,"75,100,150,200,300,600,1200"
HKR,DeviceData,ResDefault,0x10001,200
HKR,DeviceData,LoadSettingsOnce,0x10001,1
HKR,DeviceData,ScrollCap0,0x10001,0
HKR,DeviceData,MaskADF,0x10001,0
;HKR,DeviceData,ADFLargerPgSz,0x10001,1
HKR,DeviceData,TwainDSmodule,0, "hpqgnds2"

[WIA_Addreg]
; This all depends on which kernel services you need
; Hardware configuration is not known
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*NTKERN
HKR,,CreateFileName,,AUTO
HKR,,CreateFileNamePort,,AUTO 

;HKR,,NTMPDriver,,"usbscan.sys"
; Register the Tulip Common USD
HKR,,USDClass,,"{9C778963-E8B9-49fa-8D81-16882FCE24CE}"
HKCR,CLSID\{9C778963-E8B9-49fa-8D81-16882FCE24CE},,,"Hewlett-Packard Scanjet Tulip Common USD"
HKCR,CLSID\{9C778963-E8B9-49fa-8D81-16882FCE24CE}\InProcServer32,,,%11%\hpxp1522.dll
HKCR,CLSID\{9C778963-E8B9-49fa-8D81-16882FCE24CE}\InProcServer32,ThreadingModel,,"Both"
HKR,DeviceData,HasScanButton,0x10001,1
HKR,DeviceData,Resolutions,0,"75,100,150,200,300,600,1200"
HKR,DeviceData,ResDefault,0x10001,200
HKR,DeviceData,LoadSettingsOnce,0x10001,1
HKR,DeviceData,ScrollCap0,0x10001,0
HKR,DeviceData,MaskADF,0x10001,0
;HKR,DeviceData,ADFLargerPgSz,0x10001,1
HKR,DeviceData,TwainDSmodule,0, "hpqgnds2"       

[WIA_Addreg_x64]
; This all depends on which kernel services you need
; Hardware configuration is not known
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*NTKERN
HKR,,CreateFileName,,AUTO
HKR,,CreateFileNamePort,,AUTO  

;HKR,,NTMPDriver,,"usbscan.sys"
; Register the Tulip Common USD
HKR,,USDClass,,"{9C778963-E8B9-49fa-8D81-16882FCE24CE}"
HKCR,CLSID\{9C778963-E8B9-49fa-8D81-16882FCE24CE},,,"Hewlett-Packard Scanjet Tulip Common USD"
HKCR,CLSID\{9C778963-E8B9-49fa-8D81-16882FCE24CE}\InProcServer32,,,%11%\hpxp1522_x64.dll
HKCR,CLSID\{9C778963-E8B9-49fa-8D81-16882FCE24CE}\InProcServer32,ThreadingModel,,"Both"
HKR,DeviceData,HasScanButton,0x10001,1
HKR,DeviceData,Resolutions,0,"75,100,150,200,300,600,1200"
HKR,DeviceData,ResDefault,0x10001,200
HKR,DeviceData,LoadSettingsOnce,0x10001,1
HKR,DeviceData,ScrollCap0,0x10001,0
HKR,DeviceData,MaskADF,0x10001,0
;HKR,DeviceData,ADFLargerPgSz,0x10001,1
HKR,DeviceData,TwainDSmodule,0, "hpqgnds2"       

[WIA_Addreg_NW]
HKR,,NTMPDriver,,"usbscan.sys"

[USReg]
HKR,DeviceData,TulipIOType,0x10001,1

[NetReg]
HKR,DeviceData,TulipIOType,0x10001,5
HKR,,CreateFileName,,AUTO

[ComReg]
; Register the Tulip Driver.
; TODO:  After you have build the Tulip driver for your scanner, do a "regsvr32 <dllname>" on
;        it.  Then goto the registry, and lookup the specifics in HKEY_CLASSES_ROOT/CLSID/{guid of 
;        your class}.  Replace the sections below with any changes that you find.  Leave the sections below 
;        for the proxy/stub the same (except for the name of the DLL).
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D},,,"scanner Class"
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\Implemented Categories\{3A10D4E3-3AFF-469F-92EE-1C013F0EB992}
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\Implemented Categories\{A2D2C384-2021-4105-B2A5-13313FEC1789}
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\Implemented Categories\{F2A5E1D0-F075-4A3B-9D2F-908B3BFE2DD2}
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\InprocServer32,,,%11%\hpptsp03.dll
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\InprocServer32,ThreadingModel,,"Both"
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\ProgID,,,"TULIPDriver.scanner.1"
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\TypeLib,,,"{03C51DEA-37ED-4e85-828C-2A62DB1FC323}"
HKCR,CLSID\{DCCD0D2D-F5E7-409d-87FD-86A06D3C011D}\VersionIndependentProgID,,,"TULIPDriver.scanner"
; Register the Tulip Driver Proxy Stub:  DO NOT change these settings (except for your dll name)
HKCR,CLSID\{45A6DE15-FA6C-48B6-AAF6-7B98158AC0F4},,,"PSFactoryBuffer"
HKCR,CLSID\{45A6DE15-FA6C-48B6-AAF6-7B98158AC0F4}\InProcServer32,,,%11%\hpptsp03.dll
HKCR,CLSID\{45A6DE15-FA6C-48B6-AAF6-7B98158AC0F4}\InProcServer32,ThreadingModel,,"Both"
HKLM,Software\CLASSES\Interface\{B59EE25B-8A4A-4798-8BB4-AE7AD33FBD4F},,,"IButton"
HKLM,Software\CLASSES\Interface\{B59EE25B-8A4A-4798-8BB4-AE7AD33FBD4F}\ProxyStubClsid32,,,"{45A6DE15-FA6C-48B6-AAF6-7B98158AC0F4}"
HKLM,Software\CLASSES\Interface\{B59EE25B-8A4A-4798-8BB4-AE7AD33FBD4F}\NumMethods,,,"8"
HKLM,Software\CLASSES\Interface\{26955994-8038-444B-82FD-794A41367DD7},,,"IScanner"
HKLM,Software\CLASSES\Interface\{26955994-8038-444B-82FD-794A41367DD7}\ProxyStubClsid32,,,"{45A6DE15-FA6C-48B6-AAF6-7B98158AC0F4}"
HKLM,Software\CLASSES\Interface\{26955994-8038-444B-82FD-794A41367DD7}\NumMethods,,,"20"
HKLM,Software\CLASSES\Interface\{966051B8-E98E-4BC2-9F52-822FD7F199C4},,,"IStringTable"
HKLM,Software\CLASSES\Interface\{966051B8-E98E-4BC2-9F52-822FD7F199C4}\NumMethods,,,"6"
HKLM,Software\CLASSES\Interface\{966051B8-E98E-4BC2-9F52-822FD7F199C4}\ProxyStubClsid32,,,"{45A6DE15-FA6C-48B6-AAF6-7B98158AC0F4}"

[UserScanReg]
HKLM,Software\Hewlett-Packard\DigitalImaging\,MfgCtxInfoFile,,"$TargetDir$\\CtxMgr.ini"
HKLM,Software\Hewlett-Packard\DigitalImaging\CtxMgr\,MfgCtxInfoFile,,"$TargetDir$\\CtxMgr.ini"
HKCR,CLSID\{68961B23-E3E2-4D7C-9072-6363436C1B25}\ClassData\,DefMfg,,"Hewlett-Packard"

[HPScan.SetupReg]
; This marks this SW instance so that we can obtain the instance id and the InstallCLSID
; This key is needed for Setup functionality - the ChangeRegValue executable can
; handle this independently.
HKR,,LJ_LastInstalled,,"True"


[CUEVendorSetupReg]
; This marks this SW instance as a CUE device needing a TWAIN32 subdir created.
; This key is only needed for VendorSetup functionality - the CoInstaller can
; handle this independently.
HKR,,NeedsTWAIN32Dir,,"True"

[SpfReg]
HKLM,Software\Hewlett-Packard\DigitalImaging\,SJPPath,,%11%

[RegisterDlls]
; New Whistler Directive for Component registration.
; This replaces all the COM crap that had to be done in the [ComReg] section.
11,,hpptsp03.dll,1
11,,hpxp1522.dll,1

[STI_CopyFiles]
hpst1522.dll
hppasc08.dll
hpptsp03.dll
;hpzjrd01.dll,,,0x20

[WIA_CopyFiles]
hpxp1522.dll
hppasc08.dll
hpptsp03.dll
;hpzjrd01.dll,,,0x20

[RegisterDlls_x64]
; New Whistler Directive for Component registration.
; This replaces all the COM crap that had to be done in the [ComReg] section.
11,,hpptsp03_x64.dll,1
11,,hpxp1522_x64.dll,1
16425,,hpptsp03.dll,1 


[WIA_CopyFiles_x64]
hpxp1522_x64.dll
hppasc08_x64.dll
hpptsp03_x64.dll
;hpzjrd01.dll,hpzjrd01_x64.dll,,,0x20

[32on64_CopyFiles]
hpptsp03.dll
;hpzjrd01.dll,,,0x20
[SPF_CopyFiles]
hppls1522.spf

[Coinstaller.CopyFiles]
hppasc08.dll

[Coinstaller_x64.CopyFiles]
hppasc08_x64.dll

[SourceInfo]
; Used by the co-installer to figure out where the original media is located.
OriginalInfSourcePath = %1%

[InstallData]
DataFileName=hppapr08.dat

;  Ordinal 99 is used rather that 1 to prevent conflicts with the WinNT layout.inf files.
[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksNames.x86]
1=%DiskName%,,,

[SourceDisksNames.amd64]
1=%DiskName%,,

[SourceDisksFiles]
hpst1522.dll=1
hppasc08.dll=1
hpptsp03.dll=1

hppcp608.inf=1
hppdp608.inf=1
hppaew08.inf=1
hppcps08.inf=1
hppdps08.inf=1
hppafx08.inf=1
hppls1522.spf=1

[SourceDisksFiles.x86]
hpst1522.dll=1
hppasc08.dll=1
hpptsp03.dll=1
hpxp1522.dll=1
;hpzjrd01.dll=1

hppcp608.inf=1
hppdp608.inf=1
hppaew08.inf=1
hppcps08.inf=1
hppdps08.inf=1
hppafx08.inf=1
hppls1522.spf=1

[SourceDisksFiles.amd64]
hppasc08_x64.dll=1
hpptsp03_x64.dll=1
hpxp1522_x64.dll=1
;hpzjrd01_x64.dll=1

hppcp608.inf=1
hppdp608.inf=1
hppaew08.inf=1
hppcps08.inf=1
hppdps08.inf=1
hppafx08.inf=1
hppls1522.spf=1

[Strings]
; Always put strings down here so they can be easily localized to
; other languages.
Provider="Hewlett-Packard"
Mfg="Hewlett-Packard"
DiskName="HP Scanning Software"
1522n.DeviceDesc="HP LJ M1522n Scan"
1522nf.DeviceDesc="HP LJ M1522nf Scan" 
SAMPLE_SCAN="Scan To button press"
SAMPLE_WEB="Share-to-Web button press"
SAMPLE_PHOTO="Photo Reprint button press"
SAMPLE_EMAIL="E-mail button press"
SAMPLE_COPY="Copy button press"
SAMPLE_TOOLS="More Options button press"
LAUNCH_APPLICATION_SCAN="HP Precisionscan Pro"
LAUNCH_APPLICATION_WEB="Share-to-Web"
LAUNCH_APPLICATION_PHOTO="Photo Reprint"
LAUNCH_APPLICATION_EMAIL="E-mail"
LAUNCH_APPLICATION_COPY="HP Scanjet Copy Utility"
LAUNCH_APPLICATION_TOOLS="HP Scanjet Button Options"
WIA.SvcDisplayName="Windows Image Acquisition (WIA)"
WIA.SvcDesc="Provides image acquisition services for scanners and cameras."
