EmbeddedDIFx 1.1.1

dotnet add package EmbeddedDIFx --version 1.1.1                
NuGet\Install-Package EmbeddedDIFx -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EmbeddedDIFx" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EmbeddedDIFx --version 1.1.1                
#r "nuget: EmbeddedDIFx, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
1.1.1 90 11/17/2024
1.1.0 1,152 3/12/2018
1.0.0 976 3/12/2018

Now with updated exception handling.