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
Updater not working with Windows 10/Electron 1.7.3 #1725
Comments
Works for me and confirmed by other users. Do you call |
Works for me in both cases — explicit exit or install on quit. Please provide more details and debug log (https://github.com/electron-userland/electron-builder/wiki/Auto-Update#debugging). |
Yes, I am calling autoUpdater.quitAndInstall() explicitly. |
@develar Are you sure you are on the same version of electron (1.7.3) when you tested it? Because the issue doesn't happen on any earlier versions of electron. |
Yes — https://github.com/develar/onshape-desktop-shell/blob/master/package.json#L55 Please provide debug log. |
@develar I work with @ngprasad 2017-06-23 11:10:41.885 [ERROR] Error: Error: spawn EACCES (Issue looks very similar to #1636) |
I tried "electron-builder": "^19.7.3" too. |
Please provide your electron-builder config. |
@develar I work with @JaisonJose and @ngprasad. Here's our electron-builder-release config; all "MOCK" strings are just replacements of info directly related to our application. // electron-builder-release.json; code-block listed as Javascript to support inline-comment
{
"appId": "com.MOCK_APP.ID",
"productName": "MOCK_NAME",
"extraResources": [
"app/lib/**/*"
],
"files": [
"rel/**/*",
"!rel/**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,",
"!rel/**/node_modules/.bin",
"!rel/**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!rel/**/._*",
"!rel/**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}"
],
"compression": "normal",
"dmg": {
"title": "MOCK_TITLE",
"contents": [
{
"x": 350,
"y": 180,
"type": "link",
"path": "/Applications"
},
{
"x": 100,
"y": 180,
"type": "file"
}
],
"window": {
"width": 447,
"height": 288
}
},
"mac": {
"category": "public.app-category.MOCK_CATEGORY"
},
"win": {
"target": "nsis",
"certificateFile": "./build-utils/sha2_mycredentials.pfx",
"certificatePassword": "MOCK_PASSWORD"
},
"publish": {
"provider": "generic",
"url": "http://MOCK_URL_BASE/static/release/${os}"
},
"nsis": {
"oneClick": true,
"warningsAsErrors": false,
"perMachine": true // This is true so the installation will wind up in "Program Files"
"unicode": false,
"artifactName": "${productName}-Setup-${version}.${ext}"
},
"directories": {
"output": "dist/release"
}
} |
@develar Following up, any updates regarding this issue, or anything we can do to help reproduce or debug? |
Sorry for delay. I am going to check per machine update tomorrow morning CET. |
I cannot reproduce. perMachine works correctly for me. Could you please show your updater code (where do you call quitAndInstall)? |
autoUpdater.on('update-downloaded', (event) => { |
Ouch... please do not call autoupdater quit from dialog callback. Please wrap in setImmediate. |
Please see #1604 (comment) |
@develar We investigated the dialog but it still failed. Then we changed perMachine setting to false and it works. We downloaded the sample app and tried setting perMachine setting to true with Electron v. 1.7.3 on Windows 10 x64, and that fails with the same error. Previous electron versions (1.6.x) with the same settings (perMachine=true, Windows 10 x64) work as expected. Here's the error log:-
We think there might still be an issue with perMachine=true on Electron 1.7.3 and Windows 10 x64. Can you please look into it? |
@develar Did you get a chance to look at this issue with sample app? |
I think this code is supposed to handle that error and run the installer with elevated rights. However |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We have our app built using the latest electron-builder and latest electron (1.7.3) but we are seeing issues on windows 10 while updating. It prompts for the download but does not update the app after quitting the old version of the app. Checking the version of the app in installed path shows that it is still on the older version.
The text was updated successfully, but these errors were encountered: