Skip to content

electron-builder custom NSIS include script macro not working #5704

Description

@alokmahor
  • Version: 22.10.5
  • Electron Version: 11.1.0
  • Electron Type (current, beta, nightly): current
  • Target: Windows 10

I have created a electron desktop app and created a installer using electron-builder.

Now I want to try macro like customInstall and customUnInstall

My installer.nsh file is

!macro customInstall
  MessageBox MB_OK "Test output 1"
!macroend

!macro customUnInstall
  MessageBox MB_OK "Test output 2"
!macroend

My electron-builder config is

"build": {
    "nsis": {
      "include": "installer.nsh"
    },
    "mac": {
      "icon": "build/icon.png"
    },
    "win": {
      "icon": "build/icon.png"
    }
  }

But this is not working for me.
What I am missing to make it working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions