2017-11-05 20:05:51 +00:00
|
|
|
/*
|
2013-12-03 23:05:20 +00:00
|
|
|
|
2017-08-15 19:06:19 +00:00
|
|
|
NSIS Script - LyX 2.3 Installer for Windows
|
2017-11-05 20:05:51 +00:00
|
|
|
Authors: Joost Verburg, Angus Leeming, Uwe Stöhr
|
2016-10-13 00:07:30 +00:00
|
|
|
Compatible with NSIS 3.0
|
2016-02-12 01:51:38 +00:00
|
|
|
|
2012-11-11 17:07:55 +00:00
|
|
|
*/
|
|
|
|
|
2016-02-12 01:51:38 +00:00
|
|
|
# Do a Cyclic Redundancy Check to make sure the installer
|
|
|
|
# was not corrupted by the download.
|
|
|
|
CRCCheck force
|
|
|
|
#
|
2017-11-07 01:16:34 +00:00
|
|
|
# Make the installer as small as possible
|
2016-02-12 01:51:38 +00:00
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
|
2017-11-07 01:16:34 +00:00
|
|
|
# make it a Unicode installer
|
|
|
|
Unicode true
|
|
|
|
|
2012-11-11 17:07:55 +00:00
|
|
|
!ifndef SETUPTYPE
|
|
|
|
!define SETUPTYPE BUNDLE
|
|
|
|
!endif
|
|
|
|
|
2016-02-12 01:51:38 +00:00
|
|
|
# installer settings like version numbers
|
|
|
|
!include settings.nsh
|
|
|
|
|
|
|
|
# declarations of LyX's registry keys and installer variant
|
|
|
|
!include include\declarations.nsh
|
|
|
|
|
|
|
|
# definitions of global variables
|
|
|
|
!include include\variables.nsh
|
|
|
|
|
|
|
|
# configuration of standard NSIS header files
|
|
|
|
!include include\nsis.nsh
|
|
|
|
|
|
|
|
# list of files to be included in the installer
|
|
|
|
!include include\filelist.nsh
|
|
|
|
|
|
|
|
# detect third-party programs like Inkscape and LaTeX
|
|
|
|
!include include\detection.nsh
|
|
|
|
|
|
|
|
# set up the installer pages
|
|
|
|
!include include\gui.nsh
|
|
|
|
|
|
|
|
# sets the install sections and checks the system on starting the un/installer
|
|
|
|
!include include\init.nsh
|
|
|
|
|
|
|
|
# install LyX and needed third-party programs like Python etc.
|
|
|
|
!include setup\install.nsh
|
|
|
|
|
|
|
|
# loads a function to modify Windows environment variables
|
|
|
|
!include include\EnvVarUpdate.nsh
|
|
|
|
|
|
|
|
# uninstall LyX and all programs that were installed together with LyX
|
|
|
|
!include setup\uninstall.nsh
|
|
|
|
|
|
|
|
# configure LyX (set start menu and write registry entries)
|
|
|
|
!include setup\configure.nsh
|
|
|
|
|
|
|
|
# provides downloads of external programs
|
|
|
|
#!include gui\external.nsh
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# Output file
|
|
|
|
|
|
|
|
Outfile "${SETUP_EXE}"
|