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}"
26 !define MUI_COMPONENTSPAGE_NODESC
28 #--------------------------------
34 !define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
35 !insertmacro MUI_PAGE_WELCOME
37 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
39 !insertmacro MULTIUSER_PAGE_INSTALLMODE
41 #Page custom PageExternalLaTeX PageExternalLaTeXValidate
43 # Specify the installation directory.
44 !insertmacro MUI_PAGE_DIRECTORY
46 # Define which components to install.
47 !insertmacro MUI_PAGE_COMPONENTS
49 # Specify where to install program shortcuts.
50 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
51 !define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${APP_SERIES_NAME}"
52 !insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
54 # Select latex.exe manually
55 Page custom LatexFolder LatexFolder_LeaveFunction
57 # Watch the components being installed.
58 !insertmacro MUI_PAGE_INSTFILES
60 # The option to run LyX from the finish page is currently disabled because
61 # it may run with Administrator priviledges, therefore causing a different
62 # user directory to be used. This could be fixed by creating a separate
63 # process without UAC elevation.
64 # !define MUI_FINISHPAGE_RUN_TEXT "$(FinishPageRun)"
65 # !define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
67 !define MUI_FINISHPAGE_SHOWREADME
68 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
69 !define MUI_FINISHPAGE_SHOWREADME_FUNCTION StartLyX
70 !define MUI_FINISHPAGE_SHOWREADME_TEXT $(FinishPageRun)
71 !define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
72 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.lyx.org/"
73 #!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
74 !insertmacro MUI_PAGE_FINISH
78 !insertmacro MUI_UNPAGE_WELCOME
79 !insertmacro MUI_UNPAGE_CONFIRM
80 !insertmacro MUI_UNPAGE_COMPONENTS
81 !insertmacro MUI_UNPAGE_INSTFILES
83 !insertmacro MUI_UNPAGE_FINISH
85 #--------------------------------
88 !include lang\TranslatedLanguages.nsh
90 #--------------------------------
93 VIProductVersion "${APP_VERSION_NUMBER}"
94 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
95 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
96 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
97 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"