electron-userland / electron-installer-windows

Create a Windows package for your Electron app.
MIT License
469 stars 49 forks source link

This is a dummy update.exe IDR_UPDATE_ZIP #358

Open benjarn374 opened 1 year ago

benjarn374 commented 1 year ago

electron-installer-windows ^3.0.0 npm 8.13.2 node v18.12.1 Microsoft Windows 11 Famille - Version 10.0.22621 Build 22621

i have pack my app correctly I build and get a exe setup file.

When executing that setup.exe, i am having a hwhoops popup saying :

hwhoops

This is a dummy update.exe. If you are seeing this, your build did not correctly replace the IDR_UPDATE_ZIP resource.

Command Line: '--install .'

My dependencies

    "electron": "^21.2.2",
    "electron-installer-dmg": "^4.0.0",
    "electron-installer-windows": "^3.0.0",
    "electron-packager": "^17.1.1"
    "electron-squirrel-startup": "^1.0.0",

My index.js start with

if(require('electron-squirrel-startup')) return;

const { app, BrowserWindow, systemPreferences } = require('electron');
const path = require('path');
const packageJson = require('./package.json');

const fs = require('fs');
const os = require('os');

My squirrelLog

2022-12-07 17:06:15> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\benja\AppData\Local\teoola_show\app-1.0.0\teoola-show.exe: System.OperationCanceledException: L'opération a été annulée.
   à System.Threading.CancellationToken.ThrowOperationCanceledException()
   à Squirrel.Utility.<>c__DisplayClass11_0.<InvokeProcessAsync>b__0()
   à System.Threading.Tasks.Task.InnerInvoke()
   à System.Threading.Tasks.Task.Execute()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à Squirrel.Utility.<InvokeProcessAsync>d__11.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass10_0.<<invokePostInstall>b__0>d.MoveNext()
2022-12-07 17:06:15> ApplyReleasesImpl: Starting fixPinnedExecutables
2022-12-07 17:06:15> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2022-12-07 17:06:15> ApplyReleasesImpl: Examining Pin: Firefox.lnk
2022-12-07 17:06:15> ApplyReleasesImpl: Examining Pin: Visual Studio Code.lnk
2022-12-07 17:06:15> ApplyReleasesImpl: Fixing up tray icons
2022-12-07 17:06:15> ApplyReleasesImpl: cleanDeadVersions: for version 1.0.0
2022-12-07 17:06:15> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-1.0.0