2011-06-11 22:55:53 +00:00
|
|
|
|
/*
|
|
|
|
|
|
2013-12-03 23:47:29 +00:00
|
|
|
|
NSIS Script - LyX 2.1 Installer for Win32
|
2011-06-11 22:55:53 +00:00
|
|
|
|
Authors: Joost Verburg, Angus Leeming, Uwe St<53>hr
|
|
|
|
|
Compatible with NSIS 2.46
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2011-11-27 13:53:29 +00:00
|
|
|
|
# Do a Cyclic Redundancy Check to make sure the installer
|
|
|
|
|
# was not corrupted by the download.
|
2011-06-11 22:55:53 +00:00
|
|
|
|
CRCCheck force
|
2011-11-27 13:53:29 +00:00
|
|
|
|
#
|
|
|
|
|
# Make the installer as small as possible.
|
2011-06-11 22:55:53 +00:00
|
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
|
|
|
|
|
|
# installer settings like version numbers
|
2011-11-27 13:53:29 +00:00
|
|
|
|
!include settings.nsh
|
2011-06-11 22:55:53 +00:00
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
2012-11-11 17:07:55 +00:00
|
|
|
|
# sets the install sections and checks the system on starting the un/installer
|
2011-06-11 22:55:53 +00:00
|
|
|
|
!include include\init.nsh
|
|
|
|
|
|
|
|
|
|
# install LyX and needed third-party programs like Python etc.
|
|
|
|
|
!include setup\install.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
|
|
|
|
|
|
2012-11-11 17:07:55 +00:00
|
|
|
|
# provides downloads of external programs
|
|
|
|
|
#!include gui\external.nsh
|
2011-06-11 22:55:53 +00:00
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# Output file
|
|
|
|
|
|
|
|
|
|
Outfile "${SETUP_EXE}"
|