[Version]
LayoutFile=layout.inf, layout1.inf, layout2.inf
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Mfg%

;============================================================================
[ControlFlags]
ExcludeFromSelect=*

;============================================================================
[DestinationDirs]
DefaultDestDir=11                                ; LDID_SYS
DfltDS.CopyFiles=10,TWAIN_32\SCANWIZ5            ; LDID_WIN\TWAIN_32\MiiTWAIN
;
1394.Sys32.CopyFiles=10,system32\drivers  ; LDID_WIN\SYSTEM32\DRIVERS
USB.Sys32.CopyFiles=10,system32\drivers   ; LDID_WIN\SYSTEM32\DRIVERS
STIUSD.CopyFiles=11
SM5700.Driver.CopyFiles=10,TWAIN_32\SCANWIZ5

;============================================================================
[Manufacturer]
%Mfg%=Models

;============================================================================
[Models]
%SBP2\MICROTEK&1394_SCANNER.DeviceDesc%=SM5700_1394.Scanner,SBP2\MICROTEK&1394_SCANNER&CmdSetId104d8
%SBP2\0000D0B9&00BD.DeviceDesc%=SM5700_1394.Scanner,SBP2\0000D0B9&00BD&CmdSetId104d8
%USB\VID_05DA&PID_20BD.DeviceDesc%=SM5700_USB.Scanner,USB\VID_05DA&PID_20BD
%SBP2\0000D0B9&00C9.DeviceDesc%=SM5700_1394.Scanner,SBP2\0000D0B9&00C9&CmdSetId104d8
%USB\VID_05DA&PID_20C9.DeviceDesc%=SM5700_USB.Scanner,USB\VID_05DA&PID_20C9

;----------------------------------------------------------------------------
[SM5700_1394.Scanner]
SubClass=StillImage
DeviceType=1
Capabilities=3
Events=Microtek.Events.FiveButton
DeviceData=SM5700_1394.DeviceData
AddReg=1394.Scanner.AddReg
CopyFiles=SM5700.Driver.CopyFiles,STIUSD.CopyFiles,1394.Sys32.CopyFiles
UpdateInis=1394.Scanner.AddWinIni
DeviceSubType=0x0101
ICMProfiles="sRGB Color Space Profile.icm"
UninstallSection=Uninstall.SM5700_1394

[Uninstall.SM5700_1394]
DelFiles=SM5700.Driver.CopyFiles,DfltDS.CopyFiles

[SM5700_1394.Scanner.Services]
AddService = scsi1394, 0x00000002, scsi1394.AddService

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

[SM5700_1394.DeviceData]
TwainDS=%T25ScanWizard32%
; 0:Flatbed, 1:Transmittive, 2:Sheetfeed
Type=0
; 9:FireWire port
PortType=9

[1394.Scanner.AddWinIni]
win.ini,Microtek,,"Interface=STI",0

;============================================================================
[RestoreSTI]
CopyFiles=STIUSD.CopyFiles

[1394.Scanner.AddReg]
;HKR,,HardwareConfig,1,2
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,scsi1394.sys
;
HKR,,USDClass,,"{66CFF0C0-A94B-11d1-808C-0000E816F968}"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968},,,"Microtek FireWire Scanner"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,,,%11%\MSMUSD.DLL
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,ThreadingModel,,"Apartment"

;----------------------------------------------------------------------------
[SM5700_USB.Scanner]
SubClass=StillImage
DeviceType=1
Capabilities=3
Events=Microtek.Events.FiveButton
DeviceData=SM5700_USB.DeviceData
AddReg=USB.Scanner.AddReg
CopyFiles=SM5700.Driver.CopyFiles,STIUSD.CopyFiles,USB.Sys32.CopyFiles
UpdateInis=USB.Scanner.AddWinIni
DelFiles=USB.Scanner.DelSysFiles,USB.Scanner.DelWinFiles
DelReg=USB.Scanner.DelReg
;PropertyPages="MSMCPL.CPL,EnumStiPropPages"
DeviceSubType=0x0101
;VendorSetup="MSMSET.dll,SetupSMDS"
;ICMProfiles="sRGB Color Space Profile.icm"

[SM5700_USB.DeviceData]
TwainDS=%T25ScanWizard32%
; 0:Flatbed, 1:Transmittive, 2:Sheetfeed
Type=0
; 5:USB port
PortType=5

[USB.Scanner.AddWinIni]
win.ini,Microtek,,"Interface=STI",0

[SM5700_USB.Scanner.Services]
AddService = miiscan, 0x00000002, usbscan.AddService

[usbscan.AddService]
DisplayName    = %miiscan.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\miiscan.sys
LoadOrderGroup = Base

;----------------------------------------------------------------------------
[USB.Scanner.AddReg]
HKR,,HardwareConfig,1,4
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,MIISCAN.SYS
HKR,,USDClass,,"{66CFF0C0-A94B-11d1-808C-0000E816F968}"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968},,,"Microtek USB Scanner"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,,,%11%\MSMUSD.DLL
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,ThreadingModel,,"Apartment"

[USBnoMSMUSD.Scanner.AddReg]
HKR,,HardwareConfig,1,4
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,MIISCAN.SYS
HKR,,USDClass,,"{66CFF0C0-A94B-11d1-808C-0000E816F968}"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968},,,"Microtek USB Scanner"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,,,%11%\
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,ThreadingModel,,"Apartment"

;============================================================================
[Microtek.Events.FiveButton]
Event2=%Scan%,{C84D0061-BDA8-11D1-BB99-0000E816F968},*
;Event3=%Set%,{885389A0-223A-11D3-AC6A-0080C847878D},*
Event4=%Email%,{8A8CB0C0-223A-11D3-AC6A-0080C847878D},*
Event5=%Copy%,{8C37EFC0-223A-11D3-AC6A-0080C847878D},*
;Event6=%Cancel%,{F0C68700-B6FD-11d3-95EA-444553540000},*
Event7=%OCR%,{51C56A5B-EB5D-4951-9EC5-F977A2018207},*
Event8=%ToWeb%,{F16569AD-57AB-4485-AA4F-C0DE000AE04C},*

;== COPY FILES  ============================================================
[DfltDS.CopyFiles]

[STIUSD.CopyFiles]
;msmusd.dll

[1394.Sys32.CopyFiles]
;scsi1394.sys

[USB.Sys32.CopyFiles]
;miiscan.sys

[SM5700.Driver.CopyFiles]
;SMBD32.DLL

;============================================================================
[Strings]
Msft = "Microsoft"
Mfg = "Microtek"

scsiscan.SvcDesc = "SCSI Scanner Driver"
miiscan.SvcDesc = "USB Scanner Driver"
scsi1394.SvcDesc = "FireWire Scanner Driver"

Button = "Go Button Press"
ADP    = "Auto Detect Paper"
Scan   = "Scan"
Email  = "E-Mail"
Copy   = "Copy"
OCR    = "OCR"
ToWeb  = "To Web"

ScanWizard32="Microtek Scan Module"
T25ScanWizard32="Microtek ScanWizard 5"

SBP2\MICROTEK&1394_SCANNER.DeviceDesc = "SM5700 (1394)"
SBP2\0000D0B9&00BD.DeviceDesc = "ScanMaker 5700 (FireWire)"
USB\VID_05DA&PID_20BD.DeviceDesc = "ScanMaker 5700 (USB)"
SBP2\0000D0B9&00C9.DeviceDesc = "ScanMaker 6700 (FireWire)"
USB\VID_05DA&PID_20C9.DeviceDesc = "ScanMaker 6700 (USB)"