element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

Update.exe does not work with .NET Framework 4.8.1

Open FamilieRo opened this issue 2 years ago • 5 comments

Steps to reproduce

  1. Open Element Desktop
  2. Wait or go to "Help & About" -> Search for Updates
  3. 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? Element_Error

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

FamilieRo avatar Mar 14 '23 06:03 FamilieRo

That is https://github.com/Squirrel/Squirrel.Windows as included by https://www.electron.build/

t3chguy avatar Mar 14 '23 08:03 t3chguy

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 avatar Mar 14 '23 08:03 FamilieRo

@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

t3chguy avatar Mar 14 '23 08:03 t3chguy

.NET Framework is common feature of Windows. Maybe your Windows files were damadged. Install .NET Framework again and try.

JeanPaulLucien avatar Apr 07 '23 21:04 JeanPaulLucien

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.

Hittos avatar Apr 04 '24 18:04 Hittos