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

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

;============================================================================
[DestinationDirs]
STI.CopyFiles=11 	                      		 ; LDID_SYS
USB.CopySys32Files=10,system32\drivers  	; LDID_WIN\SYSTEM32\DRIVERS
;
TAURUS.Scanner.CopyFiles=10,TWAIN_32\ScanWiz5	; LDID_WIN\TWAIN_32\MiiTWAIN

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

;============================================================================
[Models]
;%USB\VID_0461&PID_0348.DeviceDesc%=TAURUS.Scanner,USB\VID_0461&PID_0348
%USB\VID_05DA&PID_30CF.DeviceDesc%=TAURUS.Scanner,USB\VID_05DA&PID_30CF

;----------------------------------------------------------------------------
[TAURUS.Scanner]
SubClass=StillImage
DeviceType=1
Capabilities=0x13
Events=Microtek.Events.SECOT
DeviceData=TAURUS.DeviceData
AddReg=USB.Scanner.AddReg
CopyFiles=STI.CopyFiles,USB.CopySys32Files,TAURUS.Scanner.CopyFiles
DeviceSubType=0x0101
ICMProfiles="sRGB Color Space Profile.icm"
UninstallSection=Uninstall.TAURUS
UpdateInis=STI.Scanner.AddWinIni

[Uninstall.TAURUS]
DelFiles=TAURUS.Scanner.CopyFiles

[TAURUS.DeviceData]
TwainDS=%ScanWizard32%
Type=0
PortType=5

[TAURUS.Scanner.Services]
AddService = miiscan, 0x00000002, usbScan.AddService

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

;============================================================================
[RestoreSTI]
CopyFiles=USB.Scanner.CopyFiles

[USB.Scanner.AddReg]
HKR,,HardwareConfig,1,2
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%\MSMUSD7.DLL
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,ThreadingModel,,"Apartment"


;============================================================================
[TAURUS.Scanner.CopyFiles]
;MSSTI.DLL
;SMFF32.DLL

[STI.CopyFiles]
;msmusd7.dll

[USB.CopySys32Files]
;miiscan.sys

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

;============================================================================
[Microtek.Events.SECOT]
Event2=%Scan%,{C84D0061-BDA8-11D1-BB99-0000E816F968},*
Event4=%Email%,{8A8CB0C0-223A-11D3-AC6A-0080C847878D},*
Event5=%Copy%,{8C37EFC0-223A-11D3-AC6A-0080C847878D},*
Event7=%OCR%,{51C56A5B-EB5D-4951-9EC5-F977A2018207},*
Event8=%ToWeb%,{F16569AD-57AB-4485-AA4F-C0DE000AE04C},**

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

usbscan.SvcDesc = "USB Scanner Driver"
ScanWizard32="Microtek ScanWizard 5"

Button = "Go Button Press"
Scan   = "Scan"
Email  = "E-Mail"
Copy   = "Copy"

;USB\VID_0461&PID_0348.DeviceDesc="TAURUS -04610348"
USB\VID_05DA&PID_30CF.DeviceDesc="ScanMaker 4800"
