]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/gui.nsh
Disable the option to run LyX from the finish page for now. This would run LyX using...
[features.git] / development / Win32 / packaging / installer / include / gui.nsh
1 /*
2
3 gui.nsh
4
5 Installer user interface settings
6
7 */
8
9 #--------------------------------
10 # General
11
12 Name "${APP_NAME} ${APP_VERSION}"
13 BrandingText " "
14
15 #--------------------------------
16 # Interface settings
17
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
27
28 #--------------------------------
29 # Pages
30
31 # Installer
32
33 !define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
34 !insertmacro MUI_PAGE_WELCOME
35 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
36 !insertmacro MULTIUSER_PAGE_INSTALLMODE
37
38 Page custom PageReinstall PageReinstallValidate
39 Page custom PageExternalLaTeX PageExternalLaTeXValidate
40
41 !insertmacro MUI_PAGE_DIRECTORY
42 !insertmacro MUI_PAGE_INSTFILES
43
44 # The option to run LyX from the finish page is currently disabled because
45 # it may run with Administrator priviledges, therefore causing a different
46 # user directory to be used. This could be fixed by creating a separate
47 # process without UAC elevation.
48 # !define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
49
50 !define MUI_FINISHPAGE_SHOWREADME
51 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
52 !define MUI_FINISHPAGE_SHOWREADME_FUNCTION CreateDesktopShortcut
53 !define MUI_FINISHPAGE_SHOWREADME_TEXT $(TEXT_FINISH_DESKTOP)
54 !define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
55 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.lyx.org/"
56 !define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
57 !insertmacro MUI_PAGE_FINISH
58
59 # Uninstaller
60
61 !insertmacro MUI_UNPAGE_WELCOME
62 !insertmacro MUI_UNPAGE_CONFIRM
63 !insertmacro MUI_UNPAGE_COMPONENTS
64 !insertmacro MUI_UNPAGE_INSTFILES
65
66 !insertmacro MUI_UNPAGE_FINISH
67
68 #--------------------------------
69 # Installer Languages
70
71 !macro LANG LANG_NAME
72   # NSIS language file
73   !insertmacro MUI_LANGUAGE "${LANG_NAME}"
74   # LyX language file
75   !insertmacro LANGFILE_INCLUDE_WITHDEFAULT "lang\${LANG_NAME}.nsh" "lang\English.nsh"
76 !macroend
77
78 !insertmacro LANG "english"
79 !insertmacro LANG "french"
80 !insertmacro LANG "german"
81 !insertmacro LANG "italian"
82
83 #--------------------------------
84 # Version information
85
86 VIProductVersion "${APP_VERSION_NUMBER}"
87 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
88 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
89 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
90 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"