Windows: fix driver inf file

This commit is contained in:
Mounir IDRASSI 2018-04-19 10:10:04 +02:00
parent 4519bb494e
commit 75705ddde7
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC
5 changed files with 21 additions and 16 deletions

View File

@ -10,13 +10,13 @@ signature = "$Windows NT$"
Class = "Encryption" ;This is determined by the work this filter driver does Class = "Encryption" ;This is determined by the work this filter driver does
ClassGuid = {a0a701c0-a511-42ff-aa6c-06dc0395576f} ;This value is determined by the Class ClassGuid = {a0a701c0-a511-42ff-aa6c-06dc0395576f} ;This value is determined by the Class
Provider = %ProviderString% Provider = %ProviderString%
DriverVer = 04/14/2018,1.23.0.0 DriverVer = 04/18/2018,1.23.0.0
CatalogFile = veracrypt.cat CatalogFile = veracrypt.cat
[DestinationDirs] [DestinationDirs]
DefaultDestDir = 12 DefaultDestDir = 12
MiniFilter.DriverFiles = 12 ;%windir%\system32\drivers veracrypt.DriverFiles = 12 ;%windir%\system32\drivers
;; ;;
;; Default install sections ;; Default install sections
@ -24,17 +24,18 @@ MiniFilter.DriverFiles = 12 ;%windir%\system32\drivers
[DefaultInstall] [DefaultInstall]
OptionDesc = %ServiceDescription% OptionDesc = %ServiceDescription%
CopyFiles = MiniFilter.DriverFiles CopyFiles = veracrypt.DriverFiles
AddReg = veracrypt.AddReg
[DefaultInstall.Services] [DefaultInstall.Services]
AddService = %ServiceName%,,MiniFilter.Service AddService = veracrypt,,veracrypt.Service
;; ;;
;; Default uninstall sections ;; Default uninstall sections
;; ;;
[DefaultUninstall] [DefaultUninstall]
DelFiles = MiniFilter.DriverFiles DelFiles = veracrypt.DriverFiles
[DefaultUninstall.Services] [DefaultUninstall.Services]
DelService = veracrypt,0x200 ;Ensure service is stopped before deleting DelService = veracrypt,0x200 ;Ensure service is stopped before deleting
@ -43,23 +44,21 @@ DelService = veracrypt,0x200 ;Ensure service is stopped before deleting
; Services Section ; Services Section
; ;
[MiniFilter.Service] [veracrypt.Service]
DisplayName = %ServiceName% DisplayName = %ServiceDescription%
Description = %ServiceDescription% Description = %ServiceDescription%
ServiceBinary = %12%\%DriverName%.sys ;%windir%\system32\drivers\ ServiceBinary = %12%\veracrypt.sys ;%windir%\system32\drivers\
Dependencies = "FltMgr"
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
;StartType = 0 ;SERVICE_BOOT_START StartType = 0 ;SERVICE_BOOT_START
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Encryption" LoadOrderGroup = "Filter"
; ;
; Copy Files ; Copy Files
; ;
[MiniFilter.DriverFiles] [veracrypt.DriverFiles]
%DriverName%.sys veracrypt.sys
[SourceDisksFiles] [SourceDisksFiles]
veracrypt.sys = 1,, veracrypt.sys = 1,,
@ -67,6 +66,14 @@ veracrypt.sys = 1,,
[SourceDisksNames] [SourceDisksNames]
1 = %DiskId1%,,, 1 = %DiskId1%,,,
;
; Registry Entries
;
[veracrypt.AddReg]
HKLM, System\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318}, UpperFilters, 0x00010008, veracrypt
HKLM, System\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318}, UpperFilters, 0x00010008, PartMgr
;; ;;
;; String Section ;; String Section
;; ;;
@ -74,7 +81,5 @@ veracrypt.sys = 1,,
[Strings] [Strings]
ProviderString = "IDRIX" ProviderString = "IDRIX"
ServiceDescription = "veracrypt" ServiceDescription = "veracrypt"
ServiceName = "veracrypt"
DriverName = "veracrypt"
DiskId1 = "VeraCrypt Device Installation Disk" DiskId1 = "VeraCrypt Device Installation Disk"