2007-02-08 21:09:30 +00:00
|
|
|
/*
|
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
gui.nsh
|
|
|
|
|
|
|
|
Installer user interface settings
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# General
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
Name "${APP_NAME} ${APP_VERSION}"
|
|
|
|
BrandingText " "
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# Interface settings
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!define MUI_ABORTWARNING
|
|
|
|
!define MUI_ICON "${SETUP_ICON}"
|
|
|
|
!define MUI_UNICON "${SETUP_ICON}"
|
|
|
|
!define MUI_HEADERIMAGE
|
|
|
|
!define MUI_HEADERIMAGE_BITMAP "${SETUP_HEADERIMAGE}"
|
|
|
|
!define MUI_HEADERIMAGE_RIGHT
|
|
|
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "${SETUP_WIZARDIMAGE}"
|
|
|
|
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${SETUP_WIZARDIMAGE}"
|
|
|
|
!define MUI_COMPONENTSPAGE_NODESC
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# Pages
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
# Installer
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!define MUI_WELCOMEPAGE_TITLE_3LINES
|
2008-05-01 18:39:05 +00:00
|
|
|
!define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
|
|
!insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
|
2008-04-22 18:33:20 +00:00
|
|
|
!insertmacro MULTIUSER_PAGE_INSTALLMODE
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
Page custom PageReinstall PageReinstallValidate
|
|
|
|
Page custom PageExternalLaTeX PageExternalLaTeXValidate
|
2008-05-01 18:39:05 +00:00
|
|
|
!ifndef BUNDLE_IMAGEMAGICK
|
2007-02-08 21:09:30 +00:00
|
|
|
Page custom PageExternalImageMagick PageExternalImageMagickValidate
|
2008-05-01 18:39:05 +00:00
|
|
|
!endif
|
|
|
|
!ifndef BUNDLE_GHOSTSCRIPT
|
2007-02-08 21:09:30 +00:00
|
|
|
Page custom PageExternalGhostscript PageExternalGhostscriptValidate
|
2008-05-01 18:39:05 +00:00
|
|
|
!endif
|
2007-02-08 21:09:30 +00:00
|
|
|
Page custom PageLanguage PageLanguageValidate
|
|
|
|
|
|
|
|
!define MUI_PAGE_HEADER_TEXT $(TEXT_DICT_TITLE)
|
|
|
|
!define MUI_PAGE_HEADER_SUBTEXT $(TEXT_DICT_SUBTITLE)
|
|
|
|
!define MUI_COMPONENTSPAGE_TEXT_TOP $(TEXT_DICT_TOP)
|
|
|
|
!define MUI_COMPONENTSPAGE_TEXT_COMPLIST $(TEXT_DICT_LIST)
|
2008-04-22 18:33:20 +00:00
|
|
|
!insertmacro MUI_PAGE_COMPONENTS # For spell checker dictionaries
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
|
|
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
|
|
|
|
!define MUI_FINISHPAGE_SHOWREADME
|
|
|
|
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
|
|
|
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION CreateDesktopShortcut
|
|
|
|
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(TEXT_FINISH_DESKTOP)
|
|
|
|
!define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
|
|
|
|
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.lyx.org/"
|
2008-04-22 18:33:20 +00:00
|
|
|
!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
# Uninstaller
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!define MUI_WELCOMEPAGE_TITLE_3LINES
|
|
|
|
!define MUI_WELCOMEPAGE_TEXT $(UNTEXT_WELCOME)
|
|
|
|
!insertmacro MUI_UNPAGE_WELCOME
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_FINISH
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# Installer Languages
|
|
|
|
|
|
|
|
!macro LANG LANG_NAME
|
|
|
|
# NSIS language file
|
|
|
|
!insertmacro MUI_LANGUAGE "${LANG_NAME}"
|
|
|
|
# LyX language file
|
|
|
|
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "lang\${LANG_NAME}.nsh" "lang\English.nsh"
|
|
|
|
!macroend
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
!insertmacro LANG "english"
|
|
|
|
!insertmacro LANG "french"
|
|
|
|
!insertmacro LANG "german"
|
|
|
|
!insertmacro LANG "italian"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# Version information
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
VIProductVersion "${APP_VERSION_NUMBER}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"
|