# Windows installer seems to be displaying wrong version to be uninstalled

**URL:** <https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586>\
**Category:** General\
**Created:** [October 23, 2021, 2:29pm UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586 "2021-10-23T14:29:40Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [October 23, 2021, 2:29pm UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/1 "2021-10-23T14:29:40Z")

</div>

Currently installed version

```prolog
 SWI-Prolog (threaded, 64 bits, version 8.5.0-49-g2f46def0c)

```

Installing older version

```prolog
swipl-8.0.0-1.x64.exe

```

Install wizard shows

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

* * *

I’m not trying to find these. 😶

---

<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:** [October 23, 2021, 4:11pm UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/2 "2021-10-23T16:11:02Z")

</div>

I wonder which files we are talking about. 8.5.0-49-g2f46def0c suggests a nightly build? I tried both downloading and installing 8.5.0 release and the nightly. Both looked fine. Where did you download from? What is the file size (exact) or better, checksum? Anyone else?

---

<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:** [October 23, 2021, 4:15pm UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/3 "2021-10-23T16:15:24Z")

</div>

> [@jan](#):
>
> Where did you download from?

This is where I downloaded the stable version 8.0

[Index of /download/stable/bin](https://www.swi-prolog.org/download/stable/bin/)  
`https://www.swi-prolog.org/download/stable/bin/`

* * *

I will try to recreate again with more detailed steps, give me a few minutes.

---

<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:** [October 23, 2021, 4:33pm UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/4 "2021-10-23T16:33:09Z")

</div>

These steps were taken to uninstall the current version and use a somewhat older stable version, i.e. 8.0.0, to check `leash(-all)`.

* * *

Current version installed:  
SWI-Prolog (threaded, 64 bits, version 8.5.0-49-g2f46def0c)

To find an older stable version there is a link to the directory in

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

after the install instructions.

> For older versions there are  
> HTML pages  
> [current stable version](https://www.swi-prolog.org/download/stable)  
> [older stable versions](https://www.swi-prolog.org/download/stable?show=all)
> 
> and directories  
> [Index of /download/stable/bin](https://www.swi-prolog.org/download/stable/bin/)  
> [Index of /download/devel/bin](https://www.swi-prolog.org/download/devel/bin/)

1. [Index of /download/stable/bin](https://www.swi-prolog.org/download/stable/bin/) was clicked.

Then searched for 8.0 as a 64-bit executable and found

> [swipl-8.0.0-1.x64.exe](https://www.swi-prolog.org/download/stable/bin/swipl-8.0.0-1.x64.exe.envelope) Mon Jan 14 02:31:08 2019 12,087,703

1. Download swipl-8.0.0-1.x64.exe
2. Doubled clicked on swipl-8.0.0-1.x64.exe

MS dialog appeared

 ![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/f/f76662d462210b661aa294b55dd5bcad51064c1a.png)  
4. Clicked `Install anyway`

User Account Control dialog appeared  
5. Clicked `Yes`

Then the dialog with the wrong version appeared.

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

Note. There are two versions noted in the dialog

1. The one at the top that is correct. `SWI-Prolog 8.0.0 Setup`
2. The one in the message that is incorrect. `SWI-Prolog 8.0.0 is already installed.`

As noted at the start, only `8.5.0-49-g2f46def0c` is installed.

I don’t expect this to be fixed, was just noting in case others see it. 🙂

---

<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:** [October 23, 2021, 4:47pm UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/5 "2021-10-23T16:47:16Z")

</div>

Ok. So the bug is that the installer claims the currently installed version is the version the installer installs rather than the actual version that is installed. If there is no easy fix we probably simply rephrase that as “SWI-Prolog is already installed”

---

<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:** [October 24, 2021, 9:58am UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/6 "2021-10-24T09:58:21Z")

</div>

For those wanting to see the patch.

> <https://github.com/SWI-Prolog/swipl-devel/commit/2c1b8076b959e7962c9f5254bbbe38bca52fd901>

* * *

This also helps to locate the information used with the Windows installer

[NSIS](https://nsis.sourceforge.io/Main_Page) (Nullsoft Scriptable Install System))

> <https://github.com/SWI-Prolog/swipl-devel/blob/9aa95b1c37eb70fa9ea7942bdaecd6b3431406d6/cmake/Pack.cmake#L61-L98>

---

<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:** [October 24, 2021, 10:14am UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/7 "2021-10-24T10:14:39Z")

</div>

The price is that the installer no longer tells which version it will install. You can now only tell that from the installer’s file name (and of course by running swipl after the installation).

That could be changed, but doing so requires copying and editing the NSIS installer build template from the CMake distribution to Prolog and editing it. That seems asking for trouble when CMake makes changes to the packaging code.

---

<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:** [October 24, 2021, 10:21am UTC](https://swi-prolog.discourse.group/t/windows-installer-seems-to-be-displaying-wrong-version-to-be-uninstalled/4586/8 "2021-10-24T10:21:12Z")

</div>

Thanks.

The change you made was what I expected.

The reason I added the reply with links into the code was that yesterday I tried to locate that code and could not. Searching for `is already installed.` did not locate it.

A while ago I hunted down that the installer for Windows was NSIS but forgot the name and could not find the topic/reply with that information either. Some of the information used with SWI-Prolog is well hidden in the code, thus this is like a bread crumb to help me and others locate it. 🙂
