-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to debug & log NSIS #5119
Comments
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still relevant, still an annoying bot. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still relevant, still an annoying bot. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still relevant, Happy NY |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hey |
I've successfully enabled logging for NSIS with electron builder with these steps:
Technically you only need the |
@ejwilburn would you be willing to open a PR for this?
It's already possible to override the nsis builder using the env var process.env.ELECTRON_BUILDER_NSIS_DIR=<path> 🙂
An improvement is to have a way to programmatically enable logging via electron-builder config to enable developer's to have access to debug info |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@gajop did you find any fix for this? |
@LukeXF I'm giving it a shot, but NSIS development is pretty far outside my usual expertise. My end goal is to add a |
@LukeXF would you be willing to try out this patch? It contains all the changes listed in this PR #6024, but is contained in a patch for electron-builder v22.11.10. The log file should be where the install directory is. @Simon-Laux, I noticed you recently linked to this issue. Would you be willing to give this patch a shot? There's a new prop. Works currently only when building on Windows (need to recompile a makensis binary for macos somehow)
(Patch content hidden within dropdown) app-builder-lib+22.11.10.patch
app-builder-lib+22.11.10.patch
|
* feat: allowing a custom nsis binary to be specified. This will indirectly enable debugger logs for nsis installers (user specifies download url to nsis dev bundler). implements #5119 * update makensis to 3.0.4.2
Debug logging released in 22.12.0. The default makensis only supports logging when building on windows. Alternative/custom makensis urls can now be specified if wanting to use a different makensis version or try to enable |
it works, but the location of the log file |
This is the code:
That's really bizarre though. Does the same happen when logging is enabled during uninstall? I'm wondering if
|
On electron-builder version 23.0.3 it is not possible to set customNsisBinary options. When trying to build, it fails the json schema validation.
Also, in the documentation, you see that customNsisBinary is mentioned but it is not linked internally, so you have to check the source to know how should it look like. |
Please open a new ticket and I'll take a look. |
Circling back on this very old ticket as the Configuration definition was changed some long time ago.
customNsisBinary uses this configuration as the default supplied version doesn't support the debugging flag by default (it exists in electron-builder-binaries repo and needs to be recompiled with that env var/param)
|
#4712
Fighting the stale bot.
The text was updated successfully, but these errors were encountered: