ManagedWimLib 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ManagedWimLib --version 1.0.0
NuGet\Install-Package ManagedWimLib -Version 1.0.0
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="ManagedWimLib" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ManagedWimLib --version 1.0.0
#r "nuget: ManagedWimLib, 1.0.0"
#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 ManagedWimLib as a Cake Addin
#addin nuget:?package=ManagedWimLib&version=1.0.0

// Install ManagedWimLib as a Cake Tool
#tool nuget:?package=ManagedWimLib&version=1.0.0

Usage

Initialization

ManagedWimLib requires binary of wimlib to work. Internally it is done by loading functions dynamically (using LoadLibrary and GetProcAddress).

Wim.GlobalInit() should be explicitly called before using ManagedWimLib.

Put this snippet in your application's init code:

if (IntPtr.Size == 8) // This app is running on 64bit .Net Framework
    Wim.GlobalInit(Path.Combine("x64", "libwim-15.dll"));
else // This app is running on 32bit .Net Framework
    Wim.GlobalInit(Path.Combine("x86", "libwim-15.dll"));

WARNING: Architecture of libwim-15.dll must be matched with caller!

Embedded precompiled binary

ManagedWimLib comes with libwim-15.dll, precompiled binaries of wimlib 1.13.0-BETA2. They will be copied into $(OutDir)\x86\libwim-15.dll and $(OutDir)\x64\libwim-15.dll automatically at build.

Custom binary

To use custom wimlib binary instead, call Wim.GlobalInit() with path to custom libwim-15.dll.

NOTE: Create empty file named ManagedWimLib.Precompiled.Exclude in project directory to prevent copy of package-embedded libwim-15.dll.

Cleanup

To unload wimlib explicitly, call Wim.GlobalCleanup().

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on ManagedWimLib:

Repository Stars
WOA-Project/WoA-Installer-Rpi
This repository was deprecated, use:
gus33000/UUPMediaCreator
An utility to create Windows Media files (.ISO, .WIM, .VHD) from Unified Update Platform files
pebakery/pebakery
PEBakery is a script engine that specializes in customizing the Windows Preinstalled Environment (WinPE/WinRE).
Version Downloads Last updated
2.5.3 1,305 9/5/2023
2.5.2 201 8/9/2023
2.5.1 155 8/1/2023
2.5.0 1,210 2/15/2023
2.4.0 2,642 2/14/2022
2.3.0 471 1/27/2022
2.2.0 1,845 5/15/2021
2.1.0 411 4/9/2021
2.0.1 1,079 6/6/2020
2.0.0 517 6/6/2020
1.4.3 5,562 10/31/2019
1.4.2 480 10/25/2019
1.4.1 456 10/20/2019
1.4.0 494 10/20/2019
1.3.0 930 5/9/2019
1.2.4 1,754 12/5/2018
1.2.3 758 10/30/2018
1.2.2 742 10/29/2018
1.2.1 842 10/18/2018
1.2.0 755 10/15/2018
1.1.2 793 10/14/2018
1.1.1 763 10/13/2018
1.1.0 945 9/5/2018
1.0.0 1,683 5/22/2018

- Inital release