# WiX MSI

The WiX MSI target builds `.msi` files, which are "traditional" Windows installer files.

{% hint style="warning" %}
We generally recommend using the [Squirrel.Windows](/config/makers/squirrel.windows.md) target over using this one. These MSI files are a worse user experience for installation but sometimes it is necessary to build MSI files to appease large-scale enterprise companies with internal application distribution policies.
{% endhint %}

## Requirements

You can only build the WiX MSI target on machines with [WiX Toolset v3](https://wixtoolset.org/docs/wix3/) installed. We recommend pinning your installation of WiX Toolset to a specific version. You can install WiX Toolset on Windows via [Chocolatey](https://chocolatey.org/).

```bash
choco install wixtoolset  --version=3.14.0
```

## Installation

```bash
npm install --save-dev @electron-forge/maker-wix
```

## Usage

To use `@electron-forge/maker-wix`, add it to the `makers` array in your [Forge configuration](/config/configuration.md):

```javascript
module.exports = {
  makers: [
    {
      name: '@electron-forge/maker-wix',
      config: {
        language: 1033,
        manufacturer: 'My Awesome Company'
      }
    }
  ]
};
```

Configuration options are documented in [`MakerWixConfig`](https://js.electronforge.io/interfaces/_electron_forge_maker_wix.MakerWixConfig.html).

### Debugging

For advanced debug logging for this maker, add the `DEBUG=electron-wix-msi*` environment variable.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.electronforge.io/config/makers/wix-msi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
