;------------------------------------------------------------------------------
;   INF file for Guardant USB dongles
;
;   (Windows XP/2003/Vista/Win7/Win8)
;
;   (C) 1996-2014 Aktiv Co.
;
;------------------------------------------------------------------------------

[Version]
Signature="$CHICAGO$"
Provider=%Aktiv%
Class=GuardantDongles
ClassGuid={c29cc2e3-bc48-4b74-9043-2c6413ffa784}
; month/day/year
DriverVer=06/04/2015,7.0.190.0
;CatalogFile=grdusb_ntx86.cat
CatalogFile.NTx86=grdusb_ntx86.cat
CatalogFile.NTamd64=grdusb_ntamd64.cat
DriverPackageType=PlugAndPlay

;------------------------------------------------------------------------------
;                           Class Install section
;------------------------------------------------------------------------------

[ClassInstall32]
AddReg=ClassInstall32.AddReg
CopyFiles=ClassInstall32.CopyFiles

[ClassInstall32.NTamd64]
AddReg=ClassInstall32.AddReg
CopyFiles=ClassInstall32.CopyFiles

[ClassInstall]
AddReg=ClassInstall.AddReg

[ClassInstall32.AddReg]
HKR,,,,%ClassName%
HKR,,Icon,,101
HKR,,Installer32,,"grdcls.dll,ClassInstaller"
HKR,,SilentInstall,,1

[ClassInstall.AddReg]
HKR,,,,%ClassName%
HKR,,SilentInstall,,1

[ClassInstall32.CopyFiles]
grdcls.dll

;------------------------------------------------------------------------------
;                           Device Install section
;------------------------------------------------------------------------------

[Manufacturer]
%Aktiv%=DeviceList,NTamd64

[DeviceList]
%Stealth1Name%=DriverInstall, USB\VID_0A89&PID_0001
%Stealth2Name%=DriverInstall, USB\VID_0A89&PID_0003
%Stealth2Name%=DriverInstall, USB\VID_0A89&PID_0007
%Stealth3Name%=DriverInstall, USB\VID_0A89&PID_0006
%FidusName%=DriverInstall, USB\VID_0A89&PID_0005
%SignName%=DriverInstall, USB\VID_0A89&PID_0008&REV_0200&MI_00
%SignName%=DriverInstall, USB\VID_0A89&PID_0008&REV_0100
%CodeName%=DriverInstall, USB\VID_0A89&PID_0009
%SignProName%=DriverInstall, USB\VID_0A89&PID_000A&MI_00
%CodeProName%=DriverInstall, USB\VID_0A89&PID_00C0&MI_00

[DeviceList.NTamd64]
%Stealth1Name%=DriverInstall.NTamd64, USB\VID_0A89&PID_0001
%Stealth2Name%=DriverInstall.NTamd64, USB\VID_0A89&PID_0003
%Stealth2Name%=DriverInstall.NTamd64, USB\VID_0A89&PID_0007
%Stealth3Name%=DriverInstall.NTamd64, USB\VID_0A89&PID_0006
%FidusName%=DriverInstall.NTamd64, USB\VID_0A89&PID_0005
%SignName%=DriverInstall.NTamd64, USB\VID_0A89&PID_0008&REV_0200&MI_00
%SignName%=DriverInstall.NTamd64, USB\VID_0A89&PID_0008&REV_0100
%CodeName%=DriverInstall.NTamd64, USB\VID_0A89&PID_0009
%CodeProName%=DriverInstall, USB\VID_0A89&PID_00C0&MI_00

[ControlFlags]

[SourceDisksNames]
1="Guardant USB Dongle Install Disk",,0

[SourceDisksFiles]
grdusb.sys=1
grdcls.dll=1

[DestinationDirs]
DriverInstall.CopyFiles=10,System32\Drivers

;------------------------------------------------------------------------------
;                           Windows 9x platform
;------------------------------------------------------------------------------

[DriverInstall]
CopyFiles=DriverInstall.CopyFiles
AddReg=DriverInstall.AddReg

[DriverInstall.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,grdusb.sys
HKLM,%PARAMETERS%,"USBCheck",0x0001,0x01
HKLM,%SFTPARAMETERS%,"Version",0x00010001,0x00000700
HKLM,%SFTPARAMETERS%,"Build",0x00010001,0x000000BE

;------------------------------------------------------------------------------
;                           Windows 2000 platform
;------------------------------------------------------------------------------

[DriverInstall.NT]
CopyFiles=DriverInstall.CopyFiles
AddReg=DriverInstall.AddReg.NT

[DriverInstall.NT.Services]
AddService=GrdUsb,0x00000002,DriverInstall.AddService

;------------------------------------------------------------------------------
;                           Windows 64-bit x86 platform
;------------------------------------------------------------------------------

[DriverInstall.NTamd64]
CopyFiles=DriverInstall.CopyFiles
AddReg=DriverInstall.AddReg.NT

[DriverInstall.NTamd64.Services]
AddService=GrdUsb,0x00000002,DriverInstall.AddService

;------------------------------------------------------------------------------
;                           Both NT platforms
;------------------------------------------------------------------------------

[DriverInstall.AddService]
DisplayName    = %ServiceName%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_AUTO_START
ErrorControl   = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\grdusb.sys
LoadOrderGroup = Base

[DriverInstall.AddReg.NT]
HKLM,%PARAMETERS%,"USBCheck",0x0001,0x01
HKLM,%SFTPARAMETERS%,"Version",0x00010001,0x00000700
HKLM,%SFTPARAMETERS%,"Build",0x00010001,0x000000BE

;------------------------------------------------------------------------------
;                           Both platforms
;------------------------------------------------------------------------------

[DriverInstall.CopyFiles]
grdusb.sys,,,0x60   ; replace newer, suppress dialog

;------------------------------------------------------------------------------
;                           String Definitions
;------------------------------------------------------------------------------

[Strings]
Aktiv="Aktiv Company"
ClassName="Guardant dongles"
Stealth1Name="Guardant Stealth"
Stealth2Name="Guardant Stealth II"
Stealth3Name="Guardant Stealth III"
FidusName="Guardant Fidus"
SignName="Guardant Sign"
CodeName="Guardant Code"
SignProName="Guardant Sign Pro"
CodeProName="Guardant Code Pro"
ServiceName="Guardant USB service"
PARAMETERS="System\CurrentControlSet\Services\GrdUsb\Parameters"
SFTPARAMETERS="Software\Aktiv\Guardant\Drivers"
