;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Fidmou.inf
;
; WindowsXP,2000(x86)
; Setup file for Fidmou driver
; All rights reserved,
; Copyright (C) Fujitsu Component Limited 2002
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Version]
Signature="$Windows NT$"
Provider=%FID%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=FIDMOU.cat
DriverVer=11/08/2002,2.0.4.2002

[DestinationDirs]
DefaultDestDir = 12
FID.CopySys    = 12
FID.CopyExe    = 11
FID.CopyDll    = 11
FID.CopyDel    = 11

[Manufacturer]
%FID%   = FID.Mfg

[ControlFlags]
ExcludeFromSelect.ntalpha=*

[FID.Mfg]
%FID.DeviceDesc0% = FIDMOU,*PNP0F13
%FID.DeviceDesc0% = FIDMOU,*PNP0F03

;--------------------------------------------------------------
; INSTALL section
;
[FIDMOU]
Include=msmouse.inf
Needs=PS2_Inst

DelReg      = FID.PrevDelReg
CopyFiles   = FID.CopySys, FID.CopyDel, FID.CopyExe, FID.CopyDll
AddReg      = FID.AddReg
Reboot      = 1

[FID.PrevDelReg]
HKLM, %RUNENTRY%, %FID.Run1%,
HKLM, %RUNENTRY%, %FID.Run3%
HKLM, %RUNONCE%,  %FID.Run5%
HKLM, %UNINST%

[FID.AddReg]
HKCU, Control Panel\Mouse,   DoubleClickHeight, 0x00000000, "34"
HKCU, Control Panel\Mouse,   DoubleClickWidth , 0x00000000, "34"
HKCU, Control Panel\Desktop, DragHeight,        0x00000000, "21"
HKCU, Control Panel\Desktop, DragWidth ,        0x00000000, "21"

HKLM, %RUNENTRY%, %FID.Run1%,        0x00020000, %FID.Run2%
;HKLM, %RUNENTRY%, %FID.Run3%,        0x00020000, %FID.Run4%
HKLM, %RUNONCE%,  %FID.Run5%,        0x00020000, %FID.Run6%

HKLM, %UNINST%,   DisplayName,       0x00020000, %FID.DeviceDesc0%
HKLM, %UNINST%,   UninstallString,   0x00020000, %FID.UNINSTEXE%

;[FIDMOU.PosDup]
;*PNP0F03, *PNP0F0E, *PNP0F12, *PNP0F13

[FID.CopySys]
Fidmou.sys

[FID.CopyDel]
Fidmou.del

[FID.CopyDll]
Fphook.dll
Fpcpx.dll
Fpcpx.hlp
FpcpxJ.hlp

[FID.CopyExe]
FPapli.exe
Fpchase.exe
Fidmouu.exe
Calwin.exe
Tprbtn.exe
Event.exe

;--------------------------------------------------------------
; Service
;
[FIDMOU.Services]
AddService = FIDMOU, , FIDMOU_Service_Inst, FIDMOU_EventLog_Inst
Include=msmouse.inf
Needs=PS2_Inst.Services

[FIDMOU_Service_Inst]
DisplayName    = %FID.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\Fidmou.sys

[FIDMOU_EventLog_Inst]
AddReg = FIDMOU_EventLog_AddReg

