;=======================================================================
;  Lenovo Scanner Setup File
;  Copyright (c) 2013 Lenovo (Beijing) Limited
;  Copyright (c) 2013 Brother Industries,LTD.
;  FileName   :  leimm12a.inf
;  Function   :  Scanner(Image)
;  I/F        :  USB
;  OS         :  XP / Vista / 7 / 8
;  Model      :  M2040
;                M1840
;                F2070
;                F2071H
;=======================================================================
[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Provider%
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%DriverPackageDisplayName%
DriverVer=12/10/2012,01.00.00.00
CatalogFile= leimm12a.cat

[Manufacturer]
%Manufact%=MODEL,NTx86.5.1.1,NTamd64.5.2.1,NTx86.6.0.1,NTamd64.6.0.1,NTx86.5.1,NTamd64.5.2

[MODEL]

[MODEL.NTx86.5.1.1]
%M2040.USB.SCN%  = M2040.USB.SCN.WXP32, USB\VID_17EF&PID_5615&MI_01
%M1840.USB.SCN%  = M1840.USB.SCN.WXP32, USB\VID_17EF&PID_5616&MI_01
%F2070.USB.SCN%  = F2070.USB.SCN.WXP32, USB\VID_17EF&PID_5617&MI_01
%F2071H.USB.SCN% = F2071H.USB.SCN.WXP32,USB\VID_17EF&PID_5618&MI_01

[MODEL.NTamd64.5.2.1]
%M2040.USB.SCN%  = M2040.USB.SCN.WXP64, USB\VID_17EF&PID_5615&MI_01
%M1840.USB.SCN%  = M1840.USB.SCN.WXP64, USB\VID_17EF&PID_5616&MI_01
%F2070.USB.SCN%  = F2070.USB.SCN.WXP64, USB\VID_17EF&PID_5617&MI_01
%F2071H.USB.SCN% = F2071H.USB.SCN.WXP64,USB\VID_17EF&PID_5618&MI_01

[MODEL.NTx86.6.0.1]
%M2040.USB.SCN%  = M2040.USB.SCN, USB\VID_17EF&PID_5615&MI_01
%M1840.USB.SCN%  = M1840.USB.SCN, USB\VID_17EF&PID_5616&MI_01
%F2070.USB.SCN%  = F2070.USB.SCN, USB\VID_17EF&PID_5617&MI_01
%F2071H.USB.SCN% = F2071H.USB.SCN,USB\VID_17EF&PID_5618&MI_01

[MODEL.NTamd64.6.0.1]
%M2040.USB.SCN%  = M2040.USB.SCN, USB\VID_17EF&PID_5615&MI_01
%M1840.USB.SCN%  = M1840.USB.SCN, USB\VID_17EF&PID_5616&MI_01
%F2070.USB.SCN%  = F2070.USB.SCN, USB\VID_17EF&PID_5617&MI_01
%F2071H.USB.SCN% = F2071H.USB.SCN,USB\VID_17EF&PID_5618&MI_01

[MODEL.NTx86.5.1]
; XP and later (Server & DomainControler)

[MODEL.NTamd64.5.2]
; XP and later (Server & DomainControler)

[ControlFlags]
ExcludeFromSelect=*

;----------------------------------------
; M2040
;----------------------------------------
;----------------------------------------
; XP32
;----------------------------------------
[M2040.USB.SCN.WXP32.NT]
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = M2040.USB.SCN.WXP32.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrScnUsb.CopyFiles,BrTwdsFe.M2040.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[M2040.USB.SCN.WXP32.NT.Services]
AddService = BrScnUsb, 0x00000002, BrScnUsb.AddService

[M2040.USB.SCN.WXP32.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%M2040.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%M2040.COINSTALLER.SCN%

[M2040.USB.SCN.WXP32.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; XP64
;----------------------------------------
[M2040.USB.SCN.WXP64.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = M2040.USB.SCN.WXP64.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrTwdsFe.M2040.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[M2040.USB.SCN.WXP64.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[M2040.USB.SCN.WXP64.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%M2040.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%M2040.COINSTALLER.SCN%

[M2040.USB.SCN.WXP64.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; Vista / 7 / 8
;----------------------------------------
[M2040.USB.SCN.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = M2040.USB.SCN.DeviceData
AddReg        = BrWia20USB.AddReg,BrModel.FB.AddReg
CopyFiles     = BrWia20MiniDrv.CopyFiles,BrTwdsFe.M2040.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[M2040.USB.SCN.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[M2040.USB.SCN.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%M2040.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%M2040.COINSTALLER.SCN%
ChangePaperSize=0

[M2040.USB.SCN.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; M1840
;----------------------------------------
;----------------------------------------
; XP32
;----------------------------------------
[M1840.USB.SCN.WXP32.NT]
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = M1840.USB.SCN.WXP32.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrScnUsb.CopyFiles,BrTwdsFe.M1840.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[M1840.USB.SCN.WXP32.NT.Services]
AddService = BrScnUsb, 0x00000002, BrScnUsb.AddService

[M1840.USB.SCN.WXP32.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%M1840.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%M1840.COINSTALLER.SCN%

[M1840.USB.SCN.WXP32.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; XP64
;----------------------------------------
[M1840.USB.SCN.WXP64.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = M1840.USB.SCN.WXP64.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrTwdsFe.M1840.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[M1840.USB.SCN.WXP64.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[M1840.USB.SCN.WXP64.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%M1840.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%M1840.COINSTALLER.SCN%

[M1840.USB.SCN.WXP64.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; Vista / 7 / 8
;----------------------------------------
[M1840.USB.SCN.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = M1840.USB.SCN.DeviceData
AddReg        = BrWia20USB.AddReg,BrModel.FB.AddReg
CopyFiles     = BrWia20MiniDrv.CopyFiles,BrTwdsFe.M1840.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[M1840.USB.SCN.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[M1840.USB.SCN.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%M1840.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%M1840.COINSTALLER.SCN%
ChangePaperSize=0

[M1840.USB.SCN.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; F2070
;----------------------------------------
;----------------------------------------
; XP32
;----------------------------------------
[F2070.USB.SCN.WXP32.NT]
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = F2070.USB.SCN.WXP32.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.ADF.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrScnUsb.CopyFiles,BrTwdsFe.F2070.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[F2070.USB.SCN.WXP32.NT.Services]
AddService = BrScnUsb, 0x00000002, BrScnUsb.AddService

[F2070.USB.SCN.WXP32.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%F2070.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%F2070.COINSTALLER.SCN%

[F2070.USB.SCN.WXP32.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; XP64
;----------------------------------------
[F2070.USB.SCN.WXP64.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = F2070.USB.SCN.WXP64.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.ADF.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrTwdsFe.F2070.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[F2070.USB.SCN.WXP64.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[F2070.USB.SCN.WXP64.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%F2070.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%F2070.COINSTALLER.SCN%

[F2070.USB.SCN.WXP64.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; Vista / 7 / 8
;----------------------------------------
[F2070.USB.SCN.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = F2070.USB.SCN.DeviceData
AddReg        = BrWia20USB.AddReg,BrModel.ADF.FB.AddReg
CopyFiles     = BrWia20MiniDrv.CopyFiles,BrTwdsFe.F2070.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[F2070.USB.SCN.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[F2070.USB.SCN.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%F2070.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%F2070.COINSTALLER.SCN%
ChangePaperSize=0

[F2070.USB.SCN.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; F2071H
;----------------------------------------
;----------------------------------------
; XP32
;----------------------------------------
[F2071H.USB.SCN.WXP32.NT]
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = F2071H.USB.SCN.WXP32.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.ADF.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrScnUsb.CopyFiles,BrTwdsFe.F2071H.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[F2071H.USB.SCN.WXP32.NT.Services]
AddService = BrScnUsb, 0x00000002, BrScnUsb.AddService

[F2071H.USB.SCN.WXP32.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%F2071H.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%F2071H.COINSTALLER.SCN%

[F2071H.USB.SCN.WXP32.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; XP64
;----------------------------------------
[F2071H.USB.SCN.WXP64.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = F2071H.USB.SCN.WXP64.DeviceData
AddReg        = BrWia10USB.AddReg,BrModel.ADF.FB.AddReg
CopyFiles     = BrWia10MiniDrv.CopyFiles,BrTwdsFe.F2071H.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[F2071H.USB.SCN.WXP64.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[F2071H.USB.SCN.WXP64.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%F2071H.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%F2071H.COINSTALLER.SCN%

[F2071H.USB.SCN.WXP64.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; Vista / 7 / 8
;----------------------------------------
[F2071H.USB.SCN.NT]
Include       = sti.inf
Needs         = STI.USBSection
SubClass      = StillImage
DeviceType    = 1
DeviceSubType = 0x1
Capabilities  = 0x39
PortSelect    = NO
Events        = BrEvents
DeviceData    = F2071H.USB.SCN.DeviceData
AddReg        = BrWia20USB.AddReg,BrModel.ADF.FB.AddReg
CopyFiles     = BrWia20MiniDrv.CopyFiles,BrTwdsFe.F2071H.CopyFiles,BrTwdsMain.CopyFiles,BrTwdsLang.CopyFiles
ICMProfiles   = "sRGB Color Space Profile.icm"

[F2071H.USB.SCN.NT.Services]
Include = sti.inf
Needs   = STI.USBSection.Services

[F2071H.USB.SCN.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%TWAINDS.Prefix%%F2071H.USB.SCN%
Model=0-GENERAL
STIFILE=%StiCoreFileName%
ModelName=%F2071H.COINSTALLER.SCN%
ChangePaperSize=0

[F2071H.USB.SCN.NT.CoInstallers]
AddReg=BrCoInstaller_AddReg
CopyFiles=BrCoInstaller.CopyFiles

;----------------------------------------
; Add reg DeviceData
;
[BrModel.FB.AddReg]
HKR,DeviceData,ScannerType     ,0x00000,2
HKR,DeviceData,DocHandling     ,0x00000,2
HKR,DeviceData,ResoType        ,0x00000,2
HKR,DeviceData,MaxResoNo       ,0x00000,8
HKR,DeviceData,MaxResoCatalog  ,0x00000,12
HKR,DeviceData,OpticalResoX    ,0x00000,600
HKR,DeviceData,OpticalResoY    ,0x00000,1200
HKR,DeviceData,BedDocWidth     ,0x00000,8268
HKR,DeviceData,BedDocHeight    ,0x00000,11456
HKR,DeviceData,EventImage      ,0x00000,1
HKR,DeviceData,EventOcr        ,0x00000,0
HKR,DeviceData,EventEmail      ,0x00000,1
HKR,DeviceData,EventFile2      ,0x00000,1
HKR,DeviceData,SetupInit       ,0x00000,1
HKR,DeviceData,EnCmpJ          ,0x00000,1
HKR,DeviceData,CmpRate         ,0x00000,2
HKR,DeviceData,Command-S       ,0x00000,1
HKR,DeviceData,Command-D       ,0x00000,1
HKR,DeviceData,Command-K       ,0x00000,0
HKR,DeviceData,SkeyHandling    ,0x00000,1
HKR,DeviceData,DuplexScn       ,0x00000,0
HKR,DeviceData,BedHReg         ,0x00000,1
HKR,DeviceData,FeederReg       ,0x00000,1
HKR,DeviceData,BrOemFlg	       ,0x00000,1

[BrModel.ADF.FB.AddReg]
HKR,DeviceData,ScannerType     ,0x00000,2
HKR,DeviceData,DocHandling     ,0x00000,3
HKR,DeviceData,ResoType        ,0x00000,2
HKR,DeviceData,MaxResoNo       ,0x00000,8
HKR,DeviceData,MaxResoCatalog  ,0x00000,12
HKR,DeviceData,OpticalResoX    ,0x00000,600
HKR,DeviceData,OpticalResoY    ,0x00000,1200
HKR,DeviceData,BedDocWidth     ,0x00000,8268
HKR,DeviceData,BedDocHeight    ,0x00000,11456
HKR,DeviceData,FeederDocWidth  ,0x00000,8268
HKR,DeviceData,FeederDocHeight ,0x00000,13763
HKR,DeviceData,EventImage      ,0x00000,1
HKR,DeviceData,EventOcr        ,0x00000,0
HKR,DeviceData,EventEmail      ,0x00000,1
HKR,DeviceData,EventFile2      ,0x00000,1
HKR,DeviceData,SetupInit       ,0x00000,1
HKR,DeviceData,EnCmpJ          ,0x00000,1
HKR,DeviceData,CmpRate         ,0x00000,2
HKR,DeviceData,Command-S       ,0x00000,1
HKR,DeviceData,Command-D       ,0x00000,1
HKR,DeviceData,Command-K       ,0x00000,0
HKR,DeviceData,SkeyHandling    ,0x00000,1
HKR,DeviceData,DuplexScn       ,0x00000,0
HKR,DeviceData,BedHReg         ,0x00000,1
HKR,DeviceData,FeederReg       ,0x00000,1
HKR,DeviceData,BrOemFlg	       ,0x00000,1

;----------------------------------------
; Add reg USB
;
[BrWia10USB.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{46F90428-C3F0-4abf-9D39-AB171EE06844}"
HKR,DeviceData,OpenTimeout,0x10001,360000
HKCR,CLSID\{46F90428-C3F0-4abf-9D39-AB171EE06844} ,,,%BrWiaUsd%
HKCR,CLSID\{46F90428-C3F0-4abf-9D39-AB171EE06844}\InProcServer32,,,%11%\%Wia10FileName%
HKCR,CLSID\{46F90428-C3F0-4abf-9D39-AB171EE06844}\InProcServer32,ThreadingModel,,"Both"

[BrWia20USB.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{A58BB267-E938-4927-95E6-92732E005CCC}"
HKR,DeviceData,OpenTimeout,0x10001,360000
HKCR,CLSID\{A58BB267-E938-4927-95E6-92732E005CCC} ,,,%BrWiaUsd%
HKCR,CLSID\{A58BB267-E938-4927-95E6-92732E005CCC}\InProcServer32,,,%11%\%Wia20FileName%
HKCR,CLSID\{A58BB267-E938-4927-95E6-92732E005CCC}\InProcServer32,ThreadingModel,,"Both"

[BrCoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"BrCiImg.dll,BrImgDrvCoInstaller"

;----------------------------------------
; Add Service
;
[BrScnUsb.AddService]
DisplayName    = %BrScnUsb.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\BrScnUsb.sys
LoadOrderGroup = Base

;----------------------------------------
; Events
;
[BrEvents]
ScanToOcr   = %ScanToOcr%,{9d095b89-37d6-4877-afed-62a297dc6dbe},*
ScanToSpApp = %ScanToSpApp%,{a6c5a715-8c6e-11d2-977a-0000f87a926f},*
ScanToEmail = %ScanToEmail%,{c686dcee-54f2-419e-9a27-2fc7f2e98f9e},*
ScanToFile  = %ScanToFile%,{fc4767c1-c8b3-48a2-9cfa-2e90cb3d3590},*

;----------------------------------------
; Copy Files USB
;
[BrScnUsb.CopyFiles]
BrScnUsb.sys

[BrWia10MiniDrv.CopyFiles]
BrWia12c.dll
BrUsi12c.dll
BrJDec.dll

[BrWia20MiniDrv.CopyFiles]
BrWi212c.dll
BrUsi12c.dll
BrJDec.dll

[BrCoInstaller.CopyFiles]
BrCiImg.dll

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

[BrTwdsMain.CopyFiles]
BrTwds.dll
BrTwdsUi.dll
BrTwdScn.dll
BrScnDev.dll
BrStiIf.dll
BrScnFlt.dll
BrTwJDec.dll

[BrTwdsLang.CopyFiles]
BRScnAru.chm
BRScnBul.chm
BRScnChn.chm
BRScnCht.chm
BRScnCze.chm
BRScnDan.chm
BRScnDut.chm
BRScnEng.chm
BRScnFin.chm
BRScnFrc.chm
BRScnFre.chm
BRScnGer.chm
BRScnHrv.chm
BRScnHun.chm
BRScnInd.chm
BRScnIta.chm
BRScnJpn.chm
BRScnKor.chm
BRScnNor.chm
BRScnPol.chm
BRScnPor.chm
BRScnPtb.chm
BRScnRom.chm
BRScnRus.chm
BRScnSlv.chm
BRScnSpa.chm
BRScnSrl.chm
BRScnSvk.chm
BRScnSwe.chm
BRScnTha.chm
BRScnTrk.chm
BRScnUkr.chm
BRScnUsa.chm
BRScnVit.chm
BrTwdAru.dll
BrTwdBul.dll
BrTwdChn.dll
BrTwdCht.dll
BrTwdCze.dll
BrTwdDan.dll
BrTwdDut.dll
BrTwdEng.dll
BrTwdFin.dll
BrTwdfrc.dll
BrTwdFre.dll
BrTwdGer.dll
BrTwdHrv.dll
BrTwdHun.dll
BrTwdInd.dll
BrTwdIta.dll
BrTwdJpn.dll
BrTwdKor.dll
BrTwdNor.dll
BrTwdPol.dll
BrTwdPor.dll
BrTwdPtb.dll
BrTwdRom.dll
BrTwdRus.dll
BrTwdSlv.dll
BrTwdSpa.dll
BrTwdSrl.dll
BrTwdSvk.dll
BrTwdSwe.dll
BrTwdTha.dll
BrTwdTrk.dll
BrTwdUkr.dll
BrTwdUsa.dll
BrTwdVit.dll

[BrTwdsFe.M2040.CopyFiles]
BrTwdFe.ds
TWM2040U.ini

[BrTwdsFe.M1840.CopyFiles]
BrTwdFe.ds
TWM1840U.ini

[BrTwdsFe.F2070.CopyFiles]
BrTwdFe.ds
TWF2070U.ini

[BrTwdsFe.F2071H.CopyFiles]
BrTwdFe.ds
TWF2071HU.ini

;----------------------------------------
; Destination Directories
;
[DestinationDirs]
DefaultDestDir       = 11
BrScnUsb.CopyFiles   = 12
BrTwdsMain.CopyFiles = 10,TWAIN_32\%TwainDirName%\Common
BrTwdsLang.CopyFiles = 10,TWAIN_32\%TwainDirName%\Lang

BrTwdsFe.M2040.CopyFiles  = 10,TWAIN_32\%TwainDirName%\M2040U
BrTwdsFe.M1840.CopyFiles  = 10,TWAIN_32\%TwainDirName%\M1840U
BrTwdsFe.F2070.CopyFiles  = 10,TWAIN_32\%TwainDirName%\F2070U
BrTwdsFe.F2071H.CopyFiles = 10,TWAIN_32\%TwainDirName%\F2071HU

;----------------------------------------
; Source Disks
;
[SourceDisksNames]
1 = %BrDrvDisk1%

[SourceDisksNames.x86]
3 = %BrDrvDisk1%,,,x86

[SourceDisksNames.amd64]
4 = %BrDrvDisk1%,,,amd64

[SourceDisksFiles]
;; System
BrScnUsb.sys = 1,,
;; StiCore
BrUsi12c.dll = 1,,
;; Twain
BrTwdFe.ds   = 1,,
BrTwds.dll   = 1,,
BrTwdsUi.dll = 1,,
BrTwdScn.dll = 1,,
BrScnDev.dll = 1,,
BrStiIf.dll  = 1,,
BrScnFlt.dll = 1,,
BrTwJDec.dll = 1,,
;; Twain Lang
BRScnAru.chm = 1,,
BRScnBul.chm = 1,,
BRScnChn.chm = 1,,
BRScnCht.chm = 1,,
BRScnCze.chm = 1,,
BRScnDan.chm = 1,,
BRScnDut.chm = 1,,
BRScnEng.chm = 1,,
BRScnFin.chm = 1,,
BRScnFrc.chm = 1,,
BRScnFre.chm = 1,,
BRScnGer.chm = 1,,
BRScnHrv.chm = 1,,
BRScnHun.chm = 1,,
BRScnInd.chm = 1,,
BRScnIta.chm = 1,,
BRScnJpn.chm = 1,,
BRScnKor.chm = 1,,
BRScnNor.chm = 1,,
BRScnPol.chm = 1,,
BRScnPor.chm = 1,,
BRScnPtb.chm = 1,,
BRScnRom.chm = 1,,
BRScnRus.chm = 1,,
BRScnSlv.chm = 1,,
BRScnSpa.chm = 1,,
BRScnSrl.chm = 1,,
BRScnSvk.chm = 1,,
BRScnSwe.chm = 1,,
BRScnTha.chm = 1,,
BRScnTrk.chm = 1,,
BRScnUkr.chm = 1,,
BRScnUsa.chm = 1,,
BRScnVit.chm = 1,,
BrTwdAru.dll = 1,,
BrTwdBul.dll = 1,,
BrTwdChn.dll = 1,,
BrTwdCht.dll = 1,,
BrTwdCze.dll = 1,,
BrTwdDan.dll = 1,,
BrTwdDut.dll = 1,,
BrTwdEng.dll = 1,,
BrTwdFin.dll = 1,,
BrTwdfrc.dll = 1,,
BrTwdFre.dll = 1,,
BrTwdGer.dll = 1,,
BrTwdHrv.dll = 1,,
BrTwdHun.dll = 1,,
BrTwdInd.dll = 1,,
BrTwdIta.dll = 1,,
BrTwdJpn.dll = 1,,
BrTwdKor.dll = 1,,
BrTwdNor.dll = 1,,
BrTwdPol.dll = 1,,
BrTwdPor.dll = 1,,
BrTwdPtb.dll = 1,,
BrTwdRom.dll = 1,,
BrTwdRus.dll = 1,,
BrTwdSlv.dll = 1,,
BrTwdSpa.dll = 1,,
BrTwdSrl.dll = 1,,
BrTwdSvk.dll = 1,,
BrTwdSwe.dll = 1,,
BrTwdTha.dll = 1,,
BrTwdTrk.dll = 1,,
BrTwdUkr.dll = 1,,
BrTwdUsa.dll = 1,,
BrTwdVit.dll = 1,,
;; Twain Setting
TWM2040U.ini  = 1,,
TWM1840U.ini  = 1,,
TWF2070U.ini  = 1,,
TWF2071HU.ini = 1,,

[SourceDisksFiles.x86]
;; WIA 1.0
BrWia12c.dll = 3,,
;; WIA 2.0
BrWi212c.dll = 3,,
;; other
BrJDec.dll   = 3,,
;; coinstaller
BrCiImg.dll  = 3,,

[SourceDisksFiles.amd64]
;; WIA 1.0
BrWia12c.dll = 4,,
;; WIA 2.0
BrWi212c.dll = 4,,
;; StiCore
BrUsi12c.dll = 4,,
;; other
BrJDec.dll   = 4,,
;; Coinstaller USB
BrCiImg.dll  = 4,,

;----------------------------------------
; Localizable Strings
;
[Strings]
Provider = "Lenovo"
Manufact = "Lenovo"
DriverPackageDisplayName = "F2070, F2071H, M1840, M2040"

BrDrvDisk1       = "Lenovo Scanner Driver Disk"
BrScnUsb.SvcDesc = "Lenovo USB Still Image driver"
BrWiaUsd         = "Lenovo Wia Scanner minidriver"

;; Events
ScanToOcr   = "Scan To OCR - Button Press"
ScanToSpApp = "Scan To Image - Button Press"
ScanToEmail = "Scan To E-mail - Button Press"
ScanToFile  = "Scan To File - Button Press"

;; 
TWAINDS.Prefix     = "TW-"          ;; Prefix of Wia Device Name
StiCoreFileName    = "BrUsi12c.dll"	;; STI CORE FILE NAME
StiCoreFileNameLAN = "BrNetSti.dll"	;; STI CORE FILE NAME
Wia10FileName      = "BrWia12c.dll"	;; WIA 1.0 FILE NAME
Wia20FileName      = "BrWi212c.dll"	;; WIA 2.0 FILE NAME
TwainDirName       = "BrSc12c"      ;; TWAIN Directory Name

;; Device Name
M2040.USB.SCN  = "Lenovo M2040"
M1840.USB.SCN  = "Lenovo M1840"
F2070.USB.SCN  = "Lenovo F2070"
F2071H.USB.SCN = "Lenovo F2071H"

;; Model Name USB
M2040.COINSTALLER.SCN  = "M2040"
M1840.COINSTALLER.SCN  = "M1840"
F2070.COINSTALLER.SCN  = "F2070"
F2071H.COINSTALLER.SCN = "F2071H"
