7 !include "settings.user.nsh"
8 !include "settings.nsh"
10 ;--------------------------------
11 ;Defines based on settings
13 !ifndef SETUPTYPE_BUNDLE
14 !define SETUPTYPE_NAME DOWNLOAD
16 !define SETUPTYPE_NAME INSTALL
19 ;--------------------------------
20 ;Standard header files
23 !include "LogicLib.nsh"
24 !include "StrFunc.nsh"
25 !include "FileFunc.nsh"
26 !include "WordFunc.nsh"
27 !include "Sections.nsh"
30 ;--------------------------------
33 !define SHCNE_ASSOCCHANGED 0x08000000
34 !define SHCNF_IDLIST 0x0000
36 ;--------------------------------
38 ;These files should come first in the compressed data (for faster GUI)
40 ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
41 ReserveFile "dialogs\user.ini"
42 ReserveFile "dialogs\external.ini"
43 ReserveFile "dialogs\viewer.ini"
44 ReserveFile "dialogs\langselect.ini"
45 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
46 ReserveFile "${FILES_DVIPOST_PKG}\dvipost.sty"
48 ;--------------------------------
52 Var CurrentUserInstall
74 ;--------------------------------
75 ;Include standard functions
77 !insertmacro FUNCTION_STRING_StrStr
79 !insertmacro GetParent
80 !insertmacro VersionCompare
81 !insertmacro WordFind2X
83 ;--------------------------------
86 !macro ReDef NAME VALUE
88 ;Redefine a pre-processor definition
94 !define `${NAME}` `${VALUE}`
98 !macro CallFunc FUNCTION INPUT VAROUT
100 ;Calls a function that modifies a single value on the stack
108 ;--------------------------------
109 ;LyX installer header files
111 !include "include\init.nsh"
112 !include "include\windows.nsh"
113 !include "include\lang.nsh"
114 !include "include\gui.nsh"
115 !include "include\detection.nsh"
116 !include "include\filelists.nsh"