question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows 10 update isn't working due to new version is not signed by the application owner

See original GitHub issue
  • Version: 20.27.1

NSIS

  • Target: NSIS

Hello! Recently, people who use my application on Windows 10 have their auto update stopped working, for a couple of days I could not figure out what could be the problem until the update logs had an error that there was no signature certificate. There are no problems with updating on windows 7 and there were no problems with windows 10 until this couple of days.

Build conf:

"gh-publish": "yarn electron-builder --ia32 --win -p always && node_modules/.bin/build"

"build": { "publish": [ { "provider": "github", "owner": "mttv", "repo": "mttv-app" } ], "win": { "target": [ "nsis" ], "icon": "build/icon.ico", "publisherName": "webifua" }, "nsis": { "oneClick": false, "perMachine": true, "allowElevation": true, "allowToChangeInstallationDirectory": true, "deleteAppDataOnUninstall": true, "createDesktopShortcut": true, "installerIcon": "build/icon.ico", "uninstallerIcon": "build/icon.ico", "uninstallDisplayName": "Uninstall MTTV" }, "productName": "MTTV", "appId": "com.mttv.app", "extends": null, "electronVersion": "3.0.0", "buildVersion": "0.2.7", "copyright": "webifua 2019", "files": [ "build/**/*", "electron/**/*" ] }

Log: [2019-02-25 21:51:59.464] [info] App starting… [2019-02-25 21:52:05.544] [info] Checking for update [2019-02-25 21:52:05.616] [info] Checking for update… [2019-02-25 21:52:05.769] [info] Generated new staging user ID: a488db7d-724c-53fa-9c43-b811a945aa9f [2019-02-25 21:52:07.857] [info] Found version 0.2.7 (url: mttv-setup-0.2.7.exe) [2019-02-25 21:52:10.886] [info] Downloading update from mttv-setup-0.2.7.exe [2019-02-25 21:52:10.915] [info] No cached update info available [2019-02-25 21:52:10.919] [info] Download block maps (old: “https://github.com/mttv/mttv-app/releases/download/v0.2.5/mttv-setup-0.2.5.exe.blockmap”, new: https://github.com/mttv/mttv-app/releases/download/v0.2.7/mttv-setup-0.2.7.exe.blockmap) [2019-02-25 21:52:11.881] [info] File has 1493 changed blocks [2019-02-25 21:52:11.886] [info] Full: 62,513.36 KB, To download: 30,412.29 KB (49%) [2019-02-25 21:52:11.893] [info] Differential download: https://github.com/mttv/mttv-app/releases/download/v0.2.7/mttv-setup-0.2.7.exe [2019-02-25 21:52:12.109] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/168543775/f86c9080-3942-11e9-9b2f-242515d08d36 [2019-02-25 22:16:52.989] [info] App starting… [2019-02-25 22:16:57.638] [info] Checking for update [2019-02-25 22:16:57.716] [info] Checking for update… [2019-02-25 22:17:00.451] [info] Found version 0.2.7 (url: mttv-setup-0.2.7.exe) [2019-02-25 22:17:02.723] [info] Downloading update from mttv-setup-0.2.7.exe [2019-02-25 22:17:02.752] [info] No cached update info available [2019-02-25 22:17:02.758] [info] Download block maps (old: “https://github.com/mttv/mttv-app/releases/download/v0.2.5/mttv-setup-0.2.5.exe.blockmap”, new: https://github.com/mttv/mttv-app/releases/download/v0.2.7/mttv-setup-0.2.7.exe.blockmap) [2019-02-25 22:17:03.725] [info] File has 1493 changed blocks [2019-02-25 22:17:03.730] [info] Full: 62,513.36 KB, To download: 30,412.29 KB (49%) [2019-02-25 22:17:03.754] [info] Differential download: https://github.com/mttv/mttv-app/releases/download/v0.2.7/mttv-setup-0.2.7.exe [2019-02-25 22:17:03.971] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/168543775/f86c9080-3942-11e9-9b2f-242515d08d36 [2019-02-25 22:17:41.781] [warn] Sign verification failed, installer signed with incorrect certificate: publisherNames: webifua, raw info: { “SignerCertificate”: null, “TimeStamperCertificate”: null, “Status”: 2, “StatusMessage”: “The file C:\Users\Admin\AppData\Local\mttv-updater\pending\temp-mttv-setup-0.2.7.exe is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170” } [2019-02-25 22:17:41.801] [error] Error: Error: New version 0.2.7 is not signed by the application owner: publisherNames: webifua, raw info: { “SignerCertificate”: null, “TimeStamperCertificate”: null, “Status”: 2, “StatusMessage”: “The file C:\Users\Admin\AppData\Local\mttv-updater\pending\temp-mttv-setup-0.2.7.exe is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170” } at newError (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\builder-util-runtime\src\index.ts:29:17) at Object.<anonymous> (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:42:17) From previous event: at Object.task (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:11) at C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:610:25 at Generator.next (<anonymous>) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) From previous event: at NsisUpdater.executeDownload (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:545:68) at NsisUpdater.executeDownload (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:27:18) at NsisUpdater.doDownloadUpdate (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:27:17) at NsisUpdater.downloadUpdate (C:\Program Files (x86)\MTTV\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:420:19) at BrowserWindow.appUpdateWin.on (C:\Program Files (x86)\MTTV\resources\app.asar\electron\main.js:600:25) at BrowserWindow.emit (events.js:182:13) [2019-02-25 22:17:41.802] [info] Error in auto-updater. Error: New version 0.2.7 is not signed by the application owner: publisherNames: webifua, raw info: { “SignerCertificate”: null, “TimeStamperCertificate”: null, “Status”: 2, “StatusMessage”: “The file C:\Users\Admin\AppData\Local\mttv-updater\pending\temp-mttv-setup-0.2.7.exe is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170” }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
meekaahcommented, Mar 24, 2019

indeed i’ve stopped relying on it myself aswell most of the time it just goes 0%…100% 👎

1reaction
mttvcommented, Mar 24, 2019

@meekaah Not quite, but I managed to solve auto-update problem with "verifyUpdateCodeSignature": false, but download progress is still very buggy it sometimes works and sometimes it doesnt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot problems updating Windows - Microsoft Support
Learn how to troubleshoot problems updating Windows. Find answers to common questions and issues installing Windows updates.
Read more >
Reactivating Windows after a hardware change
Sign in as an administrator. · Select the Start button, then select Settings > System > Activation > Troubleshoot . · Select I...
Read more >
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >
Windows error message: "We can't sign in to your account"
If you still can't sign in, try creating a new local administrator account, sign in to that new account, then follow the steps...
Read more >
What does it mean if Windows isn't supported?
Learn what it means if you have an older version of Windows that's no longer supported.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found