Custom NSIS script included in electron.manifest.json, still not getting expected output #933

Open
opened 2026-01-29 16:52:16 +00:00 by claunia · 0 comments
Owner

Originally created by @AjayKarthik2k on GitHub (Feb 15, 2024).

I am using ElectronNET to create an desktop application from my dotnet react project. My primary aim is to backup the application if I am going to update to a newer version, and as per the docs which says that we can include a custom nsis script to customize the installer.

To check this feature I prepared an example script by seeing the electron builder docs.

My script looks like this :
image

My build section in electron.manifest.json looks like this :
image

As per the script, I think that it should create files in the $PROJECT_DIR. But I am not getting anything. Am I missing something, or I am just not connecting the dots right?

Thanks in advance!

P.S : I am also confused about where these variables $BUILD_RESOURCES_DIR and $PROJECT_DIR point to

Originally created by @AjayKarthik2k on GitHub (Feb 15, 2024). I am using ElectronNET to create an desktop application from my **dotnet react** project. My primary aim is to backup the application if I am going to update to a newer version, and as per the docs which says that we can include a custom nsis script to customize the installer. To check this feature I prepared an example script by seeing the electron builder docs. My script looks like this : ![image](https://github.com/ElectronNET/Electron.NET/assets/71871873/2173d47b-ade3-4afc-a17a-e33bd326b3c3) My build section in electron.manifest.json looks like this : ![image](https://github.com/ElectronNET/Electron.NET/assets/71871873/a9447dd7-f2fc-414e-9619-c0cbc808d4c8) As per the script, I think that it should create files in the $PROJECT_DIR. But I am not getting anything. Am I missing something, or I am just not connecting the dots right? Thanks in advance! P.S : I am also confused about where these variables **$BUILD_RESOURCES_DIR** and **$PROJECT_DIR** point to
claunia added the bug label 2026-01-29 16:52:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#933