ManagedWimLib 1.1.1

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

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

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-BETA5.
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 3,220 9/5/2023
2.5.2 239 8/9/2023
2.5.1 177 8/1/2023
2.5.0 1,295 2/15/2023
2.4.0 2,690 2/14/2022
2.3.0 505 1/27/2022
2.2.0 1,889 5/15/2021
2.1.0 437 4/9/2021
2.0.1 1,126 6/6/2020
2.0.0 553 6/6/2020
1.4.3 5,623 10/31/2019
1.4.2 503 10/25/2019
1.4.1 478 10/20/2019
1.4.0 521 10/20/2019
1.3.0 953 5/9/2019
1.2.4 1,801 12/5/2018
1.2.3 788 10/30/2018
1.2.2 770 10/29/2018
1.2.1 868 10/18/2018
1.2.0 785 10/15/2018
1.1.2 825 10/14/2018
1.1.1 802 10/13/2018
1.1.0 980 9/5/2018
1.0.0 1,724 5/22/2018

- Fix Wim.GetErrorString() to report correct error message