[FIDMOU_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\FIDMOU.sys"
HKR,,TypesSupported,0x00010001,7
HKCR,"CLSID\{35C01423-13CB-11d1-8D0C-004033926679}\InProcServer32",,,"fpcpx.dll"
HKCR,"CLSID\{35C01423-13CB-11d1-8D0C-004033926679}\InProcServer32","ThreadingModel",,"Apartment"
HKLM,%KEY_SHELLEX%,,,"%KEY_CLSPROP%"

HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, XL,              0x00000000, "80"
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, XH,              0x00000000, "930"
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, YL,              0x00000000, "100"
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, YH,              0x00000000, "860"
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Pointer Speed,   0x00010001, 0x00000004
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Pointer Acc,     0x00010001, 0x00000002
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, SCROLL speed,    0x00010001, 0x00000003
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, SCROLL x,        0x00010001, 0x00000000
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, SCROLL y,        0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Tap,             0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Double,          0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Drag,            0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Lock,            0x00010001, 0x00000000
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Lock Off,        0x00010001, 0x00000000
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Lock Off Time,   0x00010001, 0x000007D0
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, swap,            0x00010001, 0x00000000
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Type Off,        0x00010001, 0x00000000
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Type Off Time,   0x00010001, 0x00000BB8
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, WHEEL mode,      0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, SMI delay,       0x00010001, 0x000003E8
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, ABS delay,       0x00010001, 0x000003E8
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, filter,          0x00000000, "0"
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, res,             0x00000000, "2"
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Option,          0x00010001, 0x01000501
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Type,            0x00010001, 0x00000010
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, Transfer,        0x00010001, 0x003C0003
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, TPmodel,         0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, TPDoubleClick,   0x00010001, 0x10100258
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, TPRButton,       0x00010001, 0x00000001
HKCU, %SOFTWAREROOT%\FIDMOUPS2\V2.0, TPTandR,         0x00010001, 0x02000600

HKLM, %SERVICEROOT%\FIDMOU\Parameters, Version,       0x00000000, %FID.Ver%
HKLM, %SERVICEROOT%\FIDMOU\Parameters, Name,          0x00000000, %FID.DeviceDesc0%
HKLM, %SERVICEROOT%\FIDMOU\Parameters, Run App,       0x00000000, %FID.DeviceDesc0% %FID.Run1%
HKLM, %SERVICEROOT%\FIDMOU\Parameters, TPmodel,       0x00010001, 0x00000001
HKLM, %SERVICEROOT%\FIDMOU\Parameters, F4Timer,       0x00010001, 0x00000000

[FIDMOU.HW]
AddReg    = FIDMOU.HW.AddReg
Include=msmouse.inf
Needs=PS2_Inst.HW

[FIDMOU.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"FIDMOU"

[SourceDisksNames.x86]
1 = %DiskId%,,,""

[SourceDisksFiles]
Fidmou.sys  = 1,,
Fidmou.del  = 1,,
Calwin.exe  = 1,,
FPapli.exe  = 1,,
Event.exe   = 1,,
Tprbtn.exe  = 1,,
Fidmouu.exe = 1,,
FPchase.exe = 1,,
Fphook.dll  = 1,,
Fpcpx.dll   = 1,,
Fpcpx.hlp   = 1,,
FpcpxJ.hlp  = 1,,

;--------------------------------------------------------------
; General
;
[Strings]
SERVICEROOT      = "System\CurrentControlSet\Services"
SOFTWAREROOT     = "Software\Fujitsu Takamisawa"
RUNENTRY         = "SOFTWARE\Microsoft\Windows\CurrentVersion\run"
RUNONCE          = "SOFTWARE\Microsoft\Windows\CurrentVersion\runonce"
UNINST           = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FIDMOU"

FID.Run1         = "scroller"
FID.Run2         = "fpapli.exe"
FID.Run3         = "Right Button Tool"
FID.Run4         = "Tprbtn.exe"
FID.Run5         = "chaser"
FID.Run6         = "fpchase.exe"
FID.Ver          = "2.0.4.20002"
FID.UNINSTEXE    = "Fidmouu.exe"

FID.SvcDesc      = "Fujitsu Takamisawa touchpad"
FID.DeviceDesc0  = "touchpad/touchscreen"
FID              = "Fujitsu Takamisawa Component Limited"
DiskId           = "touchpad/touchscreen drivers disk"
KEY_SHELLEX      = "Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\DriverPages"
KEY_CLSPROP      = "{35C01423-13CB-11d1-8D0C-004033926679}"

