]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/gui.nsh
Wininstaller, remove the option to run LyX from the finish page
[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
27 #--------------------------------
28 # Pages
29
30 # Installer
31
32 # Welcome page
33 !define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)
34 !insertmacro MUI_PAGE_WELCOME
35
36 # Show the license.
37 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
38
39 # Decision if it should be installed as admin or not
40 !insertmacro MULTIUSER_PAGE_INSTALLMODE
41
42 #Page custom PageExternalLaTeX PageExternalLaTeXValidate
43
44 # Specify the installation directory.
45 !insertmacro MUI_PAGE_DIRECTORY
46
47 # Define which components to install.
48 !insertmacro MUI_PAGE_COMPONENTS
49
50 # Specify where to install program shortcuts.
51 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
52 !define MUI_STARTMENUPAGE_DEFAULTFOLDER "${APP_NAME} ${APP_SERIES_NAME}"
53 !insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
54
55 # Select latex.exe manually
56 Page custom LatexFolder LatexFolder_LeaveFunction
57
58 # Watch the components being installed.
59 !insertmacro MUI_PAGE_INSTFILES
60
61 # The option to run LyX from the finish page is currently disabled because
62 # it may run with Administrator priviledges, therefore causing a different
63 # user directory to be used. This could be fixed by creating a separate
64 # process without UAC elevation.
65 # !define MUI_FINISHPAGE_RUN_TEXT "$(FinishPageRun)"
66 # !define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
67
68 #!define MUI_FINISHPAGE_SHOWREADME
69 #!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
70 #!define MUI_FINISHPAGE_SHOWREADME_FUNCTION StartLyX
71 #!define MUI_FINISHPAGE_SHOWREADME_TEXT $(FinishPageRun)
72 !define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
73 !define MUI_FINISHPAGE_LINK_LOCATION "https://www.lyx.org/"
74 #!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckDesktopShortcut
75 !insertmacro MUI_PAGE_FINISH
76
77 # Uninstaller
78
79 !insertmacro MUI_UNPAGE_WELCOME
80 !insertmacro MUI_UNPAGE_CONFIRM
81 !insertmacro MUI_UNPAGE_COMPONENTS
82 !insertmacro MUI_UNPAGE_INSTFILES
83
84 !insertmacro MUI_UNPAGE_FINISH
85
86 #--------------------------------
87 # Installer Languages
88
89 !include lang\TranslatedLanguages.nsh
90
91 #--------------------------------
92 # Version information
93
94 VIProductVersion "${APP_VERSION_NUMBER}"
95 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
96 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${APP_NAME} ${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION} ${APP_SETUPTYPE} installer"
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 VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${APP_NAME} Team"
101 # Fixme: LyX should register the name "LyX" as trademark
102 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" ""