Old 30th November 2007, 09:32   #1
giugio
Junior Member
 
Join Date: Nov 2007
Posts: 25
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?
giugio is offline   Reply With Quote
Old 30th November 2007, 12:34   #2
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
.rtf ? don't know if it works.... I use .txt

Try that with boths license .txt files in . :

code:

!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

galevsky is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump