Skip to content
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 package fails to install system-wide in boring mode #700

Closed
lbssousa opened this issue Aug 25, 2016 · 2 comments
Closed

NSIS package fails to install system-wide in boring mode #700

lbssousa opened this issue Aug 25, 2016 · 2 comments

Comments

@lbssousa
Copy link

lbssousa commented Aug 25, 2016

  • Version: 5.34.1
  • Target: Windows (NSIS)

I've just built a NSIS package with the following options:

"oneClick": false,
"allowElevation": true

The installer asks me if I want to install per machine or per user. If I select per machine, it just skips the file copying step and goes through the final step, as if the installation was succeeded. If I select per user, it installs correctly.

If I include option "perMachine": true in my package.json, the build fails with the following message:

!insertmacro: macro named "setInstallModePerUser" not found!
Error in macro FUNCTION_INSTALL_MODE_PAGE_FUNCTION on macroline 18
Error in macro PAGE_INSTALL_MODE on macroline 17
!include: error in script: "boringInstaller.nsh" on line 21
Error in script "<stdin>" on line 9 -- aborting creation process
@develar
Copy link
Member

develar commented Aug 29, 2016

How it is supposed to work — you set perMachine: true only for one-click installer. Not for boring installer because boring installer in any case "has" install mode page.

Well, I see that such combination is requested and so, should be supported.

it just skips the file copying step and goes through the final step

Works for me currently, app correctly installed. It just works very fast.

@develar
Copy link
Member

develar commented Aug 29, 2016

Fixed in 6.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants