⭐ Don't forget to star this repository! ⭐
Docker image for building Windows MSI installers using the WiX Toolset 5 on Linux.
It runs the official WiX CLI (wix build, wix extension add, etc.) under Wine with a preinstalled .NET SDK 10, so you can build MSI packages without needing Windows or Wine setup.
- Run
wix builddirectly on Linux - Includes WiX Toolset 5.0.2 (pinned for license compatibility)
- Preinstalled WiX extensions:
WixToolset.Util.wixextWixToolset.Firewall.wixextWixToolset.UI.wixext
- Based on Debian with Wine and .NET SDK preinstalled
- Fully isolated environment for CI/CD builds
- No need for a Windows VM or manual configuration
This repository also provides a Docker-based GitHub Action.
- Use a Linux runner (for example,
ubuntu-latest) - Check out your repository so WiX source files are available in the workspace
- Provide a command through the required
runinput
name: Build MSI
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Show WiX version
uses: jkroepke/docker-wixtoolset@main
with:
run: wix --version- name: Build installer
uses: jkroepke/docker-wixtoolset@main
with:
run: |
wix extension list
wix build installer/Product.wxs -o dist/Product.msi| Name | Required | Description | Example |
|---|---|---|---|
run |
Yes | Command executed inside the container (bash -c ...) |
wix build Product.wxs |
Build an MSI directly from Linux:
docker run --rm -v $(pwd):/src -w /src jkroepke/wixtoolset wix build Product.wxsdocker run --rm jkroepke/wixtoolset wix extension listWiX Toolset is pinned to version 5.0.2. This is the latest available version with public binary artifacts.
WiX Toolset 6 and newer versions require a commercial license agreement and paid maintenance fee to access official binaries.
See WiX Toolset OSMF License and the introduction post for details.
- Build .msi installers from Linux-based CI/CD pipelines (GitHub Actions, GitLab CI, Jenkins)
- Cross-compile Windows installers for Go, .NET, Python, or C++ applications
- Reproducible builds without any Windows dependencies
- latest
This project is licensed under the MIT License.