]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/gui.nsh
installer: port recent changes from branch
[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 # Welcome page
34 !define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
35 !insertmacro MUI_PAGE_WELCOME
36 # Show the license.
37 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
38
39 !insertmacro MULTIUSER_PAGE_INSTALLMODE
40
41 #Page custom PageExternalLaTeX PageExternalLaTeXValidate
42
43 # Specify the installation directory.
44 !insertmacro MUI_PAGE_DIRECTORY
45
46 # Define which components to install.
47 !insertmacro MUI_PAGE_COMPONENTS
48
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
53
54 # Select latex.exe manually
55 Page custom LatexFolder LatexFolder_LeaveFunction
56
57 # Watch the components being installed.
58 !insertmacro MUI_PAGE_INSTFILES
59
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}"
66
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
75
76 # Uninstaller
77
78 !insertmacro MUI_UNPAGE_WELCOME
79 !insertmacro MUI_UNPAGE_CONFIRM
80 !insertmacro MUI_UNPAGE_COMPONENTS
81 !insertmacro MUI_UNPAGE_INSTFILES
82
83 !insertmacro MUI_UNPAGE_FINISH
84
85 #--------------------------------
86 # Installer Languages
87
88 !include lang\TranslatedLanguages.nsh
89
90 #--------------------------------
91 # Version information
92
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}"
98