2006-11-04 14:28:11 +00:00
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
NSIS Script - LyX 1.4 Installer for Win32
|
|
|
|
|
Authors: Joost Verburg, Angus Leeming, Uwe St<53>hr
|
|
|
|
|
Requires NSIS 2.21 or later
|
|
|
|
|
|
|
|
|
|
Licence details for all installer scripts can be found
|
|
|
|
|
in the file COPYING or at http://www.lyx.org/about/license.php
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2006-11-06 22:15:04 +00:00
|
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
|
|
2006-11-04 14:28:11 +00:00
|
|
|
|
!include "include\declarations.nsh"
|
|
|
|
|
|
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.
|
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
|
|
|
|
#Compile the launcher
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
|
|
|
|
!system '"${NSISDIR}\makensis.exe" "${FILES_LAUNCHER}\launcher.nsi"'
|
|
|
|
|
|
2007-02-26 16:03:30 +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
|
|
|
|
#--------------------------------
|
|
|
|
|
#LyX Installer, 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-03-20 04:10:23 +00:00
|
|
|
|
# bundle installer
|
2007-02-07 07:55:38 +00:00
|
|
|
|
!ifdef SETUPTYPE_BUNDLE
|
2007-03-20 04:10:23 +00:00
|
|
|
|
!ifdef BundleExeFile
|
2007-02-07 07:55:38 +00:00
|
|
|
|
OutFile "${BundleExeFile}"
|
|
|
|
|
!else
|
2007-03-20 04:10:23 +00:00
|
|
|
|
Outfile "${SETUP_EXE}"
|
2007-02-07 07:55:38 +00:00
|
|
|
|
!endif
|
2007-03-20 04:10:23 +00:00
|
|
|
|
# regular installer
|
|
|
|
|
!else
|
|
|
|
|
!ifdef ExeFile
|
|
|
|
|
OutFile "${ExeFile}"
|
2007-01-25 19:13:22 +00:00
|
|
|
|
!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
|
|
|
|
#--------------------------------
|
|
|
|
|
#Components
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
|
|
|
|
!include "components\core.nsh"
|
|
|
|
|
!include "components\user.nsh"
|
|
|
|
|
!include "components\reinstall.nsh"
|
|
|
|
|
!include "components\external.nsh"
|
|
|
|
|
!include "components\viewer.nsh"
|
|
|
|
|
!include "components\dicts.nsh"
|
|
|
|
|
!include "components\langselect.nsh"
|
|
|
|
|
!include "components\configure.nsh"
|
|
|
|
|
!include "components\uninstall.nsh"
|