5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 05:50:08 +08:00
wails/website/docs/guides/windows-installer.mdx
2022-03-31 08:10:34 +11:00

16 lines
752 B
Plaintext

# Building NSIS installer
Windows is currently the only OS supported when it comes to generating installers.
Wails automatically generates a .nsi installer script in `build/windows/installer` on project creation.
To create an installer alongside your Wails binary, you can use the `-nsis` flag with `wails build`:
```
wails build -nsis
```
You will need NSIS installed on your machine. If you use the chocolatey package manager, run the following script:
```
choco install nsis
```
If you install NSIS manually, you need to add the *Bin* folder, which contains `makensis.exe`, in your NSIS installation to your path.
[Here](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/) is a good tutorial on how to add to path on Windows.