# 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:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wiki](https://avatars.discourse-cdn.com/v4/letter/w/e8c25b/32.png) [@Wiki](https://swi-prolog.discourse.group/u/Wiki)\
**Post date:** [July 5, 2020, 11:18am UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/1 "2020-07-05T11:18:15Z")

</div>

This is a topic to discuss the Wiki

[Install SWI-Prolog development version on Windows 10](https://swi-prolog.discourse.group/t/1131)

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [January 21, 2020, 11:53am UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/2 "2020-01-21T11:53:31Z")

</div>

> [@Install SWI-Prolog development version on Windows 10](https://swi-prolog.discourse.group/t/install-swi-prolog-development-version-on-windows-10/1131/2):
>
> This should be done before any new install.

Why is that? I’m afraid the last time I installed the Windows versions is very long ago, but the idea is that you can install a new version on top of the old. What is going wrong?

---

<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:** [January 21, 2020, 11:56am UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/3 "2020-01-21T11:56:16Z")

</div>

> [@jan](#):
>
> the idea is that you can install a new version on top of the old

Didn’t know this.

I will clean my directory, install a stable version, then install a dev version on top of that without an uninstall and let you know.

Thanks.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [January 21, 2020, 12:10pm UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/4 "2020-01-21T12:10:49Z")

</div>

In general this should work. The only downside is that if some file has been removed in the new version it will still be present in the upgraded version. If I recall well though the installer asks for deletion of the old version.

---

<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:** [January 21, 2020, 12:11pm UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/5 "2020-01-21T12:11:45Z")

</div>

> [@jan](#):
>
> If I recall well though the installer asks for deletion of the old version.

That is correct.

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/1X/b08fa06c5c960358a740c63faddbedd6ab97edad.png)

---

<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:** [January 21, 2020, 12:21pm UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/6 "2020-01-21T12:21:35Z")

</div>

Modified uninstall [post](https://swi-prolog.discourse.group/t/install-swi-prolog-development-version-on-windows-10/1131/2) to note possibility of added uninstall question, and that a new install can be done without an uninstall without problems 😃

---

<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:** [June 28, 2022, 11:41am UTC](https://swi-prolog.discourse.group/t/wiki-discussion-install-swi-prolog-development-version-on-windows-10/2602/7 "2022-06-28T11:41:58Z")

</div>

During the install process tried to uninstall current version when prompted by Windows installer. The uninstall failed even right after a system reboot.

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/f/f9a59a081f2ee24041fccfbd8b6be9b616d78137.png)

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/3/316b6973dad2c1129a6d9af8694a5b63ca4f5fd6.png)

Install without uninstalling previous version still completed successfully.

---

<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))
