2018-02-18 14:52:57 +00:00
|
|
|
/*
|
2010-11-18 19:50:29 +00:00
|
|
|
|
|
|
|
gui.nsh
|
|
|
|
|
|
|
|
Installer user interface settings
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# General
|
|
|
|
|
|
|
|
Name "${APP_NAME} ${APP_VERSION}"
|
|
|
|
BrandingText " "
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# Interface settings
|
|
|
|
|
|
|
|
!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}"
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# Pages
|
|
|
|
|
|
|
|
# Installer
|
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
# Welcome page
|
2010-11-18 19:50:29 +00:00
|
|
|
!define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
2018-08-30 19:14:06 +00:00
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
# Show the license.
|
2010-11-18 19:50:29 +00:00
|
|
|
!insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
|
2018-08-30 19:14:06 +00:00
|
|
|
|
2016-02-03 23:13:21 +00:00
|
|
|
# Decision if it should be installed as admin or not
|
2010-11-18 19:50:29 +00:00
|
|
|
!insertmacro MULTIUSER_PAGE_INSTALLMODE
|
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
#Page custom PageExternalLaTeX PageExternalLaTeXValidate
|
2010-11-18 19:50:29 +00:00
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
# Specify the installation directory.
|
2010-11-18 19:50:29 +00:00
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
2011-05-23 04:12:10 +00:00
|
|
|
|
|
|
|
# Define which components to install.
|
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
|
|
|
|
# Specify where to install program shortcuts.
|
|
|
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
2017-12-06 14:31:10 +00:00
|
|
|
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "${APP_NAME} ${APP_SERIES_NAME}"
|
2011-05-23 04:12:10 +00:00
|
|
|
!insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
|
|
|
|
|
2011-12-21 01:12:43 +00:00
|
|
|
!if ${SETUPTYPE} != BUNDLE
|
|
|
|
# Select latex.exe manually
|
|
|
|
Page custom LatexFolder LatexFolder_LeaveFunction
|
|
|
|
!endif # end if != BUNDLE
|
2011-05-23 04:12:10 +00:00
|
|
|
|
|
|
|
# Watch the components being installed.
|
2010-11-18 19:50:29 +00:00
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
|
2011-04-26 21:33:32 +00:00
|
|
|
# The option to run LyX from the finish page is currently disabled because
|
|
|
|
# it may run with Administrator priviledges, therefore causing a different
|
|
|
|
# user directory to be used. This could be fixed by creating a separate
|
|
|
|
# process without UAC elevation.
|
2011-05-23 04:12:10 +00:00
|
|
|
# !define MUI_FINISHPAGE_RUN_TEXT "$(FinishPageRun)"
|
2011-04-26 21:33:32 +00:00
|
|
|
# !define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
|
|
|
|
|
2010-11-18 19:50:29 +00:00
|
|
|
!define MUI_FINISHPAGE_SHOWREADME
|
|
|
|
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
2011-05-23 04:12:10 +00:00
|
|
|
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION StartLyX
|
|
|
|
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(FinishPageRun)
|
2010-11-18 19:50:29 +00:00
|
|
|
!define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
|
2017-12-06 14:31:10 +00:00
|
|
|
!define MUI_FINISHPAGE_LINK_LOCATION "https://www.lyx.org/"
|
2011-05-23 04:12:10 +00:00
|
|
|
#!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
|
2010-11-18 19:50:29 +00:00
|
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
|
|
|
|
# Uninstaller
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_WELCOME
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_FINISH
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# Installer Languages
|
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
!include lang\TranslatedLanguages.nsh
|
2010-11-18 19:50:29 +00:00
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# Version information
|
|
|
|
|
|
|
|
VIProductVersion "${APP_VERSION_NUMBER}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
|
2017-11-18 15:55:05 +00:00
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${APP_NAME} ${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION} ${APP_SETUPTYPE} installer"
|
2010-11-18 19:50:29 +00:00
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
|
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"
|
2017-12-06 14:31:10 +00:00
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${APP_NAME} Team"
|
|
|
|
# Fixme: LyX should register the name "LyX" as trademark
|
2017-11-18 15:55:05 +00:00
|
|
|
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" ""
|