; Setup INF file for Mouse Suite
; Copyright (C) 2006-2009, All rights reserved.

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


[ControlFlags]
;
; Mark any install sections for drivers that also control the i8042 keyboard port,
; so that we can warn the user that they may also be affecting their keyboard with
; a mouse driver change.
;
ExcludeFromSelect.ntx86=*

[SourceDisksNames]
91=%PMouseDisk%,"ms98.cab"


[SourceDisksFiles]
PELMOUSE.SYS = 91

PELUSBLF.SYS = 91


[DestinationDirs]
DefaultDestDir = 12 ; DIRID_DRIVERS
PMouse.Copy.NT.SYS		= 12
PS2.Copy.NT				= 12
PMouse.Copy             = 11
PMouse.Copy.NT.DLL      = 11

; Manufacturer Sections
; ----------------------------------------
[Manufacturer]
%Mfg%=PMouse

[PMouse]
;------------- WidComm BT IDs ----------------------------
%BT01.mouse.desc% = PS2Mouse.Inst,HID\{00001124-0000-1000-8000-00805f9b34fb}&VID_06A3&PID_A50D&Col01

;------------- Microsoft BT IDs --------------------------
%BT01.mouse.desc% = PS2Mouse.Inst,HID\{00001124-0000-1000-8000-00805f9b34fb}_VID&000206A3_PID&A50D&Col01

;------------- Toshiba BT IDs --------------------------
%BT01.mouse.desc% = PS2Mouse.Inst,HID\VID_06A3&PID_A50D&Col01

;--------------------------------------------------
;              PS2 Mouse Windows NT 
;--------------------------------------------------
[PS2Mouse.Inst.NT]
Include     = msmouse.inf
Needs       = HID_Mouse_Inst.NT
AddReg = PMouse.AddReg, PMouse.AddUninstReg, PMouse.AddUninstReg.NT
CopyFiles = PS2.Copy.NT, PMouse.Copy.NT.SYS, PMouse.Copy, PMouse.Copy.NT.DLL


[PS2Mouse.Inst.NT.Services]
;AddService = pelvendr,, pelvendr_Service_Inst.NT, pelvendr_EventLog_Inst.NT
;AddService = pelps2m,, pelps2m.Service.Inst.NT, pelps2m.EventLog.Inst.NT 	; Port Driver
AddService = pelmouse,, pelmouse.Service.Inst.NT, pelmouse.EventLog.Inst.NT 		; Parent Driver
AddService = pelusblf,, pelusblf.Service.Inst.NT, pelusblf.EventLog.Inst.NT
Include     = msmouse.inf
Needs       = HID_Mouse_Inst.NT.Services

[PS2Mouse.Inst.NT.HW]
AddReg = PS2Mouse.Inst.NT.HW.AddReg
Include     = msmouse.inf
Needs       = HID_Mouse_Inst.NT.HW


[PS2Mouse.Inst.NT.HW.AddReg]

HKR,,"LowerFilters",0x00010000,"pelusblf","pelmouse"


;----------------------------------------
; PELps2m Service Install - Windows NT
;----------------------------------------
[pelps2m.Service.Inst.NT]
DisplayName    = %PS2.SvcDesc.NT%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\pelps2m.sys
LoadOrderGroup = Pointer Port

[pelps2m.EventLog.Inst.NT]
AddReg = pelps2m.EventLog.AddReg.NT

[pelps2m.EventLog.AddReg.NT]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\pelps2m.sys"
HKR,,TypesSupported,0x00010001,7

;----------------------------------------
; pelusblf Service Install - Windows NT
;----------------------------------------
[pelusblf.Service.Inst.NT]
DisplayName    = %PELUSBLF.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\pelusblf.sys
LoadOrderGroup = extended base

[pelusblf.EventLog.Inst.NT]
AddReg = pelusblf.EventLog.AddReg.NT

[pelusblf.EventLog.AddReg.NT]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\pelusblf.sys"
HKR,,TypesSupported,0x00010001,7

;----------------------------------------
; PELMouse Service Install - Windows NT
;----------------------------------------
[pelmouse.Service.Inst.NT]
DisplayName    = %PMOUSE.SvcDesc.NT%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\pelmouse.sys
LoadOrderGroup = Pointer Class

