MsiBuilder 1.0.0

dotnet add package MsiBuilder --version 1.0.0
                    
NuGet\Install-Package MsiBuilder -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="MsiBuilder" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MsiBuilder" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MsiBuilder" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MsiBuilder --version 1.0.0
                    
#r "nuget: MsiBuilder, 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.
#:package MsiBuilder@1.0.0
                    
#:package 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.
#addin nuget:?package=MsiBuilder&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MsiBuilder&version=1.0.0
                    
Install as a Cake Tool

MsiBuilder

Builder for creating Windows Installer (MSI) packages using WixSharp.

Provides a fluent API for configuring and building MSI installers with various options.

Install wix tool

The wix tool is required to build MSI packages with this library.

dotnet tool install --global wix

Usage

var builder = new WixMsiBuilder("MyApp")
    .SetInstallDir(
        installPath: Path.Combine("%ProgramFiles%", "MyApp"),
        releasePath: @"C:\Temp\net472\")
    .AddShortcut(
        shortcutPath: "%Desktop%",
        shortcutName: "Myapp",
        targetPath: Path.Combine("[INSTALLDIR]", "MyApp.exe"),
        iconPath: @"C:\Temp\net472\logo.ico")
    .AddShortcut(
        shortcutPath: "%ProgramMenu%",
        shortcutName: "Myapp",
        targetPath: Path.Combine("[INSTALLDIR]", "MyApp.exe"),
        iconPath: @"C:\Temp\net472\logo.ico")
    .SetInstallScope(InstallScope.perMachine)
    .SetAppVersion("1.1.0")
    .SetProductId(Guid.Parse("f9af10ed-ea36-424b-973e-a0e651203370"))
    .SetUpgradeCode(Guid.Parse("e74fb99c-5bf1-454d-802a-c7c6f9cc219f"))
    .SetControlPanelInfo(productInfo =>
    {
        productInfo.Manufacturer = "YourCompany";
        productInfo.ProductIcon = @"C:\Temp\net472\logo.ico";
        productInfo.Comments = "My awesome app blah blah blah";
        productInfo.Contact = "support@yourcompany.com";
        productInfo.HelpLink = "https://www.yourcompany.com/support";
        productInfo.UrlInfoAbout = "https://www.yourcompany.com/about";
    })
    .SetCompressionLevel(CompressionLevel.none)
    .SetOutput(
        outputPath: @"C:\Temp\",
        msiFilename: "MyInstaller");

var (success, path, message) = builder.BuildMsi();
if (success)
    Console.WriteLine($"Installer created at {path}");
else
    Console.WriteLine($"Error building installer: {message}");

Copyright (c) 2025 Josué Clément

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 117 11/29/2025