;/////////////////////////////////////////////////////////////////////////////////////
; Hercules Stream 100
;
; Version 1.220
; 
; © Guillemot Corporation, 2023.  All rights reserved.
;/////////////////////////////////////////////////////////////////////////////////////

[Version]
Signature="$CHICAGO$"
Provider=%MfgName%
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
DriverVer=05/03/2023,1.2.2.0
CatalogFile=HercStreamMixDevice.cat

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
[SourceDisksNames]
100=%Disk1Name%,,

[SourceDisksFiles.x86]
WdfCoInstaller01011.dll = 100,\x86
HercStreamMixDevice.sys = 100,\x86
GuiSTDFUDevUpdate.dll = 100,\x86
hercHsmInstall.exe= 100,\x86

[SourceDisksFiles.amd64]
WdfCoInstaller01011.dll = 100,\amd64
HercStreamMixDevice.sys = 100,\amd64
GuiSTDFUDevUpdate.dll = 100,\x86
GuiSTDFUDevUpdate64.dll = 100,\amd64
hercHsmInstall.exe= 100,\amd64

[DestinationDirs]
HercStreamMixDevice_CopyFiles_NT = 10,System32\Drivers
CopyFiles.Common_W32= 10,System32
CopyFiles.Common_W64= 10,System32
CopyFiles.Common_W32_64= 10,SysWOW64
HercStreamMixDevice_CoInstaller_CopyFiles = 11

;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName%=_Models,NTx86,NTamd64

[_Models.NTx86] 
%DeviceHercStreamMix%=HercStreamMixDevice_DDI, USB\VID_06F8&PID_E053

[_Models.NTamd64]
%DeviceHercStreamMix%=HercStreamMixDevice_DDI, USB\VID_06F8&PID_E053

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows NT -----------------

[HercStreamMixDevice_DDI.NTx86]
CopyFiles=HercStreamMixDevice_CopyFiles_NT, CopyFiles.Common_W32

[CopyFiles.Common_W32]
GuiSTDFUDevUpdate.dll,,,0x00000020 ; Copy only if new binary
hercHsmInstall.exe

[HercStreamMixDevice_DDI.NTamd64]
CopyFiles=HercStreamMixDevice_CopyFiles_NT, CopyFiles.Common_W64, CopyFiles.Common_W32_64

[CopyFiles.Common_W64]
GuiSTDFUDevUpdate.dll,GuiSTDFUDevUpdate64.dll,,,0x00000020 ; Copy only if new binary
hercHsmInstall.exe

[CopyFiles.Common_W32_64]
GuiSTDFUDevUpdate.dll,,,0x00000020 ; Copy only if new binary

[HercStreamMixDevice_CopyFiles_NT]
HercStreamMixDevice.sys

[HercStreamMixDevice_DDI.NTx86.Services]
Addservice = HercStreamMixDevice, 0x00000002, HercStreamMixDevice_AddService, HercStreamMixDevice_NT_LogInst

[HercStreamMixDevice_DDI.NTamd64.Services]
Addservice = HercStreamMixDevice, 0x00000002, HercStreamMixDevice_AddService, HercStreamMixDevice_NT_LogInst

[HercStreamMixDevice_NT_LogInst]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\HercStreamMixDevice.sys"
HKR,,TypesSupported,%REG_DWORD%,7
HKLM,system\currentcontrolset\services\eventlog\Application\GuiSTDFUDevUpdate,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\GuiSTDFUDevUpdate.dll"
HKLM,system\currentcontrolset\services\eventlog\Application\GuiSTDFUDevUpdate,TypesSupported,%REG_DWORD%,7

[HercStreamMixDevice_AddService]
DisplayName    = %SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\HercStreamMixDevice.sys

;
;--- Console NTx86 Device Co-installer installation ------
;
[HercStreamMixDevice_DDI.NTx86.CoInstallers]
AddReg=HercStreamMixDevice_CoInstaller_AddReg
CopyFiles=HercStreamMixDevice_CoInstaller_CopyFiles

[HercStreamMixDevice_DDI.NTx86.Wdf]
KmdfService = HercStreamMixDevice,HercStreamMixDevice_wdfsect

[HercStreamMixDevice_wdfsect]
KmdfLibraryVersion = 1.11

;
;--- Console MK2 NTx86 Device Co-installer installation ------
;
[HercStreamMixDevice_DDI.NTamd64.CoInstallers]
AddReg=HercStreamMixDevice_CoInstaller_AddReg
CopyFiles=HercStreamMixDevice_CoInstaller_CopyFiles

[HercStreamMixDevice_DDI.NTamd64.Wdf]
KmdfService = HercStreamMixDevice, HercStreamMixDevice_wdfsect

;
;--- kernel driver Common Device Co-installer installation ------
;
[HercStreamMixDevice_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01011.dll,WdfCoInstaller"

[HercStreamMixDevice_CoInstaller_CopyFiles]
WdfCoInstaller01011.dll

;--------- Strings Section ---------------------------------------------------

[Strings]
MfgName="Guillemot Corporation"
DeviceHercStreamMix="Hercules Stream 100"
SvcDesc="Hercules Stream 100 Device"
Disk1Name="Hercules Stream 100 Device CD 1"
REG_SZ=0x00000000
REG_BINARY=0x00000001
REG_DWORD=0x00010001
REG_EXPAND_SZ=0x00020000