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.

include EULA license file in windows installer

See original GitHub issue
  • Version: latest 7.9.0
  • Target: windows 10 x64

I am including an EULA license file in the NSIS installer.

I have edited package.json to include a custom nsis.include = resources/windows/license.nsh

My license.nsh script looks like this:

!include "MUI2.nsh"

!insertmacro MUI_PAGE_LICENSE "resources\license.txt"

The NSIS installer creation fails at common.nsh line 11 when setting Unicode true with:

Error: Can't change target architecture after data already got compressed or header already changed!
Error: Unable to set target charset (adequate stub not found?)

I can fix this temporarily by commenting out line 11 in common.nsh.

I’m not very familiar with NSIS, I wasn’t sure it its possible to check the mentioned cases in the error message before setting the Unicode value or not. Or if this is even something that you all wanted to worry about.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
develarcommented, Oct 18, 2016

Please try 7.14.2. nsis.license (path to file, not recommended, use convention) or just put license.rtf or license.txt to build resources (build directory).

Supported for all nsis variants.

1reaction
develarcommented, Oct 18, 2016

@artpol Issue is fixed, I will finish and push fix in the evening, please wait.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure the EULA for the setup - Advanced Installer
Add license agreement dialog to the setup. To add the EULA to the setup, you can follow these steps: Go to the Dialogs...
Read more >
How to add license file dynamically to LicenseAgreement ...
I have a Basic MSI project installer. When user run a setup then I want to download a EULA file from server and...
Read more >
How to launch EULA.rtf for the end user agreement ... - MSDN
I tried adding the EULA file via Setup Project-> Application Folder -> Add -> File -> EULA.rtf assuming that installer will identify the...
Read more >
EULA During Installation - TermsFeed
An EULA, or End User License Agreement, is a legal contract between a publisher of a software application and the end user who...
Read more >
How to present EULA to user when build application installer?
how can I include a kind of EULA (End User License Agreement) into ... patch to windows: first ask the user "Do you...
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