Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows, can' open app, updater failing. #42

Closed
tjoye20 opened this issue Aug 23, 2017 · 4 comments
Closed

On Windows, can' open app, updater failing. #42

tjoye20 opened this issue Aug 23, 2017 · 4 comments

Comments

@tjoye20
Copy link

tjoye20 commented Aug 23, 2017

On Windows, the updater is erroring out and keeping the app from even being opened.

Below is the log of the error:
error.txt

Here's my setup in the app:
const updater = require('electron-simple-updater');
function onUpdateDownloaded() {
updater.quitAndInstall();
}
updater.init()
updater.on('update-downloaded', onUpdateDownloaded);

Can you help me determine what the problem is?

@tjoye20
Copy link
Author

tjoye20 commented Aug 23, 2017

Windows notifies me that this is part of the reason it's failing:
https://support.microsoft.com/en-us/help/2715633/shim-errors-for-the--net-framework-version-and-platform-support

@megahertz
Copy link
Owner

It seems that it's an internal Squirrel.Windows problem. First of all, try to make a build using the latest electron-builder and electron-builder-squirrel-windows

@megahertz
Copy link
Owner

Try to disable antivirus
Squirrel/Squirrel.Windows#698

or you can try to google "Couldn't write out staging user ID, this user probably shouldn't get beta anything"

@tjoye20
Copy link
Author

tjoye20 commented Aug 24, 2017

That's what I did as soon as I posted this, a new npm install, and rebuild. Everything worked fine after that. Thank you.

@tjoye20 tjoye20 closed this as completed Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants