EmbeddedDIFx 1.1.1
dotnet add package EmbeddedDIFx --version 1.1.1
NuGet\Install-Package EmbeddedDIFx -Version 1.1.1
<PackageReference Include="EmbeddedDIFx" Version="1.1.1" />
paket add EmbeddedDIFx --version 1.1.1
#r "nuget: EmbeddedDIFx, 1.1.1"
// Install EmbeddedDIFx as a Cake Addin #addin nuget:?package=EmbeddedDIFx&version=1.1.1 // Install EmbeddedDIFx as a Cake Tool #tool nuget:?package=EmbeddedDIFx&version=1.1.1
EmbeddedDIFx
DIFx API wrapper which simplifies driver installation and uninstallation.
Goals:
- Simplify using DIFx.
- Reduce bitness concerns.
- Reduce DLL dependencies.
- Accessible through NuGet.
Simplify using DIFx
You won't need to write your own messy interop declarations to use the library. The Disposable pattern is used for automatic cleanup.
Example:
using (var difx = new DIFx())
{
var flags = DriverPackageFlags.ONLY_IF_DEVICE_PRESENT | DriverPackageFlags.FORCE;
difx.DriverInstallPackage(extractedInf, flags);
}
Reduce bitness concerns
EmbeddedDIFx contains both the x86 and x64 versions of DIFxAPI, and automatically detects and utilizes the appropriate version at runtime. This can simplify production of a single installer rather than having to make x86 and x64 versions or writing and maintaining similar runtime logic in your installer code.
Reduce DLL dependencies
You only need to include EmbeddedDIFx.dll, instead of the x86 and x64 versions of DIFxAPI, to use DIFx. If your goal is to reach a single-file driver installer with zero loose file dependencies, check out how the installer at ScpDriverInterface works for inspiration. (It extracts the .inf and related driver files on the fly as well.)
Accessible through NuGet
The NuGet package can be acquired in the usual NuGet ways, such as the Package Manager console with:
Install-Package EmbeddedDIFx
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Now with updated exception handling.