nsis

To add a license page to my installer using NSIS script


I added this command in NSIS script to add license page

; License page     
!insertmacro MUI_PAGE_LICENSE

but i getting this error

!insertmacro: macro "MUI_PAGE_LICENSE" requires 1 parameter(s), passed 0!

help me step step by process to add a license page to my installer thanks


Solution

  • You need to specify the actual license to be displayed (text or rich text format)

    !insertmacro MUI_PAGE_LICENSE "path\to\myLicense.txt"