[pelmouse.EventLog.Inst.NT]
AddReg = pelmouse.EventLog.AddReg.NT

[pelmouse.EventLog.AddReg.NT]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\pelmouse.sys"
HKR,,TypesSupported,0x00010001,7





;--------------------------------------
; Common - AddReg section

[PMouse.AddReg]

; Add Run Key...
;HKLM,%SystemRunKey%,"Mouse Suite 98 Daemon",0,	"ICO.EXE"
HKCU,%ProductKey%"\Productivity Utility","Show Task Bar Icon", %REG_DWORD%,     0x01

; Extra functions
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Dll Path",0,            "pelutil"
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Function Entry",0,      "OnShortcut"
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Setting Entry",0,       "DlgShortcutSetting"
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Desc Entry",0,          "ShortcutGetDescript"
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Local Name Entry",0,    "ShortcutGetLocalName"
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Desc Name",0,           "HyperLink"
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Call On",%REG_DWORD%,   0
HKLM,%ProductKey%"\ButtonFunctions\HyperLink","Flag",%REG_DWORD%,      0
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Dll Path",0,              "pelzoom"
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Function Entry",0,        "OnZooming"
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Setting Entry",0,         "DlgZoomingSetting"
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Desc Entry",0,            "ZoomingGetDescript"
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Local Name Entry",0,      "ZoomingGetLocalName"
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Desc Name", 0,            "Magnifier"
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Call On",%REG_DWORD%,     2
HKLM,%ProductKey%"\ButtonFunctions\Zooming","Flag",%REG_DWORD%,        0

; Default mouse ID to show in Button page if no devices was found...
HKLM,%ProductKey%,"DefaultMouseID",0,            %DefaultMouseID%
; Wheel Mouse only
HKLM,%ProductKey%,"TiltWheelExternalResourceDll",0,        %ExtResDll%
HKCU,%ProductKey%,"TiltWheelExternalResourceDll",0,        %ExtResDll%
HKCU,%ProductKey%"\Wheel","TiltWheelMouse",%REG_DWORD%,           0x01
HKCU,%ProductKey%"\Wheel","TiltWheelSpeed",%REG_DWORD%,           0x04
HKCU,%ProductKey%"\Mouse\TiltWheelMouse","DefaultProductName",0,  %TiltWheel.Product%
HKLM,%ProductKey%"\Mouse\TiltWheelMouse","DefaultProductName",0,  %TiltWheel.Product%
HKCU,%ProductKey%"\Mouse\TiltWheelMouse","ID",%REG_DWORD%,        0xA0
HKCU,%ProductKey%"\Wheel","Enable Universal Scrolling",%REG_DWORD%,      0x01
HKCU,%ProductKey%"\Wheel","Scroll one screen per notch",%REG_DWORD%,     0x00
HKCU,%ProductKey%"\Wheel","Reverse Scroll Direction",%REG_DWORD%,        0x00
HKCU,%ProductKey%"\Wheel","Use Shift for Horizontal Scroll",%REG_DWORD%, 0x00
HKCU,"Control Panel\desktop","WheelScrollLines",0,                "3"

; USB ID Supported
;HKLM,%ProductKey%"\MouseUID","HID\{00001124-0000-1000-8000-00805f9b34fb}&VID_1048&PID_03ed&Col01",%REG_DWORD%,	0x33
;HKLM,%ProductKey%"\MouseUID","HID\{00001124-0000-1000-8000-00805f9b34fb}_VID&00021048_PID&03ed&Col01",%REG_DWORD%,	0x33
;HKLM,%ProductKey%"\MouseUID","HID\VID_1048&PID_03ed&Col01",%REG_DWORD%,	0x33

HKCU,%ProductKey%"\Mouse\BT3DMouse","DefaultProductName",0,   %BT3DMouse.Product%
HKLM,%ProductKey%"\Mouse\BT3DMouse","DefaultProductName",0,   %BT3DMouse.Product%
HKCU,%ProductKey%"\ResourceDLL","ResourceNameToSelect",0,   "BT3DMouse"
HKLM,%ProductKey%"\ResourceDLL","ResourceNameToSelect",0,   "BT3DMouse"

