; AD308SC.inf     
; installation file for the Scanner Driver
; Color Scanner's setup file.
; Copyright (c) 2018. All rights reserved.
; Manufacturer: Aurora
;

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Company%

DriverVer = 04/21/2021,1.0.2
CatalogFile=AD308wia.cat


[SourceDisksFiles.x86]
AD308wiasec.dll=96
AD308wia.dll=96
AD308lld.dll = 96
AD308Apreg.dll =96
AD308ImgEffect.dll=96

AD308ds.ds = 3
AD308ImgEffect.dll = 3
AD308lld.dll = 3

; RC file
AD308twrczhcn.dll = 3
AD308twrcenus.dll = 3

; Help file
AD308twzhcn.chm = 4
AD308twenus.chm = 4
AD308.ini = 4

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

96 = %DISK%,,,AD308X86
3 = %DISK%,,,x32\AD308
4 = %DISK%,,,.



[SourceDisksFiles.amd64]
AD308wiasec.dll=99
AD308wia.dll = 99
AD308lld.dll = 99
AD308ImgEffect.dll=99
AD308ApReg.dll =99

AD308ds.ds = 3
AD308ImgEffect.dll = 3
AD308lld.dll = 3


; RC file
AD308twrczhcn.dll = 3
AD308twrcenus.dll = 3

; Help file
AD308twzhcn.chm = 4
AD308twenus.chm = 4
AD308.ini = 4

[SourceDisksNames.amd64]
2 = %Location%,,,

99 = %DISK%,,,AD308AMD64
3 = %DISK%,,,x32\AD308
4 = %DISK%,,,.

[DestinationDirs]
DefaultDestDir=11    
TWAINDRIVER.CopyFiles=10,"twain_32\Aurora\AD308"
TWAINDRIVER.amd64.CopyFiles=10,"twain_64\Aurora\AD308"
ICM.CopyFiles=23
INI.CopyFiles=10

TWAINDRIVER.Delfiles=10,"twain_32\Aurora\AD308"
TWAINDRIVER.amd64.Delfiles=10,"twain_64\Aurora\AD308"
ICM.Delfiles=23


[Manufacturer]
%Company%=Aurora, NTx86, NTx86.6.1, NTamd64, NTamd64.6.1


[Aurora.NTx86]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntx86,%AD308MNC_VIDPID%

[Aurora.NTx86.6.1]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntx86,%AD308MNC_VIDPID%

[Aurora.NTamd64]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntamd64,%AD308MNC_VIDPID%

[Aurora.NTamd64.6.1]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntamd64,%AD308MNC_VIDPID%

;---------------------------------------AD308 Install-------------------------------------

;----------------------------------------------------- 32-bit Windows XP & 2003 Server DDInstall Section ------------------------------------------------------
[SCANNER.WIA1.0DRIVER.ntx86]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA1.0DRIVER.DeviceData
AddReg=SCANNER.WIA1.0DRIVER.AddReg
;DelReg=SCANNER.WIA1.0DRIVER.DelReg
CopyFiles=SCANNER.WIA1.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA1.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA1.0DRIVER.ntx86.Services]
Include=sti.inf
Needs=STI.USBSection.Services


;------------------------------------------------------ 64 bit Windows XP & 2003 Server DDInstall Section -------------------------------------------------
[SCANNER.WIA1.0DRIVER.ntamd64]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA1.0DRIVER.amd64.DeviceData
AddReg=SCANNER.WIA1.0DRIVER.AddReg
;DelReg=SCANNER.WIA1.0DRIVER.DelReg
CopyFiles=SCANNER.WIA1.0DRIVER.CopyFiles,TWAINDRIVER.amd64.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA1.0DRIVER.Delfiles,TWAINDRIVER.amd64.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA1.0DRIVER.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services


;------------------------------------------------------ 32-bit Windows Vista & 2008 Server DDInstall Section ----------------------------------------------------
[SCANNER.WIA2.0DRIVER.ntx86]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA2.0DRIVER.DeviceData
AddReg=SCANNER.WIA2.0DRIVER.AddReg
;DelReg=SCANNER.WIA2.0DRIVER.DelReg
CopyFiles=SCANNER.WIA2.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA2.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA2.0DRIVER.ntx86.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;------------------------------------------------------ 64-bit Windows Vista & 2008 Server DDInstall Section -----------------------------------------------
[SCANNER.WIA2.0DRIVER.ntamd64]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA2.0DRIVER.amd64.DeviceData
AddReg=SCANNER.WIA2.0DRIVER.AddReg
;DelReg=SCANNER.WIA2.0DRIVER.DelReg
CopyFiles=SCANNER.WIA2.0DRIVER.CopyFiles,TWAINDRIVER.amd64.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA2.0DRIVER.Delfiles,TWAINDRIVER.amd64.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA2.0DRIVER.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;------------------------------------------------------------- Events ------------------------------------------------------------
[WIADRIVER.Events]
;not support
%ScanButton.Desc%=%ScanButton.Desc%,{C00EB795-8C6E-11d2-977A-0000F87A926F},*

