5 Installer user interface settings
9 #--------------------------------
12 Name "${APP_NAME} ${APP_VERSION}"
15 #--------------------------------
18 !define MUI_ABORTWARNING
19 !define MUI_ICON "${SETUP_ICON}"
20 !define MUI_UNICON "${SETUP_ICON}"
21 !define MUI_HEADERIMAGE
22 !define MUI_HEADERIMAGE_BITMAP "${SETUP_HEADERIMAGE}"
23 !define MUI_HEADERIMAGE_RIGHT
24 !define MUI_WELCOMEFINISHPAGE_BITMAP "${SETUP_WIZARDIMAGE}"
25 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "${SETUP_WIZARDIMAGE}"
27 #--------------------------------
33 !define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
34 !insertmacro MUI_PAGE_WELCOME
36 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
38 !insertmacro MULTIUSER_PAGE_INSTALLMODE
40 #Page custom PageExternalLaTeX PageExternalLaTeXValidate
42 # Specify the installation directory.
43 !insertmacro MUI_PAGE_DIRECTORY
45 # Define which components to install.
46 !insertmacro MUI_PAGE_COMPONENTS
48 # Specify where to install program shortcuts.
49 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
50 !define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${APP_SERIES_NAME}"
51 !insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
53 !if ${SETUPTYPE} != BUNDLE
54 # Select latex.exe manually
55 Page custom LatexFolder LatexFolder_LeaveFunction
56 !endif # end if != BUNDLE
58 # Watch the components being installed.
59 !insertmacro MUI_PAGE_INSTFILES
61 # The option to run LyX from the finish page is currently disabled because
62 # it may run with Administrator priviledges, therefore causing a different
63 # user directory to be used. This could be fixed by creating a separate
64 # process without UAC elevation.
65 # !define MUI_FINISHPAGE_RUN_TEXT "$(FinishPageRun)"
66 # !define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
68 !define MUI_FINISHPAGE_SHOWREADME
69 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
70 !define MUI_FINISHPAGE_SHOWREADME_FUNCTION StartLyX
71 !define MUI_FINISHPAGE_SHOWREADME_TEXT $(FinishPageRun)
72 !define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
73 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.lyx.org/"
74 #!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
75 !insertmacro MUI_PAGE_FINISH
79 !insertmacro MUI_UNPAGE_WELCOME
80 !insertmacro MUI_UNPAGE_CONFIRM
81 !insertmacro MUI_UNPAGE_COMPONENTS
82 !insertmacro MUI_UNPAGE_INSTFILES
84 !insertmacro MUI_UNPAGE_FINISH
86 #--------------------------------
89 !include lang\TranslatedLanguages.nsh
91 #--------------------------------
94 VIProductVersion "${APP_VERSION_NUMBER}"
95 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
96 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
97 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
98 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"