; Use external resource dll for OEM
HKLM,%ProductKey%,"ExternalResourceDll",0,        %ExtResDll%
HKCU,%ProductKey%,"ExternalResourceDll",0,        %ExtResDll%	 
HKLM,%ProductKey%,"BT3DExternalResourceDll",0,  		  %BT3DExtResDll%
HKCU,%ProductKey%,"BT3DExternalResourceDll",0,  		  %BT3DExtResDll%
HKLM,%UninstallKey%"\DeleteFiles",%BT3DExtResDll%,0,""
[PMouse.AddUninstReg.NT]
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%NTServiceRootKey%"\pelmouse",0,0
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%NTServiceRootKey%"\pelusblf",0,0
HKLM,%UninstallKey%"\DeleteKey",%NTServiceRootKey%"\pelmouse",0,""
HKLM,%UninstallKey%"\DeleteKey",%NTServiceRootKey%"\pelusblf",0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelmouse.sys",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelmouse.sys,0,"%SYS32_DIR%"
HKLM,%UNINSTALL_SHARED_FILE%"\pelusblf.sys",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelusblf.sys,0,"%SYS32_DIR%"
HKLM,%UNINSTALL_SHARED_FILE%"\Pmuninnt.exe",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",Pmuninnt.exe,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\Pelsetup.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",Pelsetup.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\Pmouse.inf",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",Phidmou.inf,0,"%INF_DIR%"
HKLM,%UninstallKey%"\DeleteFiles",Phidmou.pnf,0,"%INF_DIR%"
HKLM,%UninstallKey%"\RestoreDriver\"%Provider%,%BT01.mouse.desc%,0,"HID-compliant mouse"

[PMouse.AddUninstReg]
;HKLM,%UninstallKey%,DisplayName,0,      %ProductName%
;HKLM,%UninstallKey%,UninstallString,0,  "PMUninst.exe MouseSuite98"
;HKLM,%UninstallKey%,SetupTitle,0,       %ProductName%" Uninstall"
HKLM,%UninstallKey%,FontName,0,         "Times New Roman Italic"
HKLM,%UninstallKey%,FontColor,0,        "White"
HKLM,%UninstallKey%,NeedRestart,0,      "TRUE"

HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%ProductKey%,0,0
HKLM,%UninstallKey%"\DeleteKey",%ProductKey%,0,""
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_CURRENT_USER",%ProductKey%"\",0,0
HKLM,%UninstallKey%"\DeleteKey",%ProductKey%"\",0,HKEY_CURRENT_USER

HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%SystemRunKey%,0,"Mouse Suite 98 Daemon"
HKLM,%UninstallKey%"\DeleteValue",%SystemRunKey%,0,"Mouse Suite 98 Daemon"

HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%MouseCPLXKey%"\Mouse Suite 98 PPM",0,0
HKLM,%UninstallKey%"\DeleteKey",%MouseCPLXKey%"\Mouse Suite 98 PPM",0,""
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%MouseCPLXKey%"\Mouse Suite 98 BDO",0,0
HKLM,%UninstallKey%"\DeleteKey",%MouseCPLXKey%"\Mouse Suite 98 BDO",0,""
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_LOCAL_MACHINE",%MouseCPLXKey%"\Mouse Suite 98 WHEEL",0,0
HKLM,%UninstallKey%"\DeleteKey",%MouseCPLXKey%"\Mouse Suite 98 WHEEL",0,""
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_CLASSES_ROOT","CLSID\"%CPLXPPMCLSID%,0,0
HKLM,%UninstallKey%"\DeleteKey","CLSID\"%CPLXPPMCLSID%,0,HKEY_CLASSES_ROOT
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_CLASSES_ROOT","CLSID\"%CPLXBDOCLSID%,0,0
HKLM,%UninstallKey%"\DeleteKey","CLSID\"%CPLXBDOCLSID%,0,HKEY_CLASSES_ROOT
HKLM,%UNINSTALL_SHARED_REG%"\"%UninstallKeyName%"\HKEY_CLASSES_ROOT","CLSID\"%CPLXWHEELCLSID%,0,0
HKLM,%UninstallKey%"\DeleteKey","CLSID\"%CPLXWHEELCLSID%,0,HKEY_CLASSES_ROOT

; Delete daemon 
HKLM,%UninstallKey%"\DeleteFiles",ICO.exe,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\ICONSPY.exe",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",ICONSPY.exe,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelmiced.exe",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelmiced.exe,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelcomm.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelcomm.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelutil.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelutil.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelhooks.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelhooks.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelscrll.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelscrll.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\pelzoom.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",pelzoom.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\Pmuninst.exe",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",Pmuninst.exe,0,""