;----------------------------------------------------------- DeviceData ----------------------------------------------------------
[SCANNER.WIA1.0DRIVER.DeviceData]
Server=local
TwainDS=%SCANNER.WIA1.0.DeviceDesc%
FilePrifix=AD308

[SCANNER.WIA1.0DRIVER.amd64.DeviceData]
Server=local
TwainDS=%SCANNER.WIA1.0.DeviceDesc%
FilePrifix=AD308

[SCANNER.WIA2.0DRIVER.DeviceData]
Server=local
UI Class ID={35546DDF-0CFC-4d57-860E-5B28B99649EA}
TwainDS=%SCANNER.WIA2.0.DeviceDesc%
FilePrifix=AD308

[SCANNER.WIA2.0DRIVER.amd64.DeviceData]
Server=local
UI Class ID={35546DDF-0CFC-4d57-860E-5B28B99649EA}
TwainDS=%SCANNER.WIA2.0.DeviceDesc%
FilePrifix=AD308

;-------------------------------------------------------- Add Register --------------------------------------------------------


[SCANNER.WIA1.0DRIVER.AddReg]
HKR,,USDClass,,%WIA1_GUID%
HKR,,FriendlyName,,%SCANNER.WIA1.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\%WIA1_GUID%,,,"Aurora AD308MNC Series WIA 1.0 Minidriver"
HKCR,CLSID\%WIA1_GUID%\InProcServer32,,,%11%\AD308wia.dll
HKCR,CLSID\%WIA1_GUID%\InProcServer32,ThreadingModel,,Both


[SCANNER.WIA2.0DRIVER.AddReg]
HKR,,HardwareConfig,1,1
HKR,,USDClass,,%WIA2_GUID%
HKR,,FriendlyName,,%SCANNER.WIA2.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\%WIA2_GUID%,,,"Aurora AD308MNC Series WIA 2.0 Minidriver"
HKCR,CLSID\%WIA2_GUID%\InProcServer32,,,%11%\AD308wiasec.dll
HKCR,CLSID\%WIA2_GUID%\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{35546DDF-0CFC-4d57-860E-5B28B99649EA},,,"WIA Driver UI Extension"


[SCANNER.PushApRegisterDlls]
11,,AD308ApReg.dll,1

;-------------------------------------------------------- Delete Register --------------------------------------------------------


;=================== ControlFlags ===========================
[ControlFlags]
; Remove comment from this line if all devices are PnP.
ExcludeFromSelect=*

;-------------------------------------------------------- Copy Files --------------------------------------------------------

[INI.CopyFiles]
AD308.ini

[SCANNER.WIA1.0DRIVER.CopyFiles]
AD308wia.dll
AD308lld.dll
AD308ImgEffect.dll
AD308ApReg.dll


[SCANNER.WIA2.0DRIVER.CopyFiles]
AD308wiasec.dll
AD308lld.dll
AD308ImgEffect.dll
AD308ApReg.dll

[TWAINDRIVER.CopyFiles]

AD308ds.ds
AD308ImgEffect.dll
AD308lld.dll


AD308twrczhcn.dll
AD308twzhcn.chm
AD308twrcenus.dll
AD308twenus.chm


[TWAINDRIVER.amd64.CopyFiles]

AD308ds.ds
AD308ImgEffect.dll
AD308lld.dll

AD308twrczhcn.dll
AD308twzhcn.chm
AD308twrcenus.dll
AD308twenus.chm

[ICM.CopyFiles]


;-------------------------------------------------------- Delete Files --------------------------------------------------------



[SCANNER.WIA1.0DRIVER.Delfiles]
AD308wia.dll
AD308lld.dll
AD308ImgEffect.dll
AD308ApReg.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
AD308wiasec.dll
AD308lld.dll
AD308ImgEffect.dll
AD308ApReg.dll

[TWAINDRIVER.Delfiles]

AD308ds.ds
AD308ImgEffect.dll
AD308lld.dll

AD308twrczhcn.dll
AD308twzhcn.chm
AD308twrcenus.dll
AD308twenus.chm


[TWAINDRIVER.amd64.Delfiles]
AD308ds.ds
AD308ImgEffect.dll
AD308lld.dll

AD308twrczhcn.dll
AD308twzhcn.chm
AD308twrcenus.dll
AD308twenus.chm


[ICM.Delfiles]


[Strings]
Company ="Aurora"
ProviderName="Aurora"
DISK = "Aurora AD308MNC Series Setup Disc"
Location="Aurora AD308MNC Series Setup Disc"
SCANNER.WIA1.0.DeviceDesc="Aurora AD308MNC Series Scanner"
SCANNER.WIA2.0.DeviceDesc="Aurora AD308MNC Series Scanner"
ScanButton.Desc="Scan Button"
RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
SCAN64 = "SCAN_AMD64" 
SCAN32 = "SCAN_X86" 
AD308MNC_VIDPID = "USB\VID_232B&PID_FF64&MI_01" ; AD308MNC
WIA1_GUID = "{D411FB0D-0C9C-4a59-8683-B8C5DAA6F6CE}"
WIA2_GUID = "{CD1EE532-32D5-41f3-9D8E-844FA6BB27C5}"