; *********************************************
; *     INF-File for MUSTEK Scanners          *
; *                                           *
; * Copyright (c) 1999-2000 Mustek Inc.       *
; *   Manufacturer: Mustek Inc.               *
; *                                           *
; * Patched to support modern OS (x86 only)   *
; * Windows XP, 2003, Vista, 2008, 7          *
; *********************************************

[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=Mustek
DriverVer=03/02/2010,2.6.0.0
Catalogfile=PS1usd.cat

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir=11                               ; \windows\system32
CopyFWFiles=10,system32\drivers                 ; \windows\system32\drivers
CopyTWAINFiles=10,TWAIN_32\S6U12K               ; \windows\TWAIN_32\S6U12K
CopyMiniDriversFiles=11                         ; \windows\system32
CopyKernelFiles=10,system32\drivers

DelFWFiles=10,system32\drivers                 ; \windows\system32\drivers
DelTWAINFiles=10,TWAIN_32\S6U12K
DelMiniDriversFiles=11
DelKernelFiles=10,system32\drivers

;**********
;* MODELS *
;**********

[Manufacturer]
%Mfg%=Models

[Models]
%A1.DeviceDesc%=A1.Scanner,USB\VID_05d8&PID_4002


[A1.Scanner]
SubClass                =StillImage
DeviceType              =1
DeviceSubType           =0x1
Capabilities            =0x33
Events=A1.Events
DeviceData=A1.DeviceData
AddReg=Scanner.AddReg
DelReg=DelTWAINReg
CopyFiles=CopyFWFiles,CopyTWAINFiles,CopyMiniDriversFiles,CopyKernelFiles
;UninstallSection=DelFWFiles,DelTWAINFiles,DelMiniDriversFiles,DelKernelFiles
ICMProfiles="sRGB Color Space Profile.icm"


[A1.Scanner.Services]
Addservice = GT680x,0x00000002,A1.AddService

[A1.DeviceData]
TServer=local
UI DLL=sti.dll
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}

[A1.Events]
ScanButton=%ScanButton.Desc%,{41132014-680C-4bab-96C4-DF3F9FE66CAF},Panel
CopyButton=%CopyButton.Desc%,{531E8DFF-BFD9-4249-B371-327ED0DE8A98},Panel
FaxButton=%FaxButton.Desc%,{69900071-C8D5-42e6-921C-F81BF70D3720},Panel
EmailButton=%EmailButton.Desc%,{5407C6A0-9887-4279-B35E-F15DB0039B23},Panel
PanelButton=%PanelButton.Desc%,{FD05DB0B-439D-4fa5-AF7C-FDC318D9F747},Panel

[Scanner.AddReg]
HKR,,DeviceType,1,1
HKR,,HardwareConfig,1,4
HKR,,DevLoader,0,*NTKERN
HKR,,NTMPDriver,0,gt680x.sys

HKR,,USDClass,,"{637D34CF-2CA1-4ef2-84FA-3BB0CD83CA1A}"
HKCR,CLSID\{637D34CF-2CA1-4ef2-84FA-3BB0CD83CA1A} ,,,"MicroDriver USD"
HKCR,CLSID\{637D34CF-2CA1-4ef2-84FA-3BB0CD83CA1A}\InProcServer32,,,%11%\PS1MiniDrv.DLL
HKCR,CLSID\{637D34CF-2CA1-4ef2-84FA-3BB0CD83CA1A}\InProcServer32,ThreadingModel,,"Both"

HKLM,SOFTWARE\Mustek Systems\WIA PS1,MiniDrvName,,"PS1MiniDrv.dll"
HKLM,SOFTWARE\Mustek Systems\WIA PS1,SpicallPath,,%10%\TWAIN_32\S6U12K\PS1spi.dll

[DelTWAINReg]
HKLM,SOFTWARE\Mustek Systems\WIA PS1

;****************
;* INSTALLATION *
;****************
[CopyTWAINFiles]
gtPS1.ini
PS1spi.dll

[CopyMiniDriversFiles]
PS1MiniDrv.dll

[CopyKernelFiles]
gt680x.sys

[CopyFWFiles]
PS1fw.usb

[SourceDisksNames]
56=%DiskName%,%DiskLabel%,

[SourceDisksFiles]
GT680x.SYS=56
PS1MiniDrv.dll=56
PS1fw.usb=56
PS1spi.dll=56
gtPS1.ini=56

[A1.AddService]
DisplayName    = GrandTechICNameNT
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL

ServiceBinary  = %10%\System32\Drivers\gt680x.sys

LoadOrderGroup = Base

;************
;* STRINGS  *
;************

[Strings]
Mfg="Mustek Systems Inc."
DiskName=""
A1.DeviceDesc="BearPaw 1200CU WIA Scanner"
GrandTechICNameNT="BearPaw 1200CU WIA Scanner"
DataSourceName="BearPaw 1200CU WIA Scanner"
SpecialInfo="BearPaw 1200CS Installation"

MiniDriverGuid="{637D34CF-2CA1-4ef2-84FA-3BB0CD83CA1A}"
DiskTitle="BearPaw 1200CU Installation Disk"
DiskLabel="Install"

ScanButton.Desc="Scan Button"
CopyButton.Desc="Copy Button"
FaxButton.Desc="Fax Button"
EmailButton.Desc="Email Button"
PanelButton.Desc="Panel Button"