; Delete control panel
HKLM,%UNINSTALL_SHARED_FILE%"\PELBDO.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",PELBDO.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\PELPPM.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",PELPPM.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\PELWHEEL.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",PELWHEEL.dll,0,""

HKLM,%UNINSTALL_SHARED_FILE%"\hpbdo.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",hpbdo.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\hpppm.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",hpppm.dll,0,""
HKLM,%UNINSTALL_SHARED_FILE%"\hpwheel.dll",%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",hpwheel.dll,0,""

HKLM,%UninstallKey%"\DeleteFiles",ms98.cab,0,"%SYS32_DIR%"
HKLM,%UninstallKey%"\DeleteFiles",bt99.cat,0,"%SYS32_DIR%"

HKLM,%UNINSTALL_SHARED_FILE%"\"%ExtResDll%,%UninstallKeyName%,0,0
HKLM,%UninstallKey%"\DeleteFiles",%ExtResDll%,0,""

;Kill Window
HKLM,%UninstallKey%"\KillWindow\0001",Class,0,		"MS98 Daemon"
HKLM,%UninstallKey%"\KillWindow\0001",Caption,0,	"MS98 Daemon"
HKLM,%UninstallKey%"\KillWindow\0002",Class,0,		"Daemon Spy"
HKLM,%UninstallKey%"\KillWindow\0002",Caption,0,	"Daemon Spy"
[PMouse.Copy]


[PMouse.Copy.NT.DLL]


[PMouse.Copy.NT.SYS]
PELMouse.SYS
PELUSBLF.SYS


[PS2.Copy.NT]


; ----------------------------------------
; User-visible Strings

[Strings]
Provider     = "Saitek"
Mfg	         = "Saitek"

; ======= Disk Name ==========
PMouseDisk="Mouse Driver Disk"

; ======= Product Name ==========
;ProductName = "Eclipse Touch Mouse Driver"
ProductVersion = "2.1.0.0"

; ======= Product Misc. Info. ==========
;OEMLogoNumber = "13"
DefaultMouseID = "33"
; ======= Resource dll names ===========
ExtResDll           = "std.DLL"			
TILT5BExtResDll     = "std.DLL"
BT3DExtResDll       = "std.DLL"

; ======= Product Name =======
TiltWheel.Product = "Tilt Wheel Mouse"
BT3DMouse.Product  = "Eclipse Touch Mouse"

; ======= Device Names ==========
BT01.mouse.desc = "Eclipse Touch Mouse (HID)"

; Service Names
PELUSBLF.SvcDesc = "USB Mouse Low Filter Driver"
PMOUSE.SvcDesc.NT = "Mouse Suite Driver"
PS2.SvcDesc.NT = "PS/2 Mouse Filter Driver"

HID.ClassName    = "Human Interface Devices"
ProductKey       = "SOFTWARE\Primax\Mouse Suite 98"
UninstallKeyName = "MouseSuite98"
UninstallKey     = "Software\Microsoft\Windows\CurrentVersion\Uninstall\MouseSuite98"
AppManagement    = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\ARPCache"
SystemRunKey     = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
SystemRunOnceKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MouseCPLXKey     = "SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers"
NTServiceRootKey = "System\CurrentControlSet\Services"

CPLXPPMCLSID     = "{02D613BA-B0E9-4DE0-A98E-6AA317EE731E}"
CPLXBDOCLSID     = "{FECA2FBB-CA2B-49ED-9AEE-B1B731D1B6E7}"
CPLXWHEELCLSID   = "{30ABC82B-5ADB-4312-B398-12A20C9722A0}"

UNINSTALL_ROOT_KEY    = "Software\Microsoft\Windows\CurrentVersion\Uninstall"
UNINSTALL_SHARED_FILE = "Software\Primax\Uninstall\SharedFile"
UNINSTALL_SHARED_REG  = "Software\Primax\Uninstall\SharedReg"

REG_EXPAND_SZ	        = 0x00020000 
REG_DWORD               = 0x00010001 
REG_MULTI_SZ	        = 0x00010000
REG_BINARY              = 0x00000001
