;;;
;;; Glarysoft
;;;
;;;
;;; Copyright (c) 2022, Glarysoft Ltd.
;;;

[Version]
Signature   = "$Windows NT$"
Class       = "ActivityMonitor"                         ;This is determined by the work this filter driver does
ClassGuid   = {b86dff51-a31e-4bac-b3cf-e8cfe75c9fc2}    ;This value is determined by the Class
Provider    = Glarysoft
DriverVer   = 08/19/2022,1.2.0.266
CatalogFile = GUMHFilter.cat
PnpLockdown = 1


;;
;; Default install sections
;;
;[Manufacturer]
;%GUBSManufacturer%=DefaultInstall,NTamd64
[DefaultInstall.NTamd64]
OptionDesc          = %ServiceDescription%
CopyFiles           = AddDriverFiles

[DefaultInstall.NTamd64.Services]
AddService          = %ServiceName%,,Service

;;
;; Default uninstall sections
;;

[DefaultUninstall.NTamd64]
LegacyUninstall = 1
DelFiles 	= DelDriverFiles
DelReg		= DelRegistry

[DefaultUninstall.NTamd64.Services]
DelService = %ServiceName%

[DestinationDirs]
DefaultDestDir          = 12
AddDriverFiles    = 12            ;%windir%\system32\drivers

;
; Services Section
;

[Service]
DisplayName      = %ServiceName%
Description      = %ServiceDescription%
ServiceBinary    = %12%\%DriverName%.sys        ;%windir%\system32\drivers\
Dependencies     = 
ServiceType      = 2                            ;SERVICE_FILE_SYSTEM_DRIVER
StartType        = 3                            ;SERVICE_DEMAND_START
ErrorControl     = 1                            ;SERVICE_ERROR_NORMAL
LoadOrderGroup   = "PSFilter Activity Monitor"
AddReg           = AddRegistry

;
; Registry Modifications
;

[AddRegistry]
HKR,,"SupportedFeatures",0x00010001,0x3
HKR,"Instances","DefaultInstance",0x00000000,%DefaultInstance%
HKR,"Instances\"%Instance1.Name%,"Altitude",0x00000000,%Instance1.Altitude%
HKR,"Instances\"%Instance1.Name%,"Flags",0x00010001,%Instance1.Flags%

[DelRegistry]
HKR,"Instances"

;
; Copy Files
;
[AddDriverFiles]
%DriverName%.sys,,,6

[DelDriverFiles]
%DriverName%.sys,,,6


[SourceDisksFiles]
GUMHFilter.sys = 1

[SourceDisksNames]
1 = %DiskId1%,,,

;;
;; String Section
;;

[Strings]
ServiceDescription      = "GU MHS Filter driver"
ServiceName             = "GUMHFilter"
DriverName              = "GUMHFilter"
DiskId1                 = "GU Device Installation Disk"

;Instances specific information.
DefaultInstance         = "GUMHFilter - Top Instance"
Instance1.Name          = "GUMHFilter - Top Instance"
Instance1.Flags         = 0x0        ; Set automatic attachments
Instance1.Altitude      = "385100"
GUBSManufacturer		= "Glarysoft Ltd"