Installer built on macOS Sonoma truncates text specified in MUI_PAGE_LICENSE to 126 characters.
OS Name Microsoft Windows 11 Home
Version 10.0.22631 Build 22631
OS Name Microsoft Windows 10 Pro
Version 10.0.19045 Build 19045
brew install makensis
la.txt
longer than 126 characterssetup.nsi
like below!include "MUI2.nsh"
OutFile "Install.exe"
!insertmacro MUI_PAGE_LICENSE "./la.txt"
Section
SectionEnd
makensis setup.nsi
Install.exe
and run on windowsThe PoC code is shown below.
- https://github.com/nakamura-work/nsis-mac-poc
Built on Sonoma
- https://github.com/nakamura-work/nsis-mac-poc/actions/runs/8661056537
Built on Ventura
- https://github.com/nakamura-work/nsis-mac-poc/actions/runs/8661036969
Regards.
If you add
SetCompress Off
to the script, is the full license visible in a hex editor?If not, the bug is probably somewhere inside the LoadLicenseFile function. Either how we read the file or convert it with iconv.
When I add
SetCompress Off
, truncated license text was packed.As below
https://github.com/nakamura-work/nsis-mac-poc/actions/runs/8682184656
Confirm same behavior. For RTF file's it always empty page.
With "SetCompress Off" also same result.
OS - 14.4.1 (23E224) (Sonoma) aarch64
makensis 3.10 installed via homebrew
Last edit: Valentin 2024-04-19
It may be bug in the iconv built into macOS Sonoma.
Using GNU libiconv, the issue did not reproduce.
As follows.
(Note: Because I am not expert on NSIS, UNIX, scons, et, al. so there may be errors.)