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
nsis help #8170
Comments
Do you mean creating NSIS installer without using electron-builder? If that is the case, there's an official website with some examples and tutorials: https://nsis.sourceforge.io/Main_Page. |
i understand but electron's nsis process is very complex with a bunch of
app-builder-lib and app-builder-bin and NSIS and 7z and 7za and nsi and nsh
and all that stuff its not just simple NSIS
…On Thu, Apr 18, 2024 at 3:51 PM Maksim Kalinin ***@***.***> wrote:
Do you mean creating NSIS installer without using electron-builder? If
that is the case, there's an official website with some examples and
tutorials: https://nsis.sourceforge.io/Main_Page.
—
Reply to this email directly, view it on GitHub
<#8170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIHRKE4KZH3KLSVDJ53UQPDY57FX5AVCNFSM6AAAAABF7RDF4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTHEYTSNBSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
maybe u cant tell me everything in a short sentence but ive looked for the
NSIS 3.04 you use in electron but i couldnt find the binary, i
stumbled upon this:
https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z
but it seems like its not it since its detected by some antiviruses JUST because it is that specific NSIS, would
just getting this:
https://github.com/electron-userland/electron-builder-binaries/tree/master/nsis
along
with the nsis7z plugin good enough and do the same thing? if possible
please share the current electron-builder NSIS files along with the
plugins, Thanks!
…On Thu, Apr 18, 2024 at 3:51 PM Maksim Kalinin ***@***.***> wrote:
Do you mean creating NSIS installer without using electron-builder? If
that is the case, there's an official website with some examples and
tutorials: https://nsis.sourceforge.io/Main_Page.
—
Reply to this email directly, view it on GitHub
<#8170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIHRKE4KZH3KLSVDJ53UQPDY57FX5AVCNFSM6AAAAABF7RDF4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTHEYTSNBSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, I think this is what electron-builder uses:
electron-builder/packages/app-builder-lib/src/binDownload.ts Lines 18 to 40 in fa6fc16
There's quite a few things going on, the main directory containing the source code seems to be https://github.com/electron-userland/electron-builder/tree/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/src/targets/nsis and the one containing What I believe can help you is git history: you could go through it searching for commits containing "nsis" or "windows installer". For example, here is the commit containing the early nsis implementation: 1779ac5. |
Thanks for your help! After searching for a while, I figured out how it
works. My goal was to go to the "win-unpacked" folder and remove
unnecessary files, and then build them. That's why I asked
about electron packages and builds. I
created my builder and built it, but the issue is the file size is still
big because the electron exe (the unpacked one) contains many things. The
aim is to make the file size as small as possible. My suggestion is to
compress the main exe as much as possible and remove unneeded components based on the type of
application you're making. For example, if it's a browser app, only include
necessary files like the chromium engine and stuff. However, if it's a silent
optimizer app, don't include the chromium engine and stuff. I'm referring
specifically to the main exe, but it would be great if this could also
apply to other files!
EDIT: It would be nice if it could be so that it is not an SFX archive.
…On Fri, Apr 19, 2024 at 10:54 AM Maksim Kalinin ***@***.***> wrote:
i stumbled upon this:
https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z
but it seems like its not it since its detected by avast antivirus
Yes, I think this is what electron-builder uses:
https://github.com/electron-userland/electron-builder/blob/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/src/targets/nsis/nsisUtil.ts#L38
https://github.com/electron-userland/electron-builder/blob/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/src/binDownload.ts#L18-L40
There's quite a few things going on, the main directory containing the
source code seems to be
https://github.com/electron-userland/electron-builder/tree/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/src/targets/nsis
and the one containing .nsh, .nsi templates is
https://github.com/electron-userland/electron-builder/tree/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/templates/nsis
.
What I believe can help you is git history: you could go through it
searching for commits containing "nsis" or "windows installer". For
example, here is the commit containing the early nsis implementation:
1779ac5
<1779ac5>
.
—
Reply to this email directly, view it on GitHub
<#8170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIHRKE3ZOB4357N3JT37XXLY6DLVTAVCNFSM6AAAAABF7RDF4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRWGEZTANJXGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
i just have a .7z file with some files and i wanna make it exe with nsis the same way electron does it i just dont know how to
The text was updated successfully, but these errors were encountered: