# Wiki Discussion: Install SWI-Prolog development version on Windows 10

**URL:** <https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602>\
**Category:** Wiki Discussion\
**Created:** [July 5, 2020, 11:18am UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602 "2020-07-05T11:18:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [July 1, 2022, 12:14pm UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/8 "2022-07-01T12:14:31Z")

</div>

Today tried using winget to see how it works for installing SWI-Prolog.

```nohighlight
C:\Users\Groot>winget search swi-prolog
Name Id Version Source
------------------------------------------------
SWI-Prolog SWI-Prolog.SWI-Prolog 8.4.3 winget

C:\Users\Groot>winget install swi-prolog
Found SWI-Prolog [SWI-Prolog.SWI-Prolog] Version 8.4.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://www.swi-prolog.org/download/stable/bin/swipl-8.4.3-1.x64.exe
  ██████████████████████████████ 12.2 MB / 12.2 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 2

```

AFAIK the code that sets up [NSIS](https://nsis.sourceforge.io/Main_Page) (Nullsoft Scriptable Install System) for SWI-Prolog is in

> <https://github.com/SWI-Prolog/swipl-devel/blob/2c1b8076b959e7962c9f5254bbbe38bca52fd901/cmake/Pack.cmake>

which is causing `Installer failed with exit code: 2` If one downloads SWI-Prolog for Windows, starts NSIS installer and tries to uninstall a currently installed version when prompted they will see the installer failing as noted in the previous [post](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/7).

* * *

> **Personal Notes**
>
> Pack.cmake is used by CMake ([ref](https://cmake.org/cmake/help/book/mastering-cmake/chapter/Packaging%20With%20CPack.html#index-0))

---

_[View the full topic](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602)._
