Overview
If you customize the M-Files installation package (see instructions), for example, to add vault connections or other settings for your user, a specific setting can break automatic updates (relevant documentation here, here, and here).
You can find sample errors that this can cause in the Windows Event Log at the end of the article.
Details
An old example script showed that you can edit the EditionID key (details below) and set its value to 0x1. This value denotes the product as "M-Files 2018" which was discontinued in early 2023. The current product is called "M-Files Online" and is denoted by a different value. Having a wrong value here confuses the download URL generation and it tries to find an installation package for the old product, and those do not exist anymore.
[HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Common]
"EditionID"=dword:00000001
This is a problematic value - 0x1.
Solution
Remove the EditionID key setting from your customizations and let the base installation package put in the correct value. Do not set this key unless there is a very specific reason that has been confirmed by M-Files.
In situations where you already have it in place, you have two options:
- Manually distribute a fixed package for the new version via tools like GPO.
- Use tools like GPO to edit the registry key for the users and set its value to 0x28 (the value, at the time of writing, for the current product - "M-Files Online", note that this is hexadecimal 28, not decimal).
After that, automatic updates should work again.
If they do not, make sure firewalls are not blocking the downloads (see here).
Sample Error Message
You can see similar errors in the Windows Event Log of the computers trying to update. The "404" error can also be seen in the auto updates dialog in the M-Files Client when you manually press "Check Now". The version in the message will be the version that it is trying to download and will vary for your case.
M-Files Online
Failed to download the new M-Files version "23.8.12892.6-x64-eng" for automatic update.
The M-Files setup package could not be downloaded. Background Intelligent Transfer Service (BITS) reported the following error:
HTTP status 404: The requested URL does not exist on the server.
CheckForUpdatesThread.cpp, 677, Failed to download the new M-Files version "23.8.12892.6-x64-eng" for automatic update. (0x80040148)
CheckForUpdatesThread.cpp, 758, Failed to download the new M-Files version "23.8.12892.6-x64-eng" for automatic update. (0x80040148)
CheckForUpdatesThread.cpp, 1156, Failed to download the new M-Files version "23.8.12892.6-x64-eng" for automatic update. (0x80040148)
CheckForUpdatesThread.cpp, 1156, The M-Files setup package could not be downloaded. Background Intelligent Transfer Service (BITS) reported the following error:
HTTP status 404: The requested URL does not exist on the server. (0x8004013D)
CheckForUpdatesThread.cpp, 1329, The M-Files setup package could not be downloaded. Background Intelligent Transfer Service (BITS) reported the following error:
HTTP status 404: The requested URL does not exist on the server. (0x8004013D)
CheckForUpdatesThread.cpp, 1700, The M-Files setup package could not be downloaded. Background Intelligent Transfer Service (BITS) reported the following error:
HTTP status 404: The requested URL does not exist on the server. (0x8004013D)
(M-Files 23.4.12528.8 2023-09-07T12:47:14.244Z)
