]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/gui.nsh
Windows installer: updated translation by Koji
[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 # Show the license.
36 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
37 # Decision if it should be installed as admin or not
38 !insertmacro MULTIUSER_PAGE_INSTALLMODE
39
40 #Page custom PageExternalLaTeX PageExternalLaTeXValidate
41
42 # Specify the installation directory.
43 !insertmacro MUI_PAGE_DIRECTORY
44
45 # Define which components to install.
46 !insertmacro MUI_PAGE_COMPONENTS
47
48 # Specify where to install program shortcuts.
49 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
50 !define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${APP_SERIES_NAME}"
51 !insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
52
53 !if ${SETUPTYPE} != BUNDLE
54  # Select latex.exe manually
55  Page custom LatexFolder LatexFolder_LeaveFunction
56 !endif # end if != BUNDLE
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 "http://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} "FileDescription" "${APP_INFO}"
97 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
98 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"
99