2006-11-04 14:28:11 +00:00
|
|
|
|
/*
|
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
NSIS Script - LyX 1.5/1.6 Installer for Win32
|
2006-11-04 14:28:11 +00:00
|
|
|
|
Authors: Joost Verburg, Angus Leeming, Uwe St<53>hr
|
2008-03-30 21:37:53 +00:00
|
|
|
|
Requires NSIS 2.36 or later
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
Licence details for all installer scripts can be found in the file COPYING
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
!include settings.nsh
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
2007-03-20 04:10:23 +00:00
|
|
|
|
#--------------------------------
|
|
|
|
|
# The following commands use makensis to compile two applications.
|
|
|
|
|
# Although these applications are written in NSIS, they do not install anything.
|
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Compile the launcher
|
2006-11-04 14:28:11 +00:00
|
|
|
|
!system '"${NSISDIR}\makensis.exe" "${FILES_LAUNCHER}\launcher.nsi"'
|
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Compile Windows PDF view helper
|
2006-11-04 14:28:11 +00:00
|
|
|
|
!system '"${NSISDIR}\makensis.exe" "${FILES_PDFVIEW}\pdfview.nsi"'
|
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Output file can be specified using command line option
|
2007-03-20 04:10:23 +00:00
|
|
|
|
# /DExeFile=/path/to/installer or /DBundleExeFile=/path/to/installer if
|
|
|
|
|
# SETUPTYPE_BUNDLE is defined.
|
2007-01-25 19:13:22 +00:00
|
|
|
|
|
2007-02-07 07:55:38 +00:00
|
|
|
|
!ifdef SETUPTYPE_BUNDLE
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Bundle installer
|
|
|
|
|
!ifdef BundleExeFile
|
|
|
|
|
OutFile "${BundleExeFile}"
|
|
|
|
|
!else
|
|
|
|
|
Outfile "${SETUP_EXE}"
|
|
|
|
|
!endif
|
2007-01-25 19:13:22 +00:00
|
|
|
|
!else
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Regular installer
|
|
|
|
|
!ifdef ExeFile
|
|
|
|
|
OutFile "${ExeFile}"
|
|
|
|
|
!else
|
|
|
|
|
Outfile "${SETUP_EXE}"
|
|
|
|
|
!endif
|
2007-03-20 04:10:23 +00:00
|
|
|
|
!endif
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Header files
|
|
|
|
|
|
|
|
|
|
!include include\declarations.nsh
|
|
|
|
|
!include include\detection.nsh
|
|
|
|
|
!include include\dictlist.nsh
|
|
|
|
|
!include include\filelist.nsh
|
|
|
|
|
!include include\gui.nsh
|
|
|
|
|
!include include\init.nsh
|
|
|
|
|
!include include\langlist.nsh
|
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# Setup
|
|
|
|
|
|
|
|
|
|
!include setup\install.nsh
|
|
|
|
|
!include setup\uninstall.nsh
|
2008-03-31 15:31:09 +00:00
|
|
|
|
!include setup\configure.nsh
|
2008-03-30 21:37:53 +00:00
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# User interface (wizard pages)
|
|
|
|
|
|
|
|
|
|
!include gui\external.nsh
|
|
|
|
|
!include gui\langselect.nsh
|
|
|
|
|
!include gui\reinstall.nsh
|