You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error message if I try to build the app:
Error: Exit code: EACCES. spawn filename.exe EACCES
at ....\node_modules\builder-util\src\util.ts:129:16
at exithandler (child_process.js:315:5)
at ChildProcess.errorhandler (child_process.js:327:5)
at ChildProcess.emit (events.js:315:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at onErrorNT (internal/child_process.js:465:16)
I use NSIS and this error occurs if I have this line in the NSIS file:
Hi! I've hit this too. Writing my notes here because this was the best hit in the issues, and I'll probably hit this again later.
This appears to be because electron-builder will run the just-generated installer in order to get the uninstaller, so that it can be signed. This behaviour was originally introduced in #526, following instructions from the NSIS wiki.
The better workaround is to set __COMPAT_LAYER=RunAsInvoker in the environment before running NSIS; this forces everything to run unelevated, which means that the installer can generate the uninstaller to be signed.
* fix(builder-util): fix how env is passed to child processes
* fix(nsis): generate uninstaller without elevating
Signing the uninstaller requires generating and running the stub, which can break the build due to requiring admin rights for any elevated-installer. Setting env var to request Windows to ignore the embedded manifest will always run the stub installer as the invoker
Hi,
I got this error message if I try to build the app:
I use NSIS and this error occurs if I have this line in the NSIS file:
My package.json contains these related values:
I tried this under Parallel Windows 10, Oracle VM Windows 10, and native Windows 10, and this issue exists under each of them.
Thanks for any assistance.
The text was updated successfully, but these errors were encountered: