; MiiSW7.inf  -- Windows Still Image Setup File for USB1200 Scanner
; Note - this file is for Windows 98/98SE/ME/2000/XP only.
; Copyright (c) 2001 Microtek International Inc.

[Version]
LayoutFile=layout.inf, layout1.inf, layout2.inf
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Mfg%
DriverVer=12/04/2001,1.00.0001.1
CatalogFile=MiiSW7.cat

[ControlFlags]
ExcludeFromSelect=*

[SourceDisksNames]
168=%DiskName%,,

[SourceDisksFiles]
MSMD4W.dll=168
MSMWUD7.DLL=168
miiscan.sys=168
msmusd7.dll=168


[DestinationDirs]
; By default, files will be copied to \windows\system.
DefaultDestDir=11
;For 98
STI98MSMUSD7.CopyFiles=11
USB_98.CopySys32Files=10,system32\drivers
;For 2000
STI_MSMUSD7.CopyFiles=11
USB_2000.CopySys32Files=10,system32\drivers
;For WIA
USB.WIA.CopySys32Files=10,system32\drivers

[Manufacturer]
%Mfg%=Models, NT.5.1

[Models]
;For 98
%USB\VID_05DA&PID_30D4.DeviceDesc%=SM4900,USB\VID_05DA&PID_30D4

;For WIA
%USB\VID_05DA&PID_30D4.DeviceDesc%=SM4900.WIA,USB\VID_05DA&PID_30D4

;For Windows XP(Whistler) or later. (NTWIA)
[Models.NT.5.1]
%USB\VID_05DA&PID_30D4.DeviceDesc%=SM4900.NTWIA,USB\VID_05DA&PID_30D4

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

;*************************************************************************************
;            For Win98, 98SE
;*************************************************************************************
[SM4900]
DriverVer=12/01/2001,1.00.0001.1
SubClass=StillImage
DeviceType=1
Capabilities=0x03
Events=Microtek.Events.SECOT
DeviceData=SM4900_98.DeviceData
AddReg=USB_98MSMUSD7.AddReg
CopyFiles=STI98MSMUSD7.CopyFiles,USB_98.CopySys32Files,SM4900_98.CopyFiles
DeviceSubType=0x0101
ICMProfiles="sRGB Color Space Profile.icm"
DelFiles=SM4900_98.CopyFiles
UpdateInis=STI.Scanner.AddWinIni

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

[SM4900.Services]
AddService = miiscan, 0x00000002, usbScan_98.AddService

[usbScan_98.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

[USB_98MSMUSD7.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%\MSMUSD7.DLL
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,ThreadingModel,,"Apartment"

[SM4900_98.CopyFiles]
MSMD4W.dll

[STI98MSMUSD7.CopyFiles]
msmusd7.dll

[USB_98.CopySys32Files]
miiscan.sys

[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},**

;*************************************************************************************
;            For Win2000
;*************************************************************************************
[SM4900.NT]
DriverVer=12/04/2001,1.00.0001.1
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x03
Events=Microtek.Events.SECOT
DeviceData=SM4900_2000.DeviceData
AddReg=USB_2000MSMUSD7.Scanner.AddReg
CopyFiles=STI_MSMUSD7.CopyFiles,USB_2000.CopySys32Files,SM4900.NT.CopyFiles
DeviceSubType=0x0101
ICMProfiles="sRGB Color Space Profile.icm"
DelFiles=SM4900.NT.CopyFiles
UpdateInis=STI.Scanner.AddWinIni

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

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

[USB_2000MSMUSD7.Scanner.AddReg]
HKR,,HardwareConfig,1,2
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,"usbscan.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"

[SM4900.NT.CopyFiles]
MSMD4W.dll

[STI_MSMUSD7.CopyFiles]
msmusd7.dll

[USB_2000.CopySys32Files]
;usbscan.sys

;*************************************************************************************
;            For WIA
;*************************************************************************************
[SM4900.WIA]
DriverVer=12/04/2001,1.00.0001.1
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x13
Events=Event.FiveButton1
DeviceData=SM4900.WIA.DeviceData
AddReg=USB7.WIA.AddReg
CopyFiles=SM4900.WIA.CopyFiles,USD7.WIA.CopyFiles,USB.WIA.CopySys32Files
DelFiles=SM4900.WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
UpdateInis=STI.Scanner.AddWinIni

[SM4900.WIA.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[SM4900.WIA.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
; 3:SCSI, 5:USB, 9:1394
PortType=5

[SM4900.WIA.CopyFiles]
MSMD4W.dll

[USB7.WIA.AddReg]
;HKR,,DevLoader,,*NTKERN
;HKR,,NTMPDriver,,"USBSCAN.SYS"
HKR,,USDClass,,"{66CFF0C0-A94B-11d1-808C-0000E816F968}"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968},,,"Microtek STI USD Driver"
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,,,%11%\MSMWUD7.DLL
HKCR,CLSID\{66CFF0C0-A94B-11d1-808C-0000E816F968}\InProcServer32,ThreadingModel,,Both

;*************************************************************************************
;            For Windows XP NTWIA
;*************************************************************************************
[SM4900.NTWIA]
DriverVer=12/04/2001,1.00.0001.1
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x13
Events=Event.FiveButton1
DeviceData=SM4900.WIA.DeviceData
AddReg=USB7.WIA.AddReg
CopyFiles=SM4900.WIA.CopyFiles,USD7.WIA.CopyFiles,USB.WIA.CopySys32Files
;DelFiles=SM4900.WIA.CopyFiles
UninstallSection=Uninstall.SM4900_XP
ICMProfiles="sRGB Color Space Profile.icm"
UpdateInis=STI.Scanner.AddWinIni

[Uninstall.SM4900_XP]
DelFiles=SM4900.WIA.CopyFiles

[SM4900.NTWIA.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[USD7.WIA.CopyFiles]
MSMWUD7.DLL

[USB.WIA.CopySys32Files]
;USBSCAN.SYS

[Event.FiveButton1]
;Event2=%Scan%,{C84D0061-BDA8-11D1-BB99-0000E816F968},*
Event2=%Scan%,{A6C5A715-8C6E-11d2-977A-0000F87A926F},*
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"

Scan   = "Scan"
Email  = "E-Mail"
Copy   = "Copy"
Set    = "Setting"
Cancel = "Cancel"
OCR    = "OCR"
ToWeb  = "To-Web"

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

USB\VID_05DA&PID_30D4.DeviceDesc="USB1200 Scanner"
