;===========================================================
; File    : MC8000.inf
;
; Abstract: Windows WIN XP/WIN7 INF for MC8000 boards .
;
; (c) Copyright 2013 Earain Automation Corporation
;
;===========================================================

[Version]
Signature	= "$WINDOWS NT$"
Provider	= %EARAIN%
Class		= %ClassName%
ClassGUID	= {36FC9E60-C465-11CF-8056-444553540001}
;CatalogFile=MC8000.cat
DriverVer	=09/15/2013,5.2.3790.1830
CatalogFile=MC8000.cat
CatalogFile.NTx86=MC8000X86.cat
CatalogFile.NTAMD64=MC8000X64.cat

[ClassInstall32] 		
Addreg=MarkCardClassReg 

[MarkCardClassReg]
HKR,,,,%ClassName% 
HKR,,Icon,,"-10" 


[SourceDisksNames]
1=%Driver_Install%,,,

[SourceDisksNames.amd64]
1=%Driver_Install%,,,

[SourceDisksFiles]
MC8000_x86.sys = 1

[SourceDisksFiles.amd64]
MC8000_x64.sys = 1

[DestinationDirs]
DefaultDestDir=11
MC8000.Files.Ext = 12
MC8000.Files.Ext.NTamd64 = 12

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%EARAIN%=Device,NTamd64

;for all platforms
[Device]
%MC8000%=MC8000_DDInstall, USB\VID_04B4&PID_8000
%MC8000%=MC8000_DDInstall, USB\VID_04B4&PID_1004

;for x64 platforms
[Device.NTamd64]
%MC8000%=MC8000_DDInstall, USB\VID_04B4&PID_8000
%MC8000%=MC8000_DDInstall, USB\VID_04B4&PID_1004



[MC8000_DDInstall]
CopyFiles=MC8000.Files.Ext
AddReg=MC8000.AddReg

[MC8000_DDInstall.Services]
AddService = MC8000, 0x00000002, MC8000.AddService


[MC8000_DDInstall.NTamd64]
CopyFiles=MC8000.Files.Ext.NTamd64
AddReg=MC8000.AddReg.NTamd64

[MC8000_DDInstall.NTamd64.HW]
AddReg=MC8000.AddReg.Guid

[MC8000_DDInstall.NTamd64.Services]
AddService = MC8000, 0x00000002, MC8000.AddService.NTamd64


[MC8000.AddReg.NTamd64]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,MC8000_x86.sys

[MC8000.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,MC8000_x64.sys

[MC8000.AddService]
DisplayName    = %MC8000.ServiceName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\MC8000_x86.sys
LoadOrderGroup = Base

[MC8000.AddService.NTamd64]
DisplayName    = %MC8000.ServiceName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\MC8000_x64.sys
LoadOrderGroup = Base

[MC8000.Files.Ext.NTamd64]
MC8000_x64.sys,,,2

[MC8000.Files.Ext]
MC8000_x86.sys,,,2

[MC8000.AddReg.Guid]
HKR,,DriverGUID,,%MC8000.GUID%


[Strings]
EARAIN    		= "Earain"
EARAIN_NAME     	= "Earain Automation Corporation"
MC8000_Description 	= "Earain MC8000 USB Driver"
Driver_DisplayName 	= "Earain MC8000"
Driver_Install     	= "Earain MC8000 Driver Installation Disk"
MC8000	    		= "MC8000 Card"
MC8000.GUID		="{36FC9E60-C465-11CF-8056-444553540001}"
ClassName		= "Mark Control Card"
MC8000.ServiceName	= "MC8000 Card"

