question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NSIS build failure (makensis exited with code 84, main argv conversion failed)

See original GitHub issue
  • Version: electron-builder 18.6.2 It broke after upgrading from 16.7.1, it build again properly if I roll back. Building from linux.
  • Target: NSIS 32+64bits

  • CLI Output:

electron-builder 18.6.2
Skip app dependencies rebuild because platform is different
Packaging for win32 x64 using electron 1.7.3 to release/win-unpacked
Skip app dependencies rebuild because platform is different
Packaging for win32 ia32 using electron 1.7.3 to release/win-ia32-unpacked
Building NSIS installer
  Packaging NSIS installer for arch x64
  Packaging NSIS installer for arch ia32
Error: /home/michael/.cache/electron-builder/nsis/nsis-3.0.1.13/linux/makensis exited with code 84
Output:
FATAL: main argv conversion failed!

NSIS script:
!addincludedir "/home/michael/dev/arbore/node_modules/electron-builder/templates/nsis/include"
!addplugindir /x86-unicode "/home/michael/.cache/electron-builder/nsis-resources/nsis-resources-3.0.0/plugins/x86-unicode"
!addplugindir /x86-unicode "/home/michael/dev/arbore/resources/x86-unicode"
!include "/tmp/electron-builder-VFfb3e/0-2-messages.nsh"
!include "/tmp/electron-builder-VFfb3e/0-3-messages.nsh"
Var startMenuLink
Var desktopLink

!include "common.nsh"
!include "MUI2.nsh"
!include "multiUser.nsh"
!include "allowOnlyOneInstallerInstance.nsh"

!ifdef INSTALL_MODE_PER_ALL_USERS
  !ifdef BUILD_UNINSTALLER
    RequestExecutionLevel user
  !else
    RequestExecutionLevel admin
  !endif
!else
  RequestExecutionLevel user
!endif

!ifdef ONE_CLICK
  !include "oneClick.nsh"
!else
  !include "boringInstaller.nsh"
!endif

!ifmacrodef customHeader
  !insertmacro customHeader
!endif

!ifdef BUILD_UNINSTALLER
  SilentInstall silent
!else
  Var appExe
!endif

Function .onInit
  !ifmacrodef preInit
    !insertmacro preInit
  !endif
  !ifdef BUILD_UNINSTALLER
    WriteUninstaller "${UNINSTALLER_OUT_FILE}"
    !insertmacro quitSuccess
  !else
    !insertmacro check64BitAndSetRegView

    !ifdef ONE_CLICK
      !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE
    !else
      ${IfNot} ${UAC_IsInnerInstance}
        !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE
      ${EndIf}
    !endif

    !insertmacro initMultiUser

    !ifmacrodef customInit
      !insertmacro customInit
    !endif
  !endif
FunctionEnd

!ifndef BUILD_UNINSTALLER
  !include "installUtil.nsh"
!endif

Section "install"
  !ifndef BUILD_UNINSTALLER
    !include "installSection.nsh"
  !endif
SectionEnd

!ifdef BUILD_UNINSTALLER
  !include "uninstaller.nsh"
!endif

  • Config:
"build": {
    "productName": "Arbore",
    "appId": "org.michaelmure.arbore",
    "dmg": {
      "contents": [
        {
          "x": 130,
          "y": 220
        },
        {
          "x": 410,
          "y": 220,
          "type": "link",
          "path": "/Applications"
        }
      ]
    },
    "files": [
      "dist/",
      "node_modules/",
      "app.html",
      "main.js",
      "main.js.map",
      "package.json"
    ],
    "win": {
      "target": [
        "nsis"
      ]
    },
    "nsis": {
      "oneClick": false,
      "multiLanguageInstaller": true,
      "allowToChangeInstallationDirectory": true
    },
    "linux": {
      "target": [
        "deb",
        "rpm",
        "AppImage"
      ]
    },
    "directories": {
      "buildResources": "resources",
      "output": "release"
    }
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joshwnjcommented, Jan 2, 2018

Thanks!

If anyone else lands here, the things that helped me to resolve this error message were:

0reactions
zdenbecommented, Jul 20, 2017

Great, thank you. It’s working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get NSIS Error?
The downloaded file is either incomplete or modified from the original file. While this page will outline basic solutions: Please contact the ...
Read more >
Developers - Crash build with electron-builder - - Bountysource
How can I reproduce this problem? $ vue init simulatedgreg/electron-vue my-project $ cd my-project $ npm run build. Get error
Read more >
[NSIS-commits] SF.net SVN: nsis:[6195] NSIS/trunk (Page 4)
If the end of file is read and no more data is available, the output string will be empty, and the error flag...
Read more >
otp-system-documentation.pdf
In order to compile Erlang code, a small Erlang bootstrap system has to be ... system root has not been set, configure will...
Read more >
the Fresh Open Source Software Archive - Fossies
Member "nsis-3.08-src/Source/makenssi.cpp" (17 Aug 2021, 24681 Bytes) of package ... 733 else 734 wprintf(L"FATAL: main argv conversion failed!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found