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 !if ${SETUPTYPE} != BUNDLE
55 # Select latex.exe manually
56 Page custom LatexFolder LatexFolder_LeaveFunction
57 !endif # end if != BUNDLE
59 # Watch the components being installed.
60 !insertmacro MUI_PAGE_INSTFILES
62 # The option to run LyX from the finish page is currently disabled because
63 # it may run with Administrator priviledges, therefore causing a different
64 # user directory to be used. This could be fixed by creating a separate
65 # process without UAC elevation.
66 # !define MUI_FINISHPAGE_RUN_TEXT "$(FinishPageRun)"
67 # !define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
69 !define MUI_FINISHPAGE_SHOWREADME
70 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
71 !define MUI_FINISHPAGE_SHOWREADME_FUNCTION StartLyX
72 !define MUI_FINISHPAGE_SHOWREADME_TEXT $(FinishPageRun)
73 !define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
74 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.lyx.org/"
75 #!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
76 !insertmacro MUI_PAGE_FINISH
80 !insertmacro MUI_UNPAGE_WELCOME
81 !insertmacro MUI_UNPAGE_CONFIRM
82 !insertmacro MUI_UNPAGE_COMPONENTS
83 !insertmacro MUI_UNPAGE_INSTFILES
85 !insertmacro MUI_UNPAGE_FINISH
87 #--------------------------------
90 !include lang\TranslatedLanguages.nsh
92 #--------------------------------
95 VIProductVersion "${APP_VERSION_NUMBER}"
96 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
97 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
98 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
99 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"