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 #--------------------------------
37 #Windows Vista settings
39 RequestExecutionLevel highest
41 #--------------------------------
43 #These files should come first in the compressed data (for faster GUI)
45 ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
46 ReserveFile "dialogs\user.ini"
47 ReserveFile "dialogs\external.ini"
48 ReserveFile "dialogs\viewer.ini"
49 ReserveFile "dialogs\langselect.ini"
50 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
51 ReserveFile "${FILES_DVIPOST_PKG}\dvipost.sty"
53 #--------------------------------
57 Var CurrentUserInstall
79 #--------------------------------
80 #Include standard functions
82 !insertmacro FUNCTION_STRING_StrStr
84 !insertmacro GetParent
85 !insertmacro VersionCompare
86 !insertmacro WordFind2X
88 #--------------------------------
91 !macro ReDef NAME VALUE
93 #Redefine a pre-processor definition
99 !define `${NAME}` `${VALUE}`
103 !macro CallFunc FUNCTION INPUT VAROUT
105 #Calls a function that modifies a single value on the stack
113 #--------------------------------
114 #LyX installer header files
116 !include "include\download.nsh"
117 !include "include\init.nsh"
118 !include "include\windows.nsh"
119 !include "include\lang.nsh"
120 !include "include\gui.nsh"
121 !include "include\detection.nsh"
122 !include "include\filelists.nsh"