Update.exe does not work with .NET Framework 4.8.1
Steps to reproduce
- Open Element Desktop
- Wait or go to "Help & About" -> Search for Updates
- An expetion is thrown:
This application requires one of the following versions of the .NET Framework: v4.0.30319
Do you want to install this .NET Framework version now?

Outcome
What did you expect? The update.exe should search for newer versions.
What happened instead? The update.exe throws an exception.
Operating system
Windows 10 (22H2)
Application version
Messenger Desktop: 1.11.23, Version Olm: 3.2.12
How did you install the app?
No response
Homeserver
No response
Will you send logs?
No
That is https://github.com/Squirrel/Squirrel.Windows as included by https://www.electron.build/
That is https://github.com/Squirrel/Squirrel.Windows as included by https://www.electron.build/
So I have to open an issue there? Sorry, this is my first one...
@FamilieRo unclear which of the 2 upstreams here is to blame. Squirrel.Windows claims to accept a --framework-version but doesn't describe version flexibility, electron-builder offers no way to set --framework-version nor does it set it itself
.NET Framework is common feature of Windows. Maybe your Windows files were damadged. Install .NET Framework again and try.
Someone found the fix for this issue, you can check it here :
https://techcommunity.microsoft.com/t5/windows-server-for-it-pro/windows-server-2019-and-net-4-8/m-p/3840420/highlight/true#M9922
All you have to do is paste the full code in Notepad, save as "All files" while adding a .reg at the end of the file name, open regedit, then in the File tab, press Import and select the saved Notepad file.
Note: Sorry if this is a late answer, i'm posting this on all the first Google results.