SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.88k stars 93 forks source link

WebCord Windows Installer immediately crashes, after showing the background.gif for half a second, cannot install. #437

Closed GarnetSunset closed 1 year ago

GarnetSunset commented 1 year ago

Aknowledgements

Operating System / Platform

🪟️ Windows

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

Unsure, it's the installer.

Application version

Unsure, it's the installer.

Bug description

When going to install the app, the installer crashes before it can even open. Any ideas?

Video attached, I'm not sure where logs might be.

Additional context

https://github.com/SpacingBat3/WebCord/assets/13430434/31df70e6-1356-4b38-9f79-fe12b2330feb

DrakoDom commented 1 year ago

Having this same issue on Windows 10 with the latest release.

ghost commented 1 year ago

Having the exact same issue on Windows 11, with the latest release.

arijitroy454 commented 1 year ago

Same issue on windows 10 22h2, although i can see the installer for a brief second. doesnt install or create any shortcuts, puts some file on appdata, but launching it from there doesnt work, it doesnt open. looking at task manager shows it opens and immediately crashes. Happens with both 32 and 64 bit installers.

cameronj86 commented 1 year ago

Was definitely about to complain about Windows 11 blocking .exe files until I saw this thread lol. Had already made registry edits and tried 1-2 other things unfortunately.

Since then, I downloaded the prior release which is working (save for no start menu icon for some reason.)

SpacingBat3 commented 1 year ago

I'm pretty sure that's cause of #436 and could be marked as duplicate of it (Squirrel installer actually runs WebCord in background normally, as it expects for applications to provide hooks).

I'm personally not a fan of Squirrel tbh, I preffer popular NSIS (NullSoft) installers and installing WebCord to system directory (as it prevents messing around with app.asar by third-party software, unless it runs with administrative privileges). Possibly I will use a third-party maker or work myself on it as part of ReForged, then most likely I would drop Squirrel.

GarnetSunset commented 1 year ago

Awesome, thanks man, yep, 4.1.0 works for me, but even after manually moving in the files for 4.3.0 into the dir where 4.1.0 gets installed the app won't launch again after that. :)

notqiju commented 1 year ago

I got mine to show the gif for 1 whole second, I win!

SkullHex2 commented 10 months ago

Still having this issue on both 4.4.2 and 4.4.3

SpacingBat3 commented 10 months ago

I saw WebCord to install in %AppData% with the installer and that installation entry was made to the registry, but no shortcuts were made to desktop or start menu with Squirrel once I've been testing it. I think this might be the expected behavior, or at least I'm not sure whenever Squirrel installer should create such files, but given there are hooks that applications are supposed to implement within their code, I wouldn't be suprised that Squirrel just doesn't do all steps here. Either way, I'm strongly against implementing installer within the client – if it would be a seperate config or script that runs within Squirrel, I would implement it this way, but I don't want to add like a large OS-specific chunk of code for Windows just because installer isn't doing all job it (probably) should do.

SkullHex2 commented 10 months ago

Oh ok. So you're saying that the installation is working, and we simply have to add whatever shortcut we want. Unfortunately I still get this error: https://github.com/SpacingBat3/WebCord/issues/417 Deleting %APPDATA%\Roaming\WebCord\windowState, as suggested here, seems to fix it (at least temporarily). Thank you for the quick reply.