Archive: shoew license file


shoew license file
hy.
i have this code :
!define MUI_LICENSEPAGE_TEXT_TOP "Licenza d'uso di CMP"
!define MUI_LICENSEPAGE_TEXT_BOTTOM "Per l'utilizzo completo del software è necessario la chiave hardware e la password di attivazione. Il programma puo' essere utilizzato senza password in versione DEMO"
!insertmacro MUI_PAGE_LICENSE "license.rtf"!!!!!!!dont work

the license.rtf is in the path of the installer,but the license page don't show anithing.
why?


.rtf ? don't know if it works.... I use .txt

Try that with boths license .txt files in . :


!include "MUI.nsh"

Name "Modern UI Test"
OutFile test.exe
XPStyle on


!insertmacro MUI_PAGE_WELCOME

!define MUI_LICENSEPAGE_CHECKBOX
!define MUI_LICENSEPAGE_TEXT_TOP $(license_title)
!insertmacro MUI_PAGE_LICENSE $(license)

!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Dutch"

LangString license_title ${LANG_ENGLISH} "License agreement in English"
LangString license_title ${LANG_DUTCH} "License agreement in Dutch"

LicenseLangString license ${LANG_ENGLISH} ".\license-en.txt"
LicenseLangString license ${LANG_DUTCH} ".\license-du.txt"

LangString msg ${LANG_ENGLISH} "English msg"
LangString msg ${LANG_DUTCH} "Dutch msg"

function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
functionEnd

section "Silent" SILENT_SEC
MessageBox MB_OK "$(msg)" ; $() instead of ${}
sectionEnd