{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/2949","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/2949/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/2949/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/2949/events","html_url":"https://github.com/electron-userland/electron-builder/issues/2949","id":326310601,"node_id":"MDU6SXNzdWUzMjYzMTA2MDE=","number":2949,"title":"Windows: Broken auto-updates for nsis","user":{"login":"akashnimare","id":2263909,"node_id":"MDQ6VXNlcjIyNjM5MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2263909?v=4","gravatar_id":"","url":"https://api.github.com/users/akashnimare","html_url":"https://github.com/akashnimare","followers_url":"https://api.github.com/users/akashnimare/followers","following_url":"https://api.github.com/users/akashnimare/following{/other_user}","gists_url":"https://api.github.com/users/akashnimare/gists{/gist_id}","starred_url":"https://api.github.com/users/akashnimare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akashnimare/subscriptions","organizations_url":"https://api.github.com/users/akashnimare/orgs","repos_url":"https://api.github.com/users/akashnimare/repos","events_url":"https://api.github.com/users/akashnimare/events{/privacy}","received_events_url":"https://api.github.com/users/akashnimare/received_events","type":"User","site_admin":false},"labels":[{"id":214243367,"node_id":"MDU6TGFiZWwyMTQyNDMzNjc=","url":"https://api.github.com/repos/electron-userland/electron-builder/labels/bug","name":"bug","color":"fc2929","default":true},{"id":516691539,"node_id":"MDU6TGFiZWw1MTY2OTE1Mzk=","url":"https://api.github.com/repos/electron-userland/electron-builder/labels/electron-updater","name":"electron-updater","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-24T21:55:52Z","updated_at":"2018-06-28T10:12:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Okay, so I'm getting a different kind of errors on different electron-builder's version. \r\n\r\na) **electron-builder: `v19.53.6` and `v20.8.1`**\r\n\r\nError - \r\n\r\n```\r\nGetting the same error on `v19.53.6`.\r\n\r\n[2018-05-25 02:42:00:0697] [error] Error: Error: Command failed: powershell.exe Get-AuthenticodeSignature 'C:\\Users\\username\\AppData\\Local\\Temp\\up-UN2ofR\\test-web-setup-2.3.1.exe' | ConvertTo-Json -Compress\r\n\r\n    at ChildProcess.exithandler (child_process.js:282:12)\r\n    at emitTwo (events.js:125:13)\r\n    at ChildProcess.emit (events.js:213:7)\r\n    at maybeClose (internal/child_process.js:921:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\nFrom previous event:\r\n    at verifySignature (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\windowsExecutableCodeSignatureVerifier.ts:11:3)\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\NsisUpdater.ts:88:18\r\nFrom previous event:\r\n    at NsisUpdater.verifySignature (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\NsisUpdater.js:148:11)\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\NsisUpdater.ts:43:54\r\n    at Generator.next (<anonymous>)\r\n    at runCallback (timers.js:781:20)\r\n    at tryOnImmediate (timers.js:743:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:714:5)\r\nFrom previous event:\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\NsisUpdater.js:118:33\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\BaseUpdater.ts:46:13\r\n    at Generator.next (<anonymous>)\r\n    at FSReqWrap.oncomplete (fs.js:135:15)\r\nFrom previous event:\r\n    at NsisUpdater.executeDownload (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\BaseUpdater.js:98:11)\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\NsisUpdater.ts:37:16\r\nFrom previous event:\r\n    at NsisUpdater.doDownloadUpdate (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\NsisUpdater.js:125:11)\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:331:25\r\n    at Generator.next (<anonymous>)\r\nFrom previous event:\r\n    at NsisUpdater.downloadUpdate (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\AppUpdater.js:366:11)\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:307:49\r\nFrom previous event:\r\n    at NsisUpdater.doCheckForUpdates (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\AppUpdater.js:337:11)\r\n    at C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:255:25\r\n    at Generator.next (<anonymous>)\r\n    at runCallback (timers.js:781:20)\r\n    at tryOnImmediate (timers.js:743:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:714:5)\r\nFrom previous event:\r\n    at NsisUpdater._checkForUpdates (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\out\\AppUpdater.js:291:11)\r\n    at NsisUpdater.checkForUpdates (C:\\Program Files\\test\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:204:35)\r\n    at appUpdater (C:\\Program Files\\test\\resources\\app.asar\\main\\autoupdater.js:54:14)\r\n    at WebContents.page.once (C:\\Program Files\\test\\resources\\app.asar\\main\\index.js:164:3)\r\n    at Object.onceWrapper (events.js:318:30)\r\n    at emitTwo (events.js:125:13)\r\n    at WebContents.emit (events.js:213:7)\r\n \r\n```\r\nIt's same as - https://github.com/electron-userland/electron-builder/issues/2589\r\n\r\n**b) electron-builder: `v20.11.1`**\r\n\r\nError - \r\n\r\n```\r\n[2018-05-25 03:07:28.020] [info] Checking for update\r\n[2018-05-25 03:07:38.703] [info] Found version 2.3.1 (url: testapp-web-setup-2.3.1.exe)\r\n[2018-05-25 03:07:38.719] [info] Downloading update from testapp-web-setup-2.3.1.exe\r\n[2018-05-25 03:07:38.734] [info] No cached update available\r\n[2018-05-25 03:07:56.314] [error] Cannot download differentially, fallback to full download: Error: EPERM: operation not permitted, open 'C:\\Program Files\\testapp\\package.7z'\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\builder-util-runtime\\src\\blockMapApi.ts:22:20\r\n    at Generator.next (<anonymous>)\r\nFrom previous event:\r\n    at readEmbeddedBlockMapData (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\builder-util-runtime\\out\\blockMapApi.js:55:17)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\differentialDownloader\\FileWithEmbeddedBlockMapDifferentialDownloader.ts:11:44\r\n    at Generator.next (<anonymous>)\r\n    at runCallback (timers.js:789:20)\r\n    at tryOnImmediate (timers.js:751:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:722:5)\r\nFrom previous event:\r\n    at FileWithEmbeddedBlockMapDifferentialDownloader.download (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\differentialDownloader\\FileWithEmbeddedBlockMapDifferentialDownloader.js:49:7)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\NsisUpdater.ts:182:10\r\n    at Generator.next (<anonymous>)\r\nFrom previous event:\r\n    at NsisUpdater.differentialDownloadWebPackage (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\NsisUpdater.js:311:7)\r\n    at Object.<anonymous> (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\NsisUpdater.ts:50:26)\r\n    at Generator.next (<anonymous>)\r\nFrom previous event:\r\n    at Object.task (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\NsisUpdater.js:177:25)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\BaseUpdater.ts:83:25\r\n    at Generator.throw (<anonymous>)\r\nFrom previous event:\r\n    at NsisUpdater.executeDownload (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\BaseUpdater.js:164:7)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\NsisUpdater.ts:31:23\r\nFrom previous event:\r\n    at NsisUpdater.doDownloadUpdate (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\NsisUpdater.js:181:7)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:361:25\r\n    at Generator.next (<anonymous>)\r\nFrom previous event:\r\n    at NsisUpdater.downloadUpdate (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\AppUpdater.js:539:7)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:337:49\r\nFrom previous event:\r\n    at NsisUpdater.doCheckForUpdates (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\AppUpdater.js:502:7)\r\n    at C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:279:25\r\n    at Generator.next (<anonymous>)\r\n    at runCallback (timers.js:789:20)\r\n    at tryOnImmediate (timers.js:751:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:722:5)\r\nFrom previous event:\r\n    at NsisUpdater._checkForUpdates (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\out\\AppUpdater.js:433:7)\r\n    at NsisUpdater.checkForUpdates (C:\\Program Files\\testapp\\resources\\app.asar\\node_modules\\electron-updater\\src\\AppUpdater.ts:217:35)\r\n    at appUpdater (C:\\Program Files\\testapp\\resources\\app.asar\\main\\autoupdater.js:54:14)\r\n    at WebContents.page.once (C:\\Program Files\\testapp\\resources\\app.asar\\main\\index.js:164:3)\r\n    at Object.onceWrapper (events.js:317:30)\r\n    at emitTwo (events.js:126:13)\r\n    at WebContents.emit (events.js:214:7)\r\n[2018-05-25 03:08:55.571] [info] New version 2.3.1 has been downloaded to C:\\Users\\username\\AppData\\Roaming\\testapp\\installer-2.3.1.exe\r\n[2018-05-25 03:09:01.524] [info] Install on explicit quitAndInstall\r\n[2018-05-25 03:09:01.524] [info] Install: isSilent: false, isRunAfter: true\r\n[2018-05-25 03:09:01.961] [info] Access denied or UNKNOWN error code on spawn, will be executed again using elevate\r\n[2018-05-25 03:09:02.086] [info] Update installer has already been triggered. Quitting application.\r\n[2018-05-25 03:09:20.875] [info] Checking for update\r\n[2018-05-25 03:09:32.748] [info] Update for version 2.3.1 is not available (latest version: 2.3.1, downgrade is disallowed).\r\n```\r\n\r\nThe app does able to auto-update in this case but the differential update doesn't work.\r\n\r\n**c) electron-builder: `v20.8.1` -**\r\n\r\n> When I accept the Update dialog the old version gets uninstalled then everything stops. The launching icon says the exe is missing and I should delete the shortcut.\r\n\r\nError \r\n\r\n```\r\n[2018-03-24 09:04:46:0609] [info] Checking for update\r\n[2018-03-24 09:04:48:0177] [info] Generated new staging user ID: 9dbb8cb7-9c76-5f5a-b0c0-2b2669b7a167\r\n[2018-03-24 09:04:51:0503] [info] Found version 1.9.0 (url: testapp-web-setup-1.9.0.exe)\r\n[2018-03-24 09:04:51:0506] [info] Downloading update from testapp-web-setup-1.9.0.exe\r\n[2018-03-24 09:04:56:0153] [info] File has 1568 changed blocks\r\n[2018-03-24 09:04:56:0162] [info] Full: 39,491.76 KB, To download: 32,143.6 KB (81%)\r\n[2018-03-24 09:04:56:0176] [info] Differential download: https://github.com/testapp/testapp-electron/releases/download/v1.9.0/testapp-1.9.0-x64.nsis.7z\r\n[2018-03-24 09:04:56:0352] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/60656871/5d3bcabc-2ed6-11e8-820c-173cd59753f0\r\n[2018-03-24 09:05:01:0547] [info] New version 1.9.0 has been downloaded to C:\\Users\\username\\AppData\\Local\\Temp\\2\\up-iW4iWZ\\testapp-web-setup-1.9.0.exe\r\n[2018-03-24 09:05:04:0727] [info] Install on explicit quitAndInstall\r\n[2018-03-24 09:05:04:0729] [info] Install: isSilent: false, isRunAfter: true\r\n[2018-03-24 09:05:20:0262] [info] Checking for update\r\n[2018-03-24 09:05:25:0037] [info] Update for version 1.9.0 is not available (latest version: 1.9.0, downgrade is disallowed.\r\n[2018-03-26 13:30:06:0278] [info] Checking for update\r\n[2018-03-26 13:30:11:0611] [info] Update for version 1.9.0 is not available (latest version: 1.9.0, downgrade is disallowed.\r\n[2018-03-31 16:05:27:0485] [info] Checking for update\r\n[2018-03-31 16:05:32:0387] [info] Update for version 1.9.0 is not available (latest version: 1.9.0, downgrade is disallowed.\r\n[2018-05-10 10:18:38:0322] [info] Checking for update\r\n[2018-05-10 10:18:43:0995] [info] Found version 2.0.0 (url: testapp-web-setup-2.0.0.exe)\r\n[2018-05-10 10:18:44:0000] [info] Downloading update from testapp-web-setup-2.0.0.exe\r\n[2018-05-10 10:18:48:0886] [info] File has 1175 changed blocks\r\n[2018-05-10 10:18:48:0987] [info] Full: 39,607.86 KB, To download: 23,668.18 KB (60%)\r\n[2018-05-10 10:18:49:0178] [info] Differential download: https://github.com/testapp/testapp-electron/releases/download/v2.0.0/testapp-2.0.0-x64.nsis.7z\r\n[2018-05-10 10:18:49:0370] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/60656871/762512b6-43fa-11e8-9392-edf59d0f465a\r\n[2018-05-10 10:18:55:0311] [info] New version 2.0.0 has been downloaded to C:\\Users\\username\\AppData\\Local\\Temp\\17\\up-eV01Sf\\testapp-web-setup-2.0.0.exe\r\n[2018-05-10 10:19:40:0538] [info] Install on explicit quitAndInstall\r\n[2018-05-10 10:19:40:0539] [info] Install: isSilent: false, isRunAfter: true\r\n[2018-05-10 10:19:57:0461] [info] Checking for update\r\n[2018-05-10 10:20:03:0624] [info] Update for version 2.0.0 is not available (latest version: 2.0.0, downgrade is disallowed.\r\n[2018-05-10 17:58:09:0531] [info] Checking for update\r\n[2018-05-10 17:58:15:0320] [info] Update for version 2.0.0 is not available (latest version: 2.0.0, downgrade is disallowed.\r\n[2018-05-24 18:10:23:0307] [info] Checking for update\r\n[2018-05-24 18:10:31:0229] [info] Found version 2.3.1 (url: testapp-web-setup-2.3.1.exe)\r\n[2018-05-24 18:10:31:0230] [info] Downloading update from testapp-web-setup-2.3.1.exe\r\n[2018-05-24 18:10:31:0271] [info] No cached update available\r\n[2018-05-24 18:10:39:0614] [info] File has 1859 changed blocks\r\n[2018-05-24 18:10:39:0687] [info] Full: 40,015.95 KB, To download: 37,915.67 KB (95%)\r\n[2018-05-24 18:10:39:0695] [info] Differential download: https://github.com/testapp/testapp-electron/releases/download/v2.3.1/testapp-2.3.1-x64.nsis.7z\r\n[2018-05-24 18:10:39:0936] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/60656871/17ba1204-5ee8-11e8-9cdd-8ecc145cad9c\r\n[2018-05-24 18:10:48:0697] [info] New version 2.3.1 has been downloaded to C:\\Users\\username\\AppData\\Roaming\\testapp\\installer-2.3.1.exe\r\n[2018-05-24 18:12:14:0620] [info] Install on explicit quitAndInstall\r\n[2018-05-24 18:12:14:0620] [info] Install: isSilent: false, isRunAfter: true\r\n[2018-05-24 18:12:15:0087] [info] Update installer has already been triggered. Quitting application.\r\n[2018-05-24 18:15:22:0396] [info] Checking for update\r\n[2018-05-24 18:15:28:0342] [info] Found version 2.3.1 (url: testapp-web-setup-2.3.1.exe)\r\n[2018-05-24 18:15:28:0343] [info] Downloading update from testapp-web-setup-2.3.1.exe\r\n[2018-05-24 18:15:28:0395] [info] Update has already been downloaded C:\\Users\\username\\AppData\\Roaming\\testapp\\installer-2.3.1.exe).\r\n[2018-05-24 18:15:47:0119] [info] Install on explicit quitAndInstall\r\n[2018-05-24 18:15:47:0120] [info] Install: isSilent: false, isRunAfter: true\r\n[2018-05-24 18:15:47:0159] [info] Update installer has already been triggered. Quitting application.\r\n```"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/400985523","html_url":"https://github.com/electron-userland/electron-builder/issues/2949#issuecomment-400985523","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/2949","id":400985523,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDk4NTUyMw==","user":{"login":"develar","id":350686,"node_id":"MDQ6VXNlcjM1MDY4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/350686?v=4","gravatar_id":"","url":"https://api.github.com/users/develar","html_url":"https://github.com/develar","followers_url":"https://api.github.com/users/develar/followers","following_url":"https://api.github.com/users/develar/following{/other_user}","gists_url":"https://api.github.com/users/develar/gists{/gist_id}","starred_url":"https://api.github.com/users/develar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/develar/subscriptions","organizations_url":"https://api.github.com/users/develar/orgs","repos_url":"https://api.github.com/users/develar/repos","events_url":"https://api.github.com/users/develar/events{/privacy}","received_events_url":"https://api.github.com/users/develar/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T10:12:38Z","updated_at":"2018-06-28T10:12:38Z","author_association":"MEMBER","body":"> EPERM: operation not permitted, open 'C:\\Program Files\\testapp\\package.7z'\r\n\r\nWhat? Flag `r` is used correctly, why windows blocks access..."}}
{"actor":{"display_login":"develar"}}