Tyrrrz / DiscordChatExporter

Exports Discord chat logs to a file
MIT License
7.7k stars 703 forks source link

Bootstrapper fails to fetch .NET release manifest on Windows 7 #1036

Closed Ariamaki closed 1 year ago

Ariamaki commented 1 year ago

Version

2.39.1

Flavor

GUI (Graphical User Interface)

Export format

No response

Details

Attempting to load the program after the most recent update claims that the computer is missing pre-requisite updates and .net frameworks. This is strictly untrue, as I have the correct frameworks installed and even manually updated to a more recent version than required just to be sure. Despite this, the program tries to force the updates and crashes in the process. On previous versions this was not an issue because there was a button allowing me to skip the process of attempting these broken and needless re-installs. That button is missing on the current version, so the entire program is now bricked and it has overwritten my older installation so I can't just use that instead. Exporter Error

Steps to reproduce

Try to run the program after the update on a Windows 7 computer

Tyrrrz commented 1 year ago

The bootstrapper has been changed to use the host resolver directly to initialize the runtime, so that button no longer makes sense. If you get an error that dependencies are missing, that means the app has already failed to run before that check even happened. It's possible that the runtime you have installed is targeting a different processor architecture, or was corrupted during the installation process.

You can also try running the app via the .NET CLI: dotnet DiscordChatExporter.dll to use .NET's built-in apphost. Or dotnet --version to see available versions. If those work, you probably have mismatching architectures (i.e., x86 .NET installed on x64 system).

Note that Windows 7 support is more coincidental than anything at this point, there might be parts of the app that won't work due to networking features that aren't supported on that system. Additionally, DCE will continue to get updated to target newer versions of the runtime as they become available, and at some point Microsoft may drop support for Windows 7. It's recommended that you upgrade to a newer operating system.

That said, I have tested the bootstrapper on a clean installation of Windows 7 in a VM, and it works without issues. If the problem persists, and you find no way to solve it, you can always use an older version of DCE and disable auto-updates.

image