I am trying to customize some of the parameters of a Windows driver during its installation process by modifying the corresponding parameters. 1. Device/Driver Description 2. Provider 3. Display Name 4. Hardware ID
Here is an excerpt from the INF file I am working with:
[Version]
Signature="$WINDOWS NT$"
Class=Media
ClassGuid={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%ManufacturerName%
CatalogFile=SampleAudioDriver.cat
DriverVer= 0.001
PnpLockdown=1
[DestinationDirs]
DefaultDestDir = 13
[SourceDisksNames]
1 = %DiskName%,,,""
[SourceDisksFiles]
SampleAudioDriver.sys = 1,
[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$
[Standard.NT$ARCH$]
%SampleAudioDriver.DeviceDesc%=SampleAudioDriver_Device, Root\SampleAudioDriver
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="TestDrv"
DiskName = "SampleAudioDriver Installation Disk"
SampleAudioDriver.DeviceDesc = "SampleAudioDriver Device"
SampleAudioDriver.SVCDESC = "SampleAudioDriver Service"
I have explored using devcon.exe and pnputil to modify these details but have not found any solution.
Could someone please provide guidance on how to modify these driver parameters during installation? Any alternative tools, or approaches to achieve this?
You can't, by-design.
.catfile (from "security catalog").inffile.https://learn.microsoft.com/en-us/windows-hardware/drivers/install/catalog-files
Quoteth (emphasis mine)