]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/gui.nsh
installer:
[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 !if ${SETUPTYPE} != BUNDLE
55  # Select latex.exe manually
56  Page custom LatexFolder LatexFolder_LeaveFunction
57 !endif # end if != BUNDLE
58
59 # Watch the components being installed.
60 !insertmacro MUI_PAGE_INSTFILES
61
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}"
68
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
77
78 # Uninstaller
79
80 !insertmacro MUI_UNPAGE_WELCOME
81 !insertmacro MUI_UNPAGE_CONFIRM
82 !insertmacro MUI_UNPAGE_COMPONENTS
83 !insertmacro MUI_UNPAGE_INSTFILES
84
85 !insertmacro MUI_UNPAGE_FINISH
86
87 #--------------------------------
88 # Installer Languages
89
90 !include lang\TranslatedLanguages.nsh
91
92 #--------------------------------
93 # Version information
94
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}"
100