InstallKit.Sdk 1.0.0

<Sdk Name="InstallKit.Sdk" Version="1.0.0" />
                    
For projects that support Sdk, copy this XML node into the project file to reference the package.
#:sdk InstallKit.Sdk@1.0.0
                    
#:sdk directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.

InstallKit

NuGet NuGet downloads CI License: MIT

Build Windows installers (MSI and setup .exe bundles) with plain C# and dotnet build. InstallKit sits on top of WixSharp and the WiX Toolset, and adds a fluent API, an MSBuild SDK, a native modern installer UI, install-time C# handlers and ready-made Azure DevOps pipeline templates.

Version 1.0. Feedback and issues are welcome.

Why InstallKit

  • Installers as code: describe the product, services, shortcuts and prerequisites in C#, with validation errors that point at the problem before WiX runs.
  • One command: dotnet build (with -p:InstallKitBuildOnBuild=true) publishes your app, then produces the MSI and, optionally, a single setup.exe bundle.
  • Modern look by default: a flat, dark installer UI in your colours (light, dark or following the Windows setting), with native dialogs that need nothing on the target machine as the alternative.
  • Install-time code in C#: run static methods during install or uninstall, with no WixSharp types in your code.
  • CI included: Azure DevOps templates that build, sign, smoke-test (install and uninstall) and publish.
  • Two engines: WixSharp on .NET Framework 4.8, or a WixSharp.Core preview on .NET 10, with the same installer code.

Requirements

  • Build machine: Windows and the .NET SDK. WiX is restored as a pinned local tool.
  • Target machine: usually nothing beyond Windows. See What target machines need.

Example

using InstallKit;

return InstallerHost.Run(args, plan =>
{
    var app = plan.Msi(MsiBuilder.Create("My App")
        .WithManufacturer("Contoso")
        .WithUpgradeCode("0b6f9a8e-3c1d-4e57-9a43-6d2f1c8b7e10")
        .WithMainExecutable("MyApp.exe")       // gets a Start menu shortcut
        .Content(c => c.Payload("MyApp"))      // published output of <InstallerPayload>
        .Shell(s => s.DesktopShortcut()));

    plan.Bundle(BundleBuilder.Create("My App") // optional: one setup.exe with prerequisites
        .WithUpgradeCode("5a2e7c41-9d83-4b6f-8e15-c3a09f4d2b77")
        .Prerequisites(p => p.NetFramework(NetFrameworkVersion.NetFx48))
        .Packages(k => k.Msi(app)));
});
<Project Sdk="InstallKit.Sdk/1.0.0">
  <ItemGroup>
    <InstallerPayload Include="..\MyApp\MyApp.csproj" PublishProperties="RuntimeIdentifier=win-x64;SelfContained=true" />
  </ItemGroup>
</Project>

dotnet build -p:Version=1.2.3 -p:InstallKitBuildOnBuild=true publishes MyApp, then writes bin/installer/Release/MyApp.msi and MyAppSetup.exe.

Next: Getting started.

Documentation

Full documentation lives in docs/:

AI coding agents: see the InstallKit skill.

Roadmap

Planned work is tracked in the open issues and their milestones.

License

InstallKit is released under the MIT License. WixSharp and the WiX Toolset have their own licences; see WiX version and licence.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.0.0 96 11/23/2026
1.0.0-rc.3 72 11/19/2026
1.0.0-rc.2 67 11/17/2026
1.0.0-rc.1 73 11/15/2026
0.1.0-preview.1 71 11/14/2026