mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 09:15:50 +00:00
new Windows installer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14420 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1459cfb120
commit
3e5373de28
176
INSTALL.Win32
176
INSTALL.Win32
@ -1,126 +1,56 @@
|
||||
=================
|
||||
INSTALL for Win32
|
||||
=================
|
||||
COMPILING LyX for Win32
|
||||
=======================
|
||||
|
||||
LyX can be built with either MinGW/MSYS or Microsoft Visual Studio. The
|
||||
instructions below describe the detailed steps needed to set up a MinGW/MSYS
|
||||
environment ready to compile LyX. Several of these steps (installation of the
|
||||
third-party libraries) need to be performed for a MSVS build also but, of
|
||||
course, the details of how to do so are different. Nonetheless, we hope that
|
||||
the description below provides the MSVS developer with enough info to get
|
||||
started.
|
||||
LyX 1.4 can be build with MinGW/MSYS. To compile LyX, follow these steps:
|
||||
|
||||
Building LyX the first time can appear to be a daunting task but much of that
|
||||
is knowing which packages to download in the first place. Once you've set up
|
||||
the build environment, actually building LyX should be straightforward.
|
||||
1 Install a MSYS/MinGW environment
|
||||
|
||||
Download from http://sourceforge.net/projects/mingw/
|
||||
|
||||
* MSYS 1.0.10 or later
|
||||
* MinGW Installer 5.0.3 or later
|
||||
|
||||
Install MSYS in c:\msys and MinGW in c:\msys\mingw. When installing MinGW,
|
||||
select the Candidate package and a Full installation.
|
||||
|
||||
2 Install the dependencies
|
||||
|
||||
Download ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-mingw.zip
|
||||
and extract in c:\msys
|
||||
|
||||
3 Compile
|
||||
|
||||
First, copy the LyX source code to c:\msys\home\lyx-14
|
||||
|
||||
Then, start MSYS and enter:
|
||||
|
||||
cd /home/lyx-14/development/Win32/packaging
|
||||
./build_lyxwin.sh
|
||||
|
||||
Compilation will start and take quite some time.
|
||||
|
||||
NOTE:
|
||||
|
||||
If you are compiling a development (SVN) version, you will be asked to run
|
||||
autogen.sh in a Cygwin environment. Download and install Cygwin
|
||||
(www.cygwin.com) with automake/autoconf, start the Cygwin console and
|
||||
enter:
|
||||
|
||||
cd /cygdrive/c/msys/home/lyx-14
|
||||
./autogen.sh
|
||||
|
||||
Then follow step 3 again.
|
||||
|
||||
4 Create the installer
|
||||
|
||||
To create an installer with LyX and all related components, download
|
||||
and install the latest NSIS.
|
||||
|
||||
Also download the latest Python from www.python.org and install in
|
||||
C:\Python24
|
||||
|
||||
Finally, go to C:\msys\home\lyx-14\development\Win32\packaging\installer
|
||||
(in a normal Windows Explorer), right-click on lyx.nsi and click
|
||||
"Compile NSIS Script".
|
||||
|
||||
The instructions below should guide you through the installation of the
|
||||
MinGW/MSYS build environment, together with details on how to grab and build
|
||||
gettext, libiconv, qtwin, and aspell.
|
||||
|
||||
Once you've done all that, you should go read the README in
|
||||
development/Win32/packaging/ (MSVS users just open up development/Win32/lyx.sln
|
||||
and click Build) The two scripts in the same directory, build_lyxwin.sh and
|
||||
package_lyxwin.sh should automate the entire build process. If not and you
|
||||
really can't figure out what to do next, then please, please drop a mail to
|
||||
lyx-devel@lists.lyx.org.
|
||||
|
||||
Enjoy!
|
||||
The LyX Team
|
||||
|
||||
=============================================================================
|
||||
|
||||
1 MinGW & MSYS
|
||||
|
||||
1.1 Download the following packages from http://www.mingw.org/download.shtml:
|
||||
|
||||
binutils-2.16.91-...tar.gz
|
||||
gcc-core-3.4.5-...tar.gz
|
||||
gcc-g++-3.4.5-...tar.gz
|
||||
mingw32-make-3.80.0-3.tar.gz
|
||||
mingw-runtime-3.9.tar.gz
|
||||
mingw-utils-0.3.tar.gz
|
||||
MSYS-1.0.11-...exe
|
||||
msys-autoconf-2.59.tar.bz2
|
||||
msys-automake-1.8.2.tar.bz2
|
||||
msysDTK-1.0.1.exe
|
||||
msys-libtool-1.5.tar.bz2
|
||||
w32api-3.6.tar.gz
|
||||
|
||||
1.2 Install in C:\MinGW
|
||||
|
||||
binutils, gcc-core, gcc-g++, mingw32-make, mingw-runtime,
|
||||
mingw-utils, w32api
|
||||
|
||||
1.3 Install in C:\msys
|
||||
|
||||
MSYS, msys-autoconf, msys-automake, msysDTK, msys-libtool
|
||||
|
||||
|
||||
2 Gettext
|
||||
|
||||
2.1 Download the following package from http://www.gnu.org/software/gettext:
|
||||
|
||||
gettext-0.14.5.tar.gz
|
||||
|
||||
2.2 Extract the package in your home directory and run
|
||||
|
||||
./configure --disable-shared --prefix=/mingw
|
||||
make
|
||||
make install
|
||||
|
||||
|
||||
3 Libiconv
|
||||
|
||||
3.1 Download the following package from http://www.gnu.org/software/libiconv:
|
||||
|
||||
libiconv-1.10.tar.gz
|
||||
|
||||
3.2 Extract the package in your home directory and run
|
||||
|
||||
./configure --prefix=/mingw
|
||||
make
|
||||
make install
|
||||
|
||||
|
||||
4 QTWIN (see http://sourceforge.net/projects/qtwin)
|
||||
|
||||
4.1 Get the latest CVS version
|
||||
|
||||
Using the cvs executable that is packaged with MSYS,
|
||||
from the MSYS command prompt:
|
||||
|
||||
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/qtwin login
|
||||
<return> (i.e., no password)
|
||||
cvs -z3 -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/qtwin co \
|
||||
-r QT_WIN32_3_3_BRANCH qt-3
|
||||
|
||||
4.2 Compile the qtwin library
|
||||
|
||||
Open a Windows command line (run cmd.exe) and enter
|
||||
|
||||
cd <path_to_your_qtwin_dir>
|
||||
set QMAKESPEC=win32-g++
|
||||
setenv.bat
|
||||
configure.bat -release
|
||||
|
||||
|
||||
5. Aspell
|
||||
|
||||
5.1 Download the following package from http://aspell.net/
|
||||
|
||||
aspell-0.60.4.tar.gz
|
||||
|
||||
5.2 Extract the package in your home directory.
|
||||
|
||||
Use development/Win32/packaging/build_aspell.sh to build Aspell now.
|
||||
|
||||
5.3 You can download pre-compiled aspell dictionaries from
|
||||
http://wiki.lyx.org/Windows/Aspell6
|
||||
|
||||
|
||||
6. LyX
|
||||
|
||||
6.1 As mentioned above, read the README in development/Win32/packaging.
|
||||
|
||||
=============================================================================
|
||||
|
@ -1,119 +0,0 @@
|
||||
Packaging LyX for Windows
|
||||
===============================
|
||||
Angus Leeming, 07 March 2006
|
||||
===============================
|
||||
|
||||
Preparing the way
|
||||
=================
|
||||
|
||||
The very first thing to do on the way to creating a LyX/Win package is
|
||||
to build the sources and install them somewhere accessible. I've written
|
||||
a script, build_lyxwin.sh, that performs all the necessary steps. Please
|
||||
read the preamble and (un)comment those steps that are necessary at the
|
||||
end of the script.
|
||||
|
||||
The (eventual --- mingw is a *very* slow compiler) result is a lyx
|
||||
package that's almost ready to go in $LYX_SRCS/build/installprefix.
|
||||
|
||||
Thereafter, the contents of this tree must be manipulated a
|
||||
little. I've written a little script, package_lyxwin.sh, to automate
|
||||
the process:
|
||||
|
||||
* Copy the DLLs qt-mt3.dll, libiconv-2.dll, mingwm10.dll to the
|
||||
$PREFIX/bin/ directory. These are needed by the LyX executable.
|
||||
|
||||
* Strip the binaries in $PREFIX/bin/ of all debugging info.
|
||||
|
||||
* Copy dt2dv.exe and dv2dt.exe to $PREFIX/bin/. These are needed to enable
|
||||
dvips, yap et al. to cope with "file names with spaces".
|
||||
|
||||
* Remove all stuff generated by running configure. It makes sense on
|
||||
your machine only, not for whoever is installing LyX. Specifically
|
||||
|
||||
xfonts/fonts.dir, xfonts/fonts.scale, doc/LaTeXConfig.lyx,
|
||||
lyxrc.defaults, packages.lst and textclass.lst
|
||||
|
||||
should all be removed.
|
||||
|
||||
Creating the LyX icons
|
||||
======================
|
||||
|
||||
All icons are to be found in sub-directory icons/.
|
||||
|
||||
The LyX icons, lyx_32x32.ico and lyx_doc_32x32.ico, are based on .svg
|
||||
files written and realease into the public domain by Andy Fitzsimon:
|
||||
|
||||
http://openclipart.org/clipart/computer/icons/etiquette-theme/aps/LyX.svg
|
||||
http://openclipart.org/clipart/computer/icons/etiquette-theme/mimetype.svg
|
||||
|
||||
lyx.svg is Andy's original.
|
||||
lyx_doc.svg is a merger of LyX.svg with mimetype.svg
|
||||
|
||||
Working on a linux box, I used sodipodi (http://www.sodipodi.com/) to
|
||||
create the .svg file and to export these vector graphics images to
|
||||
32x32 pixel bitmaps (.png format). Thereafter I used gimp
|
||||
(http://www.gimp.org/) to generate reduced color depth versions (16,
|
||||
256 colors).
|
||||
|
||||
Finally, on a WindowsXP machine, I used IconXP
|
||||
(http://www.aha-soft.com/iconxp/) to build the .ico files from these
|
||||
.png files at differing resolutions.
|
||||
|
||||
Adding the LyX icons to lyx.exe
|
||||
===============================
|
||||
|
||||
********************************************************************
|
||||
NOTE: Run 'strip' on lyx.exe before adding any images to it. 'strip'
|
||||
will not work after images have been added.
|
||||
|
||||
$ strip lyx.exe
|
||||
j:\mingw\bin\strip.exe: lyx.exe: File in wrong format
|
||||
********************************************************************
|
||||
|
||||
Windows executables can store various "resources", including images. I
|
||||
used ResourceHacker (http://rpi.net.au/~ajohnson/resourcehacker) to
|
||||
add the LyX icons to the .exe file.
|
||||
|
||||
Fire up ResHacker.exe and load lyx.exe
|
||||
File>Open... lyx.exe
|
||||
|
||||
Action>Add a new Resource...
|
||||
Open file with resource ... lyx_32x32.ico
|
||||
Resource Type will be set to "ICONGROUP"
|
||||
Set Resource Name to "1". (No inverted commas.)
|
||||
Add Resource
|
||||
|
||||
The icon will be shown in the main Resource Hacker window under
|
||||
Icon Group>1>0 and as Icon>5[0-3].
|
||||
|
||||
Repeat for lyx_doc_32x32.ico, setting the Resource Name to "2".
|
||||
|
||||
Save the modified lyx.exe. Resource Hacker will copy the original to
|
||||
lyx_original.exe. Remove it.
|
||||
|
||||
Building the LyX installer
|
||||
==========================
|
||||
|
||||
At this point my build/installprefix tree now contains everything that is
|
||||
to be released as a LyX/Win package. All that remains to do is to
|
||||
generate a Windows installer for it. I've written a script for NSIS
|
||||
(http://nsis.sourceforge.net/) to compile into an installer.
|
||||
|
||||
You'll need to compile and install lyx_path_prefix.dll. From the
|
||||
comments in lyx_path_prefix.C:
|
||||
|
||||
/* Compile the code with
|
||||
*
|
||||
* g++ -I/c/Program\ Files/NSIS/Contrib -Wall -shared \
|
||||
* lyx_path_prefix.c -o lyx_path_prefix.dll
|
||||
*
|
||||
* Move resulting .dll to /c/Program\ Files/NSIS/Plugins
|
||||
*/
|
||||
|
||||
Thereafter, you'll be able to build the installer itself:
|
||||
|
||||
$ <PATH to>/makensis lyx_installer.nsi
|
||||
|
||||
creating lyx_setup_136.exe ready to ship.
|
||||
|
||||
END README
|
38
development/Win32/packaging/bakoma/Licence.txt
Normal file
38
development/Win32/packaging/bakoma/Licence.txt
Normal file
@ -0,0 +1,38 @@
|
||||
BaKoMa Fonts Licence
|
||||
--------------------
|
||||
|
||||
This licence covers two font packs (known as BaKoMa Fonts Colelction,
|
||||
which is available at `CTAN:fonts/cm/ps-type1/bakoma/'):
|
||||
|
||||
1) BaKoMa-CM (1.1/12-Nov-94)
|
||||
Computer Modern Fonts in PostScript Type 1 and TrueType font formats.
|
||||
|
||||
2) BaKoMa-AMS (1.2/19-Jan-95)
|
||||
AMS TeX fonts in PostScript Type 1 and TrueType font formats.
|
||||
|
||||
Copyright (C) 1994, 1995, Basil K. Malyshev. All Rights Reserved.
|
||||
|
||||
Permission to copy and distribute these fonts for any purpose is
|
||||
hereby granted without fee, provided that the above copyright notice,
|
||||
author statement and this permission notice appear in all copies of
|
||||
these fonts and related documentation.
|
||||
|
||||
Permission to modify and distribute modified fonts for any purpose is
|
||||
hereby granted without fee, provided that the copyright notice,
|
||||
author statement, this permission notice and location of original
|
||||
fonts (http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma)
|
||||
appear in all copies of modified fonts and related documentation.
|
||||
|
||||
Permission to use these fonts (embedding into PostScript, PDF, SVG
|
||||
and printing by using any software) is hereby granted without fee.
|
||||
It is not required to provide any notices about using these fonts.
|
||||
|
||||
Basil K. Malyshev
|
||||
INSTITUTE FOR HIGH ENERGY PHYSICS
|
||||
IHEP, OMVT
|
||||
Moscow Region
|
||||
142281 PROTVINO
|
||||
RUSSIA
|
||||
|
||||
E-Mail: bakoma@mail.ru
|
||||
or malyshev@mail.ihep.ru
|
56
development/Win32/packaging/bakoma/Readme.txt
Normal file
56
development/Win32/packaging/bakoma/Readme.txt
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
|
||||
|
||||
|
||||
BaKoMa Fonts for LyX-Win
|
||||
|
||||
==============================
|
||||
|
||||
|
||||
ANY DISTRIBUTION OF ONE OF THESE FONTS MUST INCLUDE THE LICENCE FILE
|
||||
THAT IS PART OF THIS PACKAGE
|
||||
|
||||
The fonts included in this package are intended for Windows ports
|
||||
of Lyx, see http://www.lyx.org/download. The fonts are replacements
|
||||
that solve some display problems of math symbols.
|
||||
|
||||
The fonts included in this package are taken from
|
||||
|
||||
http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ttf/
|
||||
|
||||
and have been modified for use with LyX.
|
||||
The most recent versions of the original fonts are available
|
||||
with the complete BaKoMa TeX distribution at
|
||||
|
||||
http://www.ctan.org/tex-archive/systems/win32/bakoma/
|
||||
|
||||
The author of these fonts, Basil K. Malyshev, has kindly
|
||||
granted permission to use and modify these fonts.
|
||||
|
||||
The changes made are simple remappings of glyphs. These mappings
|
||||
are:
|
||||
|
||||
cmsy10.ttf char 8728 mapped to char 183 (\leq)
|
||||
cmsy10.ttf char 196 mapped to char 127 (\spadesuit)
|
||||
msbm10.ttf char 8728 mapped to char 183 (\nleqq)
|
||||
msbm10.ttf char 196 mapped to char 127 (\backepsilon)
|
||||
cmmi10.ttf char 8728 mapped to char 183 (\kapp)
|
||||
msam10.ttf char 196 mapped to char 127 (\circleddash)
|
||||
msam10.ttf char 8728 mapped to char 183 (\uparrows)
|
||||
|
||||
|
||||
The mappings do not change any glyph but make the glyphs mentioned
|
||||
available under new codes, too. So the functionality of the fonts
|
||||
will not be affected in any other application.
|
||||
|
||||
|
||||
In addition to the BaKoMa fonts, this font bundle contains the wasy font
|
||||
'wasy10.ttf' from the latex-xft font bundle:
|
||||
http://packages.qa.debian.org/l/latex-xft-fonts.html.
|
||||
The latex-xft bundle is published under the GPL.
|
||||
|
||||
|
||||
Ekkehart Schlicht
|
||||
schlicht@lmu.de
|
||||
June 20, 2005.
|
||||
|
BIN
development/Win32/packaging/bakoma/cmex10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/cmex10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/cmmi10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/cmmi10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/cmr10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/cmr10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/cmsy10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/cmsy10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/eufm10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/eufm10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/msam10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/msam10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/msbm10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/msbm10.ttf
Normal file
Binary file not shown.
BIN
development/Win32/packaging/bakoma/wasy10.ttf
Normal file
BIN
development/Win32/packaging/bakoma/wasy10.ttf
Normal file
Binary file not shown.
@ -1,55 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
grab_sources() {
|
||||
|
||||
wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.4.tar.gz
|
||||
|
||||
}
|
||||
|
||||
unpack() {
|
||||
|
||||
gunzip aspell-0.60.4.tar.gz
|
||||
tar xvf aspell-0.60.4.tar
|
||||
|
||||
}
|
||||
|
||||
build_it() {
|
||||
(
|
||||
cd aspell-0.60.4
|
||||
|
||||
# Add a missing #include.
|
||||
grep '^# include "asc_ctype\.hpp"' common/file_util.cpp >/dev/null || {
|
||||
sed '/^#ifdef WIN32 *$/,/^# *include <io\.h> *$/{
|
||||
/<io\.h>/i\
|
||||
# include "asc_ctype.hpp"
|
||||
}' common/file_util.cpp > tmp
|
||||
|
||||
cmp -s common/file_util.cpp tmp || {
|
||||
diff -u common/file_util.cpp tmp
|
||||
mv -i tmp common/file_util.cpp
|
||||
}
|
||||
rm -f tmp
|
||||
}
|
||||
|
||||
./configure \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
--prefix=c:/Aspell || {
|
||||
echo 'configure failed' >&2
|
||||
exit 1
|
||||
}
|
||||
make
|
||||
)
|
||||
}
|
||||
|
||||
install_it() {
|
||||
(
|
||||
cd aspell-0.60.4
|
||||
make install
|
||||
)
|
||||
}
|
||||
|
||||
build_it
|
||||
install_it
|
||||
|
||||
# The end
|
@ -1,109 +0,0 @@
|
||||
;Title AbiWord for Windows, NSIS v2 series installer script
|
||||
;FileDesc Utility functions to set and save/restore file extension to application associations
|
||||
|
||||
|
||||
!ifndef _ABI_UTIL_FILEASSOC_NSH_
|
||||
!define _ABI_UTIL_FILEASSOC_NSH_
|
||||
|
||||
|
||||
!ifdef HAVE_SYSTEM_PLUGIN
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; RefreshShellIcons based on
|
||||
;; http://nsis.sourceforge.net/archive/nsisweb.php?page=236&instances=0
|
||||
;; by jerome tremblay - april 2003
|
||||
|
||||
!define SHCNE_ASSOCCHANGED 0x08000000
|
||||
!define SHCNF_IDLIST 0
|
||||
|
||||
Function RefreshShellIcons
|
||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v \
|
||||
(${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
|
||||
FunctionEnd
|
||||
|
||||
!define RefreshShellIcons "call RefreshShellIcons"
|
||||
!else
|
||||
!define RefreshShellIcons
|
||||
!endif ; HAVE_SYSTEM_PLUGIN
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; parts from http://nsis.sourceforge.net/archive/viewpage.php?pageid=282 by Vytautas
|
||||
;; Will add the registry entries to associate the given file extension with the
|
||||
;; previously set (see CreateApplicationAssociation) appType. I.e. indicate to
|
||||
;; open documents with this extension using the application specified by appType
|
||||
;; registry entry. If the extension is currently associated with a different
|
||||
;; appType, it will store the current association in the "prior_appType" key.
|
||||
|
||||
!macro CreateFileAssociation extension appType contentType
|
||||
!define skipBackupLbl "skipBackup_${__LINE__}"
|
||||
push $0
|
||||
|
||||
; back up old value of extension (.ext) if it exists
|
||||
ReadRegStr $0 HKCR "${extension}" "" ; read current value
|
||||
StrCmp $0 "" "${skipBackupLbl}" ; nothing, then skip storing old value
|
||||
StrCmp $0 "${appType}" "${skipBackupLbl}" ; only store if old is different than current
|
||||
WriteRegStr HKCR "${extension}" "prior_value" "$0" ; actually store the old association
|
||||
|
||||
"${skipBackupLbl}:"
|
||||
; Write File Associations
|
||||
WriteRegStr HKCR "${extension}" "" "${appType}"
|
||||
WriteRegStr HKCR "${extension}" "Content Type" "${contentType}"
|
||||
; Force shell refresh (so icons updated as needed)
|
||||
${RefreshShellIcons}
|
||||
|
||||
pop $0
|
||||
!undef skipBackupLbl
|
||||
!macroend
|
||||
!define CreateFileAssociation "!insertmacro CreateFileAssociation"
|
||||
|
||||
|
||||
!macro CreateApplicationAssociation appType appName appDesc defIcon exeCmd
|
||||
WriteRegStr HKCR "${appType}" "" "${appDesc}"
|
||||
WriteRegStr HKCR "${appType}\shell" "" "open"
|
||||
WriteRegStr HKCR "${appType}\DefaultIcon" "" "${defIcon}"
|
||||
|
||||
; Basic command to open the file (pass filename as argv[1] to program executable)
|
||||
WriteRegStr HKCR "${appType}\shell\open\command" "" '"${exeCmd}" "%1"'
|
||||
|
||||
; To open file via DDE (OLE, ie via already active instance) instead of in a new process
|
||||
; Here for those who want to locally enable, not normally used as having each document
|
||||
; open in a new process while more resource intensive means a crash with one document
|
||||
; won't cause loss of work with other open documents.
|
||||
; WriteRegStr HKCR "${appType}\shell\open\command" "" "${exeCmd}"
|
||||
; WriteRegStr HKCR "${appType}\shell\open\ddeexec" "" '[Open("%1")]'
|
||||
; WriteRegStr HKCR "${appType}\shell\open\ddeexec\application" "" "${appName}"
|
||||
; WriteRegStr HKCR "${appType}\shell\open\ddeexec\topic" "" "System"
|
||||
|
||||
; If editing file is a different action than simply opening file
|
||||
; WriteRegStr HKCR "${appType}\shell\edit" "" "Edit Options File"
|
||||
; WriteRegStr HKCR "${appType}\shell\edit\command" "" '"${exeCmd}" "%1"'
|
||||
|
||||
!macroend
|
||||
!define CreateApplicationAssociation "!insertmacro CreateApplicationAssociation"
|
||||
|
||||
|
||||
; check if a file extension is associated with us and if so delete it
|
||||
!macro RemoveFileAssociation extension appType
|
||||
push $0
|
||||
push $1
|
||||
|
||||
ReadRegStr $0 HKCR "${extension}" ""
|
||||
StrCmp "$0" "${appType}" 0 Skip_Del_File_Assoc.${extension}
|
||||
ReadRegStr $0 HKCR "${extension}" "prior_value"
|
||||
StrCmp "$0" "" "DeleteFA.${extension}" 0 ; if "prior_value" is not empty
|
||||
ReadRegStr $1 HKCR "$0" "" ; restore previous association
|
||||
StrCmp "$1" "" DeleteFA.${extension} ; only if it is still valid (has something defined)
|
||||
WriteRegStr HKCR "${extension}" "" $0 ; actually restore prior association
|
||||
DeleteRegValue HKCR "${extension}" "prior_value" ; and remove stored value
|
||||
Goto Skip_Del_File_Assoc.${extension}
|
||||
DeleteFA.${extension}: ; else delete file association key
|
||||
DeleteRegKey HKCR "${extension}" ; actually remove file assoications
|
||||
|
||||
Skip_Del_File_Assoc.${extension}:
|
||||
pop $1
|
||||
pop $0
|
||||
!macroend
|
||||
!define RemoveFileAssociation "!insertmacro RemoveFileAssociation"
|
||||
|
||||
|
||||
!endif ; _ABI_UTIL_FILEASSOC_NSH_
|
109
development/Win32/packaging/installer/components/configure.nsh
Normal file
109
development/Win32/packaging/installer/components/configure.nsh
Normal file
@ -0,0 +1,109 @@
|
||||
/*
|
||||
|
||||
Create uninstaller, file associations and configure LyX
|
||||
|
||||
*/
|
||||
|
||||
!define SHORTCUT '\${APP_NAME} ${APP_SERIES_NAME}.lnk" "$INSTDIR\${APP_RUN}" "" "$INSTDIR\bin\lyx_32x32.ico" "" "" "" "${APP_INFO}"'
|
||||
|
||||
;--------------------------------
|
||||
;Sections
|
||||
|
||||
Section -FileAssociations
|
||||
|
||||
;Associate .lyx files with LyX for current user of all users
|
||||
|
||||
;Write information about file type
|
||||
!define REG_FILETYPE 'WriteRegStr SHELL_CONTEXT "Software\Classes\${APP_REGNAME_DOC}'
|
||||
|
||||
${REG_FILETYPE}" "" "${APP_NAME} Document"
|
||||
${REG_FILETYPE}\DefaultIcon" "" "$INSTDIR\bin\lyx_doc_32x32.ico"
|
||||
${REG_FILETYPE}\Shell\open\command" "" '"$INSTDIR\${APP_RUN}" "%1"'
|
||||
|
||||
!define REG_FILEEXT 'WriteRegStr SHELL_CONTEXT "Software\Classes\${APP_EXT}"'
|
||||
|
||||
${REG_FILEEXT} "" "${APP_REGNAME_DOC}"
|
||||
${REG_FILEEXT} "Content Type" "${APP_MIME_TYPE}"
|
||||
|
||||
;Refresh shell
|
||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section -InstallData
|
||||
|
||||
;Registry information
|
||||
WriteRegStr SHELL_CONTEXT ${APP_REGKEY} "" $INSTDIR
|
||||
WriteRegStr SHELL_CONTEXT ${APP_REGKEY} "Version" "${APP_VERSION}"
|
||||
|
||||
WriteRegStr SHELL_CONTEXT ${APP_REGKEY_SETUP} "LaTeX Path" $PathLaTeX
|
||||
WriteRegStr SHELL_CONTEXT ${APP_REGKEY_SETUP} "ImageMagick Path" $PathImageMagick
|
||||
WriteRegStr SHELL_CONTEXT ${APP_REGKEY_SETUP} "Ghostscript Path" $PathGhostscript
|
||||
WriteRegStr SHELL_CONTEXT ${APP_REGKEY_SETUP} "LyX Language" $LangName
|
||||
|
||||
;Start Menu shortcut
|
||||
;There is only one shortcut to the application, so it should be in the main group
|
||||
CreateShortCut "$SMPROGRAMS\${SHORTCUT}
|
||||
|
||||
;Uninstaller information
|
||||
!define REG_UNINSTALL 'WriteRegStr SHELL_CONTEXT "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"'
|
||||
|
||||
${REG_UNINSTALL} "UninstallString" "$\"$INSTDIR\${SETUP_UNINSTALLER}$\""
|
||||
${REG_UNINSTALL} "DisplayName" "${APP_NAME} ${APP_VERSION}"
|
||||
${REG_UNINSTALL} "DisplayVersion" "${APP_VERSION}"
|
||||
${REG_UNINSTALL} "DisplayIcon" "$INSTDIR\bin\lyx_32x32.ico"
|
||||
${REG_UNINSTALL} "URLUpdateInfo" "http://www.lyx.org/"
|
||||
${REG_UNINSTALL} "URLInfoAbout" "http://www.lyx.org/about/"
|
||||
${REG_UNINSTALL} "Publisher" "LyX Team"
|
||||
${REG_UNINSTALL} "HelpLink" "http://www.lyx.org/internet/mailing.php"
|
||||
|
||||
;Create uninstaller
|
||||
WriteUninstaller "$INSTDIR\${SETUP_UNINSTALLER}"
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section -Configure
|
||||
|
||||
;Remove old configuration files
|
||||
|
||||
Delete "$INSTDIR\Resources\lyxrc.defaults"
|
||||
Delete "$INSTDIR\Resources\textclass.lst"
|
||||
Delete "$INSTDIR\Resources\packages.lst"
|
||||
|
||||
;Set a path prefix in lyxrc.dist
|
||||
|
||||
Call GetPathPrefix
|
||||
Pop $R0
|
||||
|
||||
Delete "$INSTDIR\Resources\lyxrc.dist"
|
||||
FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" w
|
||||
|
||||
FileWrite $R1 '\path_prefix "$R0"$\r$\n'
|
||||
|
||||
FileClose $R1
|
||||
|
||||
;Create a batch file to start LyX with the environment variables set
|
||||
|
||||
Delete "$INSTDIR\${APP_RUN}"
|
||||
FileOpen $R1 "$INSTDIR\${APP_RUN}" w
|
||||
|
||||
FileWrite $R1 '@echo off$\r$\n'
|
||||
FileWrite $R1 'SET LC_ALL=$LangCode$\r$\n'
|
||||
FileWrite $R1 'SET AIK_DATA_DIR=$INSTDIR\aiksaurus$\r$\n'
|
||||
FileWrite $R1 'start "${APP_NAME}" "$INSTDIR\bin\lyx.exe" %*$\r$\n'
|
||||
|
||||
FileClose $R1
|
||||
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function CreateDesktopShortcut
|
||||
|
||||
;Creating a desktop shortcut is an option on the finish page
|
||||
|
||||
CreateShortCut "$DESKTOP\${SHORTCUT}
|
||||
|
||||
FunctionEnd
|
||||
|
86
development/Win32/packaging/installer/components/core.nsh
Normal file
86
development/Win32/packaging/installer/components/core.nsh
Normal file
@ -0,0 +1,86 @@
|
||||
/*
|
||||
|
||||
LyX Core
|
||||
Binaries, resources, MSYS/Python, Aspell
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Sections
|
||||
|
||||
Section -Core SecCore
|
||||
|
||||
;Install and register the core LyX files
|
||||
|
||||
InitPluginsDir
|
||||
|
||||
;Binaries
|
||||
SetOutPath "$INSTDIR\bin"
|
||||
!insertmacro FileListLyXBin File "${FILES_LYX}\bin\"
|
||||
!insertmacro FileListQtBin File "${FILES_QT}\bin\"
|
||||
!insertmacro FileListMinGWBin File "${FILES_MINGW}\bin\"
|
||||
!insertmacro FileListDllBin File "${FILES_DEPS}\bin\"
|
||||
|
||||
;LaTeX Tools
|
||||
SetOutPath "$INSTDIR\latextools"
|
||||
!insertmacro FileListNetpbmBin File "${FILES_DEPS}\bin\"
|
||||
!insertmacro FileListDvipostBin File "${FILES_DEPS}\bin\"
|
||||
!insertmacro FileListDTLBin File "${FILES_DEPS}\bin\"
|
||||
|
||||
;Icons
|
||||
SetOutPath "$INSTDIR\bin"
|
||||
!insertmacro FileListLyXIcons File "${FILES_ICONS}\"
|
||||
|
||||
;Resources
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r "${FILES_LYX}\Resources"
|
||||
SetOutPath "$INSTDIR\Resources\fonts"
|
||||
!insertmacro FileListFonts File "${FILES_FONTS}\"
|
||||
|
||||
;Components of Python
|
||||
SetOutPath "$INSTDIR\python"
|
||||
!insertmacro FileListPythonBin File "${FILES_PYTHON}\"
|
||||
SetOutPath "$INSTDIR\python"
|
||||
!insertmacro FileListPythonDll File "${FILES_WINDOWS}\"
|
||||
SetOutPath "$INSTDIR\python\DLLs"
|
||||
!insertmacro FileListPythonDLLs File "${FILES_PYTHON}\DLLs\"
|
||||
SetOutPath "$INSTDIR\python\Lib"
|
||||
!insertmacro FileListPythonLib File "${FILES_PYTHON}\Lib\"
|
||||
SetOutPath "$INSTDIR\python\Lib\encodings"
|
||||
!insertmacro FileListPythonLibEncodings File "${FILES_PYTHON}\Lib\encodings\"
|
||||
SetOutPath "$INSTDIR\python\libs"
|
||||
!insertmacro FileListPythonLibs File "${FILES_PYTHON}\libs\"
|
||||
|
||||
;Components of MSYS
|
||||
SetOutPath "$INSTDIR\shell\bin"
|
||||
!insertmacro FileListMSYSBin File "${FILES_MSYS}\bin\"
|
||||
SetOutPath "$INSTDIR\shell\etc"
|
||||
!insertmacro FileListMSYSEtc File "${FILES_MSYS}\etc\"
|
||||
|
||||
;Aspell
|
||||
|
||||
File /oname=$PLUGINSDIR\AspellData-0.60.4.exe "${FILES_ASPELLDATA}\AspellData-0.60.4.exe"
|
||||
|
||||
${if} $AllUsersInstall == ${TRUE}
|
||||
ExecWait '"$PLUGINSDIR\aspelldata-0.60.4.exe" /S /AllUsers'
|
||||
${else}
|
||||
ExecWait '"$PLUGINSDIR\aspelldata-0.60.4.exe" /S'
|
||||
${endif}
|
||||
|
||||
Delete "$PLUGINSDIR\aspelldata-0.60.4.exe"
|
||||
|
||||
;Aiksarus Data
|
||||
SetOutPath "$INSTDIR\aiksaurus"
|
||||
!insertmacro FileListAiksaurusData File "${FILES_DEPS}\share\Aiksaurus\"
|
||||
|
||||
;dvipost package if MiKTeX is installed
|
||||
|
||||
Call SearchLaTeXLocalRoot
|
||||
Pop $R0
|
||||
|
||||
${if} $R0 != ""
|
||||
SetOutPath "$R0\tex\latex\dvipost"
|
||||
File "${FILES_DVIPOST}\dvipost.sty"
|
||||
${endif}
|
||||
|
||||
SectionEnd
|
139
development/Win32/packaging/installer/components/dicts.nsh
Normal file
139
development/Win32/packaging/installer/components/dicts.nsh
Normal file
@ -0,0 +1,139 @@
|
||||
/*
|
||||
|
||||
Aspell dictionaries
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro Dictionary file lang_name lang_code size
|
||||
|
||||
Section /o "${lang_name}"
|
||||
|
||||
AddSize ${size}
|
||||
|
||||
Push ${lang_code}
|
||||
Push "${lang_name}"
|
||||
Push ${file}
|
||||
|
||||
Call DownloadDictionary
|
||||
|
||||
SectionEnd
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;Sections
|
||||
|
||||
Section -AspellDicts
|
||||
|
||||
Call GetAspellHive
|
||||
Pop $AspellHive
|
||||
|
||||
SectionEnd
|
||||
|
||||
!define DICT '!insertmacro Dictionary'
|
||||
|
||||
${DICT} af-0.50-0 "Afrikaans" af 924
|
||||
${DICT} bg-0.50-0 "Bulgarian" bg 9059
|
||||
${DICT} ca-20040130-1 "Catalan" ca 1107
|
||||
${DICT} hr-0.51-0 "Croatian" hr 2006
|
||||
${DICT} cs-20040614-1 "Czech" cs 2096
|
||||
${DICT} da-1.4.42-1 "Danish" da 3094
|
||||
${DICT} nl-0.50-2 "Dutch" nl 1546
|
||||
${DICT} en-6.0-0 "English" en 1144
|
||||
${DICT} eo-0.50-2 "Esperanto" eo 3863
|
||||
${DICT} et-0.1.21-1 "Estonian" et 931
|
||||
${DICT} fi-0.7-0 "Finnish" fi 663
|
||||
${DICT} fr-0.50-3 "French" fr 4428
|
||||
${DICT} gl-0.50-0 "Galician" gl 3041
|
||||
${DICT} de-20030222-1 "German" de 2929
|
||||
${DICT} el-0.50-3 "Greek" el 3269
|
||||
${DICT} he-0.9-0 "Hebrew" he 1485
|
||||
${DICT} hu-0.99.4.2-0 "Hungarian" hu 1636
|
||||
${DICT} is-0.51.1-0 "Icelandic" is 1556
|
||||
;${DICT} ia-0.50-1 "Interlingua" ia 605
|
||||
${DICT} it-2.2_20050523-0 "Italian" it 699
|
||||
;${DICT} la-20020503-0 "Latin" la 179
|
||||
${DICT} no-0.50-2 "Norwegian" no 1300
|
||||
${DICT} nn-0.50.1-1 "Norwegian Nynorsk" nn 1962
|
||||
${DICT} pl-0.51-0 "Polish" pl 14018
|
||||
${DICT} pt-0.50-2 "Portuguese" pt 2326
|
||||
${DICT} ro-0.50-2 "Romanian" ro 338
|
||||
${DICT} ru-0.99f7-1 "Russian" ru 1477
|
||||
${DICT} gd-0.1.1-1 "Scottish" gd 187
|
||||
${DICT} sk-0.52-0 "Slovak" sk 4709
|
||||
${DICT} sl-0.50-0 "Slovenian" sl 5252
|
||||
${DICT} sr-0.02 "Serbian" sr 3755
|
||||
${DICT} es-0.50-2 "Spanish" es 3018
|
||||
${DICT} sv-0.51-0 "Swedish" sv 1040
|
||||
${DICT} tr-0.50-0 "Turkish" tr 548
|
||||
;${DICT} hsb-0.01-1 "Upper Sorbian" hsb 374
|
||||
${DICT} uk-1.1-0 "Ukrainian" uk 583
|
||||
${DICT} cy-0.50-3 "Welsh" cy 1801
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function GetAspellHive
|
||||
|
||||
Push $R0
|
||||
|
||||
ReadRegStr $R0 HKLM "Software\Aspell" "Base Path"
|
||||
|
||||
${if} $R0 != ""
|
||||
StrCpy $R0 "machine"
|
||||
${else}
|
||||
StrCpy $R0 "user"
|
||||
${endif}
|
||||
|
||||
Exch $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function DownloadDictionary
|
||||
|
||||
Exch $R0
|
||||
Exch 1
|
||||
Exch $R1
|
||||
Exch 2
|
||||
Exch $R2
|
||||
Push $R3
|
||||
|
||||
dict_download:
|
||||
|
||||
;Download using HTTP
|
||||
NSISdl::download "http://wiki.lyx.org/uploads/Windows/Aspell6/aspell6-$R0.exe" "$PLUGINSDIR\aspell6-$R0.exe" /END
|
||||
Pop $R3
|
||||
|
||||
${if} $R3 != "success"
|
||||
;Download failed
|
||||
MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED_DICT) ($R3)" IDYES dict_download
|
||||
Goto dict_noinstall
|
||||
${endif}
|
||||
|
||||
install_dict:
|
||||
|
||||
ExecWait '"$PLUGINSDIR\aspell6-$R0.exe" /NoDirChange /AutoClose'
|
||||
|
||||
${if} $AspellHive == "machine"
|
||||
ReadRegStr $R3 HKLM "Software\Aspell\Dictionaries" $R2
|
||||
${else}
|
||||
ReadRegStr $R3 HKCU "Software\Aspell\Dictionaries" $R2
|
||||
${endif}
|
||||
|
||||
${if} $R3 == ""
|
||||
MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(TEXT_NOTINSTALLED_DICT)" IDYES install_dict
|
||||
${endif}
|
||||
|
||||
Delete "$PLUGINSDIR\aspell6-$R0.exe"
|
||||
|
||||
dict_noinstall:
|
||||
|
||||
Pop $R3
|
||||
Pop $R2
|
||||
Pop $R1
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
217
development/Win32/packaging/installer/components/external.nsh
Normal file
217
development/Win32/packaging/installer/components/external.nsh
Normal file
@ -0,0 +1,217 @@
|
||||
/*
|
||||
|
||||
External Components: MiKTeX, ImageMagick, Ghostscript
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro SetComponentState var component
|
||||
|
||||
${if} ${var} == "1"
|
||||
|
||||
StrCpy $Setup${component} ${TRUE}
|
||||
|
||||
StrCpy $R1 $Size${component}
|
||||
|
||||
${if} $Path${component} == ""
|
||||
;Add size of component itself
|
||||
IntOp $R1 $R1 + ${SIZE_${component}}
|
||||
${endif}
|
||||
|
||||
SectionSetSize ${External${component}} $R1
|
||||
|
||||
${else}
|
||||
|
||||
StrCpy $Setup${component} ${FALSE}
|
||||
SectionSetSize ${External${component}} 0
|
||||
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
!macro ExternalComponent component
|
||||
|
||||
;Action depending on type of installer
|
||||
|
||||
${if} $Setup${component} == ${TRUE}
|
||||
|
||||
StrCpy $Path${component} "" ;A new one will be installed
|
||||
|
||||
!ifndef SETUPTYPE_BUNDLE
|
||||
!insertmacro DownloadComponent ${component}
|
||||
!else
|
||||
!insertmacro InstallComponent ${component}
|
||||
!endif
|
||||
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
!macro SetupComponent component
|
||||
|
||||
;Run the setup application for a component
|
||||
|
||||
install_${component}:
|
||||
|
||||
ExecWait '"$PLUGINSDIR\${component}Setup.exe"'
|
||||
Call Search${component}
|
||||
|
||||
${if} $Path${component} == ""
|
||||
MessageBox MB_YESNO|MB_ICONEXCLAMATION $(TEXT_NOTINSTALLED_${component}) IDYES install_${component}
|
||||
${endif}
|
||||
|
||||
Delete "$PLUGINSDIR\${component}Setup.exe"
|
||||
|
||||
!macroend
|
||||
|
||||
!ifndef SETUPTYPE_BUNDLE
|
||||
|
||||
!macro DownloadComponent component
|
||||
|
||||
download_${component}:
|
||||
|
||||
;Download using HTTP
|
||||
NSISdl::download "${DOWNLOAD_${component}}" "$PLUGINSDIR\${component}Setup.exe"
|
||||
Pop $R0
|
||||
|
||||
${if} $R0 != "success"
|
||||
;Download failed
|
||||
MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED_${component}) ($R0)" IDYES download_${component}
|
||||
Goto noinstall_${component}
|
||||
${endif}
|
||||
|
||||
!insertmacro SetupComponent ${component}
|
||||
|
||||
noinstall_${component}:
|
||||
|
||||
!macroend
|
||||
|
||||
!else
|
||||
|
||||
!macro InstallComponent component
|
||||
|
||||
;Extract
|
||||
File /oname=$PLUGINSDIR\${component}Setup.exe ${INSTALL_${component}}
|
||||
|
||||
!insertmacro SetupComponent ${component}
|
||||
|
||||
!macroend
|
||||
|
||||
!endif
|
||||
|
||||
!macro DialogExternalControl component
|
||||
|
||||
;Enable/disable the DirRequest control
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "external_${component}.ini" "Field 3" "State"
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R1 "external_${component}.ini" "Field 4" "HWND"
|
||||
EnableWindow $R1 $R0
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R1 "external_${component}.ini" "Field 4" "HWND2"
|
||||
EnableWindow $R1 $R0
|
||||
|
||||
!macroend
|
||||
|
||||
!macro DialogExternalShow component
|
||||
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_EXTERNAL_${component}_TITLE) $(TEXT_EXTERNAL_${component}_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "external_${component}.ini"
|
||||
!insertmacro DialogExternalControl ${component}
|
||||
!insertmacro MUI_INSTALLOPTIONS_SHOW
|
||||
|
||||
!macroend
|
||||
|
||||
!macro DialogExternalValidate component
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
|
||||
;Next button pressed?
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "external_${component}.ini" "Settings" "State"
|
||||
${if} $R0 != "0"
|
||||
!insertmacro DialogExternalControl ${component}
|
||||
Abort
|
||||
${endif}
|
||||
|
||||
;Download?
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "external_${component}.ini" "Field 2" "State"
|
||||
!insertmacro SetComponentState $R0 ${component}
|
||||
|
||||
;Folder?
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "external_${component}.ini" "Field 3" "State"
|
||||
|
||||
${if} $R0 == "1"
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "external_${component}.ini" "Field 4" "State"
|
||||
${unless} ${FileExists} "$R0\${BIN_${component}}"
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION $(TEXT_EXTERNAL_${component}_NOTFOUND)
|
||||
Abort
|
||||
${endif}
|
||||
StrCpy $Path${component} $R0
|
||||
${endif}
|
||||
|
||||
Pop $R1
|
||||
Pop $R0
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;Sections
|
||||
|
||||
Section -LaTeX ExternalLaTeX
|
||||
!insertmacro ExternalComponent LaTeX
|
||||
SectionEnd
|
||||
|
||||
Section -ImageMagick ExternalImageMagick
|
||||
!insertmacro ExternalComponent ImageMagick
|
||||
SectionEnd
|
||||
|
||||
Section -Ghostscript ExternalGhostscript
|
||||
!insertmacro ExternalComponent Ghostscript
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function InitSizeExternal
|
||||
|
||||
;Get sizes of external component installers
|
||||
|
||||
SectionGetSize ${ExternalLaTeX} $SizeLaTeX
|
||||
SectionGetSize ${ExternalImageMagick} $SizeImageMagick
|
||||
SectionGetSize ${ExternalGhostscript} $SizeGhostscript
|
||||
|
||||
!ifndef SETUPTYPE_BUNDLE
|
||||
;Add download size
|
||||
IntOp $SizeLaTeX $SizeLaTeX + ${SIZE_DOWNLOAD_LATEX}
|
||||
IntOp $SizeImagemagick $SizeImagemagick + ${SIZE_DOWNLOAD_IMAGEMAGICK}
|
||||
IntOp $SizeGhostscript $SizeGhostscript + ${SIZE_DOWNLOAD_GHOSTSCRIPT}
|
||||
!endif
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Page functions
|
||||
|
||||
Function PageExternalLaTeX
|
||||
!insertmacro DialogExternalShow LaTeX
|
||||
FunctionEnd
|
||||
|
||||
Function PageExternalLaTeXValidate
|
||||
!insertmacro DialogExternalValidate LaTeX
|
||||
FunctionEnd
|
||||
|
||||
Function PageExternalImageMagick
|
||||
!insertmacro DialogExternalShow ImageMagick
|
||||
FunctionEnd
|
||||
|
||||
Function PageExternalImageMagickValidate
|
||||
!insertmacro DialogExternalValidate ImageMagick
|
||||
FunctionEnd
|
||||
|
||||
Function PageExternalGhostscript
|
||||
!insertmacro DialogExternalShow Ghostscript
|
||||
FunctionEnd
|
||||
|
||||
Function PageExternalGhostscriptValidate
|
||||
!insertmacro DialogExternalValidate Ghostscript
|
||||
FunctionEnd
|
@ -0,0 +1,98 @@
|
||||
/*
|
||||
|
||||
Selection of language for LyX interface
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro SystemLanguage lang_name lang_code
|
||||
|
||||
${if} $R0 == ${lang_code}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "langselect.ini" "Field 2" "State" "${lang_name}"
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
!macro GetLyXLangCodeItem var_name var_langcode name langcode
|
||||
|
||||
${if} ${var_name} == "${name}"
|
||||
StrCpy ${var_langcode} "${langcode}"
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
!macro GetLyXLangCode var_name var_langcode
|
||||
|
||||
!define LANGCODE '!insertmacro GetLyXLangCodeItem ${var_name} ${var_langcode}'
|
||||
|
||||
${LANGCODE} "Basque" "eu_EU"
|
||||
${LANGCODE} "Dansk" "da_DK"
|
||||
${LANGCODE} "Dutch" "nl_NL"
|
||||
${LANGCODE} "English" "en_EN"
|
||||
${LANGCODE} "Finnish" "fi_FI"
|
||||
${LANGCODE} "French" "fr_FR"
|
||||
${LANGCODE} "German" "de_DE"
|
||||
${LANGCODE} "Hungarian" "hu_HU"
|
||||
${LANGCODE} "Italian" "it_IT"
|
||||
${LANGCODE} "Norwegian" "no_NO"
|
||||
${LANGCODE} "Norwegian (Nynorsk)" "no_NY"
|
||||
${LANGCODE} "Polish" "pl_PL"
|
||||
${LANGCODE} "Romanish" "ro_RO"
|
||||
${LANGCODE} "Russian" "ru_RU"
|
||||
${LANGCODE} "Slovak" "sk_SK"
|
||||
${LANGCODE} "Slovian" "sl_SI"
|
||||
${LANGCODE} "Spanish" "es_ES"
|
||||
${LANGCODE} "Turkish" "tr_TR"
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function InitLanguage
|
||||
|
||||
;Set the default for the LyX language selection dialog
|
||||
|
||||
System::Call "kernel32::GetUserDefaultUILanguage()i.R0"
|
||||
|
||||
!define SYSTEM_LANG '!insertmacro SystemLanguage'
|
||||
|
||||
${SYSTEM_LANG} "Basque" 1069
|
||||
${SYSTEM_LANG} "Danish" 1030
|
||||
${SYSTEM_LANG} "Dutch" 1043
|
||||
${SYSTEM_LANG} "English" 1033
|
||||
${SYSTEM_LANG} "Finnish" 1035
|
||||
${SYSTEM_LANG} "French" 1036
|
||||
${SYSTEM_LANG} "German" 1031
|
||||
${SYSTEM_LANG} "Hungarian" 1038
|
||||
${SYSTEM_LANG} "Italian" 1057
|
||||
${SYSTEM_LANG} "Norwegian" 1044
|
||||
${SYSTEM_LANG} "Norwegian (Nynorsk)" 2068
|
||||
${SYSTEM_LANG} "Polish" 1045
|
||||
${SYSTEM_LANG} "Romanian" 1048
|
||||
${SYSTEM_LANG} "Russian" 1049
|
||||
${SYSTEM_LANG} "Slovak" 1051
|
||||
${SYSTEM_LANG} "Slovenian" 1060
|
||||
${SYSTEM_LANG} "Spanish" 1034
|
||||
${SYSTEM_LANG} "Turkish" 1055
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Page functions
|
||||
|
||||
Function PageLanguage
|
||||
|
||||
!insertmacro MUI_HEADER_TEXT "$(TEXT_LANGUAGE_TITLE)" "$(TEXT_LANGUAGE_SUBTITLE)"
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "langselect.ini"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function PageLanguageValidate
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "langselect.ini" "Field 2" "State"
|
||||
!insertmacro GetLyXLangCode $LangName $LangCode
|
||||
|
||||
FunctionEnd
|
@ -0,0 +1,37 @@
|
||||
/*
|
||||
|
||||
Reinstall options
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Page functions
|
||||
|
||||
Function PageReinstall
|
||||
|
||||
;Check whether this version is already installed
|
||||
|
||||
ReadRegStr $R0 SHELL_CONTEXT ${APP_REGKEY} "Version"
|
||||
|
||||
${if} $R0 != "${APP_VERSION}"
|
||||
Abort
|
||||
${endif}
|
||||
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_REINSTALL_TITLE) $(TEXT_REINSTALL_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "reinstall.ini"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function PageReinstallValidate
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "reinstall.ini" "Field 2" "State"
|
||||
|
||||
${if} $R0 == "1"
|
||||
!insertmacro SelectSection ${SecCore}
|
||||
${else}
|
||||
!insertmacro UnselectSection ${SecCore}
|
||||
${endif}
|
||||
|
||||
Call InitUser
|
||||
|
||||
FunctionEnd
|
@ -0,0 +1,88 @@
|
||||
/*
|
||||
|
||||
Uninstaller
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Sections
|
||||
|
||||
Section "un.Program Files" un.SecProgramFiles
|
||||
|
||||
;Binaries
|
||||
!insertmacro FileListLyXBin Delete "$INSTDIR\bin\"
|
||||
!insertmacro FileListQtBin Delete "$INSTDIR\bin\"
|
||||
!insertmacro FileListMinGWBin Delete "$INSTDIR\bin\"
|
||||
!insertmacro FileListDllBin Delete "$INSTDIR\bin\"
|
||||
|
||||
;LaTeX Tools
|
||||
!insertmacro FileListNetpbmBin Delete "$INSTDIR\latextools\"
|
||||
!insertmacro FileListDvipostBin Delete "$INSTDIR\latextools\"
|
||||
!insertmacro FileListDTLBin Delete "$INSTDIR\latextools\"
|
||||
RMDir "$INSTDIR\latextools"
|
||||
|
||||
;Icons
|
||||
!insertmacro FileListLyXIcons Delete "$INSTDIR\bin\"
|
||||
|
||||
;Resources
|
||||
RMDir /r "$INSTDIR\Resources"
|
||||
|
||||
;Components of Python
|
||||
!insertmacro FileListPythonBin Delete "$INSTDIR\python\"
|
||||
!insertmacro FileListPythonDll Delete "$INSTDIR\python\"
|
||||
!insertmacro FileListPythonDLLs Delete "$INSTDIR\python\DLLs\"
|
||||
RMDir "$INSTDIR\python\DLLs"
|
||||
!insertmacro FileListPythonLib Delete "$INSTDIR\python\Lib\"
|
||||
Delete "$INSTDIR\python\Lib\*.pyc"
|
||||
!insertmacro FileListPythonLibEncodings Delete "$INSTDIR\python\Lib\encodings\"
|
||||
Delete "$INSTDIR\python\Lib\encodings\*.pyc"
|
||||
RMDir "$INSTDIR\python\Lib\encodings"
|
||||
RMDir "$INSTDIR\python\Lib"
|
||||
!insertmacro FileListPythonLibs Delete "$INSTDIR\python\libs\"
|
||||
RMDir "$INSTDIR\python\libs"
|
||||
RMDir "$INSTDIR\python"
|
||||
|
||||
;Components of MSYS
|
||||
!insertmacro FileListMSYSBin Delete "$INSTDIR\shell\bin\"
|
||||
RMDir "$INSTDIR\shell\bin"
|
||||
!insertmacro FileListMSYSEtc Delete "$INSTDIR\shell\etc\"
|
||||
RMDir "$INSTDIR\shell\etc"
|
||||
RMDir "$INSTDIR\shell"
|
||||
|
||||
;Aiksaurus Data
|
||||
!insertmacro FileListAiksaurusData Delete "$INSTDIR\aiksaurus\"
|
||||
RMDir "$INSTDIR\aiksaurus"
|
||||
|
||||
;Shortcuts
|
||||
Delete "$SMPROGRAMS\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
||||
Delete "$DESKTOP\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
||||
|
||||
;Batch file and uninstaller itself
|
||||
Delete "$INSTDIR\${APP_RUN}"
|
||||
Delete "$INSTDIR\${SETUP_UNINSTALLER}"
|
||||
RMDir "$INSTDIR\bin"
|
||||
|
||||
SetOutPath "$PROGRAMFILES"
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
;Remove registry keys
|
||||
DeleteRegKey SHELL_CONTEXT "${APP_REGKEY_SETUP}"
|
||||
DeleteRegKey SHELL_CONTEXT "${APP_REGKEY}"
|
||||
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_REGNAME_DOC}"
|
||||
DeleteRegKey SHELL_CONTEXT "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
|
||||
|
||||
;Remove file association
|
||||
ReadRegStr $R0 SHELL_CONTEXT "Software\Classes\${APP_EXT}" ""
|
||||
|
||||
${if} $R0 == "${APP_REGNAME_DOC}"
|
||||
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_EXT}"
|
||||
${endif}
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "un.User Preferences and Custom Files" un.SecUserFiles
|
||||
|
||||
SetShellVarContext current
|
||||
RMDir /r "$APPDATA\${APP_DIR_USERDATA}"
|
||||
|
||||
SectionEnd
|
86
development/Win32/packaging/installer/components/user.nsh
Normal file
86
development/Win32/packaging/installer/components/user.nsh
Normal file
@ -0,0 +1,86 @@
|
||||
/*
|
||||
|
||||
Install type setting (current user/all users)
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro GetDirExternal component
|
||||
|
||||
ReadRegStr $R0 SHELL_CONTEXT "${APP_REGKEY_SETUP}" "${component} Path"
|
||||
|
||||
${if} ${FileExists} "$R0\${BIN_${component}}"
|
||||
|
||||
${if} $R0 != ""
|
||||
StrCpy $Path${component} $R0
|
||||
${endif}
|
||||
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function InitUser
|
||||
|
||||
;Get directories from registry
|
||||
|
||||
ReadRegStr $R0 SHELL_CONTEXT "${APP_REGKEY}" ""
|
||||
|
||||
${if} $R0 != ""
|
||||
StrCpy $INSTDIR $R0
|
||||
${endif}
|
||||
|
||||
!insertmacro GetDirExternal LaTeX
|
||||
!insertmacro GetDirExternal ImageMagick
|
||||
!insertmacro GetDirExternal Ghostscript
|
||||
|
||||
;Set directories in dialogs
|
||||
|
||||
!insertmacro InitDialogExternalDir latex ${TRUE}
|
||||
!insertmacro InitDialogExternalDir imagemagick ${FALSE}
|
||||
!insertmacro InitDialogExternalDir ghostscript ${FALSE}
|
||||
|
||||
;Get LyX language
|
||||
|
||||
ReadRegStr $R0 SHELL_CONTEXT "${APP_REGKEY_SETUP}" "LyX Language"
|
||||
|
||||
${if} $R0 != ""
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "langselect.ini" "Field 2" "State" $R0
|
||||
${endif}
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Page functions
|
||||
|
||||
Function PageUser
|
||||
|
||||
;Only show page if installing for all users is possible
|
||||
${if} $AdminOrPowerUser == ${FALSE}
|
||||
Call InitUser
|
||||
Abort
|
||||
${endif}
|
||||
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_USER_TITLE) $(TEXT_USER_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "user.ini"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function PageUserValidate
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "user.ini" "Field 2" "State"
|
||||
|
||||
${if} $R0 == "1"
|
||||
SetShellVarContext current
|
||||
${else}
|
||||
SetShellVarContext all
|
||||
StrCpy $AllUsersInstall ${TRUE}
|
||||
${endif}
|
||||
|
||||
Call InitUser
|
||||
|
||||
FunctionEnd
|
60
development/Win32/packaging/installer/components/viewer.nsh
Normal file
60
development/Win32/packaging/installer/components/viewer.nsh
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
|
||||
Option to download GSView (PDF/Postscript viewer)
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Sections
|
||||
|
||||
Section -Viewer ExternalViewer
|
||||
!insertmacro ExternalComponent Viewer
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function InitSizeViewer
|
||||
|
||||
;Get size of viewer installer
|
||||
|
||||
SectionGetSize ${ExternalViewer} $SizeViewer
|
||||
|
||||
!ifndef SETUPTYPE_BUNDLE
|
||||
;Add download size
|
||||
IntOp $SizeViewer $SizeViewer + ${SIZE_DOWNLOAD_VIEWER}
|
||||
!endif
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Page functions
|
||||
|
||||
Function PageViewer
|
||||
|
||||
;Show page if no viewer is installed, the user has Power User or Administrator priviledges and
|
||||
;Ghostscript is installed or will be installed
|
||||
|
||||
${if} $AdminOrPowerUser == ${FALSE}
|
||||
${orif} $PathViewer == "associated"
|
||||
Abort
|
||||
${endif}
|
||||
|
||||
${if} $PathGhostscript == ""
|
||||
${andif} $SetupGhostscript == ${FALSE}
|
||||
!insertmacro SetComponentState $R0 Viewer
|
||||
Abort
|
||||
${endif}
|
||||
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_VIEWER_TITLE) $(TEXT_VIEWER_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "viewer.ini"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function PageViewerValidate
|
||||
|
||||
;Download?
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "viewer.ini" "Field 2" "State"
|
||||
!insertmacro SetComponentState $R0 Viewer
|
||||
|
||||
FunctionEnd
|
55
development/Win32/packaging/installer/dialogs/external.ini
Normal file
55
development/Win32/packaging/installer/dialogs/external.ini
Normal file
@ -0,0 +1,55 @@
|
||||
[Settings]
|
||||
NumFields=6
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=0
|
||||
Top=0
|
||||
Right=300
|
||||
Bottom=20
|
||||
Text=###TEXT_EXTERNAL_INFO###
|
||||
|
||||
[Field 2]
|
||||
Type=RadioButton
|
||||
Left=0
|
||||
Top=30
|
||||
Right=300
|
||||
Bottom=41
|
||||
Text=###TEXT_EXTERNAL_DOWNLOAD###
|
||||
Flags=NOTIFY
|
||||
|
||||
[Field 3]
|
||||
Type=RadioButton
|
||||
Left=0
|
||||
Top=50
|
||||
Right=300
|
||||
Bottom=61
|
||||
Text=###TEXT_EXTERNAL_FOLDER###
|
||||
Flags=NOTIFY
|
||||
|
||||
[Field 4]
|
||||
Type=DirRequest
|
||||
Left=10
|
||||
Top=70
|
||||
Right=300
|
||||
Bottom=83
|
||||
Flags=NOTIFY
|
||||
|
||||
[Field 6]
|
||||
Type=RadioButton
|
||||
Left=0
|
||||
Top=110
|
||||
Right=300
|
||||
Bottom=121
|
||||
Text=###TEXT_EXTERNAL_NONE###
|
||||
Flags=NOTIFY
|
||||
[Field 5]
|
||||
Type=Label
|
||||
Left=10
|
||||
Top=90
|
||||
Right=285
|
||||
Bottom=99
|
||||
Text=###TEXT_EXTERNAL_FOLDER_INFO###
|
||||
|
||||
|
||||
|
19
development/Win32/packaging/installer/dialogs/langselect.ini
Normal file
19
development/Win32/packaging/installer/dialogs/langselect.ini
Normal file
@ -0,0 +1,19 @@
|
||||
[Settings]
|
||||
NumFields=2
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=0
|
||||
Top=0
|
||||
Right=300
|
||||
Bottom=20
|
||||
Text=###TEXT_LANGUAGE_INFO###
|
||||
|
||||
[Field 2]
|
||||
Type=DropList
|
||||
Left=0
|
||||
Top=30
|
||||
Right=110
|
||||
Bottom=130
|
||||
ListItems=Basque|Danish|Dutch|English|Finnish|French|German|Hungarian|Italian|Norwegian|Norwegian (Nynorsk)|Polish|Romanian|Russian|Slovensky|Slovene|Spanish|Turkish
|
||||
State=English
|
18
development/Win32/packaging/installer/dialogs/reinstall.ini
Normal file
18
development/Win32/packaging/installer/dialogs/reinstall.ini
Normal file
@ -0,0 +1,18 @@
|
||||
[Settings]
|
||||
NumFields=2
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=0
|
||||
Top=0
|
||||
Right=300
|
||||
Bottom=29
|
||||
Text=###TEXT_REINSTALL_INFO###
|
||||
|
||||
[Field 2]
|
||||
Type=CheckBox
|
||||
Left=20
|
||||
Top=50
|
||||
Right=300
|
||||
Bottom=59
|
||||
Text=###TEXT_REINSTALL_ENABLE###
|
27
development/Win32/packaging/installer/dialogs/user.ini
Normal file
27
development/Win32/packaging/installer/dialogs/user.ini
Normal file
@ -0,0 +1,27 @@
|
||||
[Settings]
|
||||
NumFields=3
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=0
|
||||
Top=0
|
||||
Right=300
|
||||
Bottom=19
|
||||
Text=###TEXT_USER_INFO###
|
||||
|
||||
[Field 2]
|
||||
Type=RadioButton
|
||||
Left=20
|
||||
Top=40
|
||||
Right=290
|
||||
Bottom=51
|
||||
Text=###TEXT_USER_CURRENT###
|
||||
State=1
|
||||
|
||||
[Field 3]
|
||||
Type=RadioButton
|
||||
Left=20
|
||||
Top=60
|
||||
Right=290
|
||||
Bottom=71
|
||||
Text=###TEXT_USER_ALL#
|
19
development/Win32/packaging/installer/dialogs/viewer.ini
Normal file
19
development/Win32/packaging/installer/dialogs/viewer.ini
Normal file
@ -0,0 +1,19 @@
|
||||
[Settings]
|
||||
NumFields=2
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=0
|
||||
Top=0
|
||||
Right=300
|
||||
Bottom=30
|
||||
Text=###TEXT_VIEWER_INFO###
|
||||
|
||||
[Field 2]
|
||||
Type=CheckBox
|
||||
Left=20
|
||||
Top=50
|
||||
Right=300
|
||||
Bottom=59
|
||||
Text=###TEXT_VIEWER_DOWNLOAD###
|
||||
State=1
|
@ -1,458 +0,0 @@
|
||||
; File download.nsh
|
||||
; This file is part of LyX, the document processor.
|
||||
; http://www.lyx.org/
|
||||
; Licence details can be found in the file COPYING or copy at
|
||||
; http://www.lyx.org/about/license.php3
|
||||
|
||||
; Author Angus Leeming
|
||||
; Full author contact details are available in file CREDITS or copy at
|
||||
; http://www.lyx.org/about/credits.php
|
||||
|
||||
!ifndef _DOWNLOAD_NSH_
|
||||
!define _DOWNLOAD_NSH_
|
||||
|
||||
!include "lyxfunc.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
!insertmacro LYX_DEFFUNC `ReadDownloadValues`
|
||||
!insertmacro LYX_DEFFUNC `EnableBrowseControls`
|
||||
!insertmacro LYX_DEFFUNC `SearchRegistry`
|
||||
!insertmacro LYX_DEFFUNC `DownloadEnter`
|
||||
!insertmacro LYX_DEFFUNC `DownloadLeave`
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_ReadDownloadValues
|
||||
!insertmacro LYX_FUNC `ReadDownloadValues`
|
||||
|
||||
; The stack contains:
|
||||
; TOP
|
||||
; FolderPath
|
||||
; SelectFolder
|
||||
; Download
|
||||
; DoNothing
|
||||
|
||||
; After this point:
|
||||
; $0 = FolderPath
|
||||
; $1 = SelectFolder
|
||||
; $2 = Download
|
||||
; $3 = DoNothing
|
||||
; $4 = temp
|
||||
|
||||
Exch $0
|
||||
Exch
|
||||
Exch $1
|
||||
Exch 2
|
||||
Exch $2
|
||||
Exch 3
|
||||
Exch $3
|
||||
|
||||
; Populate the registers with the values in the widgets.
|
||||
|
||||
; DoNothing.
|
||||
; If the widget is disabled then set DoNothing ($3) to 0.
|
||||
; Otherwise, set it equal to the "state" variable of the field.
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $3 "io_download.ini" "Field 2" "Flags"
|
||||
IntOp $3 $3 & DISABLED
|
||||
${if} $3 == 1
|
||||
StrCpy $3 0
|
||||
${else}
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $3 "io_download.ini" "Field 2" "State"
|
||||
${endif}
|
||||
|
||||
; Download
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $2 "io_download.ini" "Field 3" "State"
|
||||
; SelectFolder
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $1 "io_download.ini" "Field 4" "State"
|
||||
; FolderPath
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $0 "io_download.ini" "Field 5" "State"
|
||||
|
||||
; Return output to user.
|
||||
; The stack available to the user contains:
|
||||
; TOP
|
||||
; Modified FolderPath
|
||||
; Modified SelectFolder
|
||||
; Modified Download
|
||||
; Modified DoNothing
|
||||
|
||||
; $0 = FolderPath
|
||||
; $1 = SelectFolder
|
||||
; $2 = Download
|
||||
; $3 = DoNothing
|
||||
|
||||
Exch $3
|
||||
Exch 3
|
||||
Exch $2
|
||||
Exch 2
|
||||
Exch $1
|
||||
Exch
|
||||
Exch $0
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_EnableBrowseControls
|
||||
!insertmacro LYX_FUNC `EnableBrowseControls`
|
||||
|
||||
; After this point:
|
||||
; $0 = SelectFolder
|
||||
; $1 = temp
|
||||
; $2 = temp
|
||||
; $3 = temp
|
||||
|
||||
Push $0
|
||||
Push $1
|
||||
Push $2
|
||||
Push $3
|
||||
|
||||
; Populate the registers with the values in the widgets.
|
||||
; We're interested only in $0 (SelectFolder) here.
|
||||
${ReadDownloadValues} $1 $2 $0 $3
|
||||
|
||||
; Get the dialog HWND, storing it in $1
|
||||
FindWindow $1 "#32770" "" $HWNDPARENT
|
||||
|
||||
; To get the HWND of the controls use:
|
||||
; GetDlgItem (output var)
|
||||
; (hwnd of the custom dialog) (1200 + Field number - 1)
|
||||
|
||||
; Get the Browse textbox ID
|
||||
GetDlgItem $2 $1 1204
|
||||
; Enable it if the SelectFolder ($0) checkbox is selected.
|
||||
EnableWindow $2 $0
|
||||
|
||||
; get Browse button ID
|
||||
GetDlgItem $2 $1 1205
|
||||
; Enable it if the Folder checkbox is selected.
|
||||
EnableWindow $2 $0
|
||||
|
||||
; Remove temporaries from stack.
|
||||
Pop $3
|
||||
Pop $2
|
||||
Pop $1
|
||||
Pop $0
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
||||
!macro SearchRegistry_Private ExePath RegistryKey RegistrySubKey RemoveFromPath AddtoPath
|
||||
|
||||
${if} ${ExePath} == ""
|
||||
ReadRegStr ${ExePath} HKLM "${RegistryKey}" "${RegistrySubKey}"
|
||||
${if} ${ExePath} != ""
|
||||
${StrRep} "${ExePath}" "${ExePath}" "${RemoveFromPath}" ""
|
||||
StrCpy ${ExePath} "${ExePath}${AddtoPath}"
|
||||
${endif}
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_SearchRegistry
|
||||
!insertmacro LYX_FUNC `SearchRegistry`
|
||||
|
||||
; The stack contains:
|
||||
; TOP
|
||||
; ExePath
|
||||
; RegistryKey
|
||||
; RegistrySubKey
|
||||
; RemoveFromPath
|
||||
; AddtoPath
|
||||
|
||||
; After this point:
|
||||
; $0 = ExePath
|
||||
; $1 = RegistryKey
|
||||
; $2 = RegistrySubKey
|
||||
; $3 = RemoveFromPath
|
||||
; $4 = AddtoPath
|
||||
|
||||
Exch $0
|
||||
Exch
|
||||
Exch $1
|
||||
Exch 2
|
||||
Exch $2
|
||||
Exch 3
|
||||
Exch $3
|
||||
Exch 4
|
||||
Exch $4
|
||||
|
||||
; Use a macro simply to make life understandable.
|
||||
!insertmacro SearchRegistry_Private "$0" "$1" "$2" "$3" "$4"
|
||||
|
||||
; Return output to user.
|
||||
Exch $4
|
||||
Exch 4
|
||||
Exch $3
|
||||
Exch 3
|
||||
Exch $2
|
||||
Exch 2
|
||||
Exch $1
|
||||
Exch
|
||||
Exch $0
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
||||
!macro DownloadEnter_Private ExePath Required DownloadLabel HomeLabel PageHeader PageDescription
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 1" "Text" ""
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 2" "Text" "$(DownloadPageField2)"
|
||||
|
||||
Push $0
|
||||
${if} ${Required} == 1
|
||||
StrCpy $0 "NOTIFY"
|
||||
${else}
|
||||
StrCpy $0 "DISABLED"
|
||||
${endif}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 2" "Flags" $0
|
||||
Pop $0
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 2" "State" "0"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 3" "Text" "${DownloadLabel}"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 4" "Text" "${HomeLabel}"
|
||||
|
||||
|
||||
${if} ${ExePath} == ""
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 3" "State" "1"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 4" "State" "0"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 5" "Flags" PATH_MUST_EXIST|DISABLED
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 5" "State" ""
|
||||
${else}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 3" "State" "0"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 4" "State" "1"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 5" "Flags" PATH_MUST_EXIST
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_download.ini" "Field 5" "State" "${ExePath}"
|
||||
${endif}
|
||||
|
||||
ClearErrors
|
||||
|
||||
!insertmacro MUI_HEADER_TEXT "${PageHeader}" "${PageDescription}"
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "io_download.ini"
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_DownloadEnter
|
||||
!insertmacro LYX_FUNC `DownloadEnter`
|
||||
|
||||
; The stack contains:
|
||||
; TOP
|
||||
; ExePath
|
||||
; Required
|
||||
; DownloadLabel
|
||||
; HomeLabel
|
||||
; PageHeader
|
||||
; PageDescription
|
||||
|
||||
; After this point:
|
||||
; $0 = ExePath
|
||||
; $1 = Required
|
||||
; $2 = DownloadLabel
|
||||
; $3 = HomeLabel
|
||||
; $4 = PageHeader
|
||||
; $5 = PageDescription
|
||||
|
||||
Exch $0
|
||||
Exch
|
||||
Exch $1
|
||||
Exch 2
|
||||
Exch $2
|
||||
Exch 3
|
||||
Exch $3
|
||||
Exch 4
|
||||
Exch $4
|
||||
Exch 5
|
||||
Exch $5
|
||||
|
||||
; Use a macro simply to make life understandable.
|
||||
!insertmacro DownloadEnter_Private "$0" "$1" "$2" "$3" "$4" "$5"
|
||||
|
||||
; Return output to user.
|
||||
Exch $5
|
||||
Exch 5
|
||||
Exch $4
|
||||
Exch 4
|
||||
Exch $3
|
||||
Exch 3
|
||||
Exch $2
|
||||
Exch 2
|
||||
Exch $1
|
||||
Exch
|
||||
Exch $0
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
||||
!macro DownloadLeave_Private DoNotRequire Download FolderPath URL EnterFolder ExeName InvalidFolder
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $0 "io_download.ini" "Settings" "State"
|
||||
|
||||
StrCmp $0 0 go_on ; Next button?
|
||||
|
||||
${EnableBrowseControls}
|
||||
Abort ; Return to the page
|
||||
|
||||
go_on:
|
||||
${ReadDownloadValues} ${DoNotRequire} ${Download} $0 ${FolderPath}
|
||||
|
||||
${if} ${DoNotRequire} == 1
|
||||
;
|
||||
${elseif} ${Download} == 1
|
||||
StrCpy ${FolderPath} ""
|
||||
ExecShell open "${URL}"
|
||||
${else}
|
||||
${StrTrim} ${FolderPath} ${FolderPath}
|
||||
${StrRTrimChar} ${FolderPath} ${FolderPath} '\'
|
||||
|
||||
${if} ${FolderPath} == ""
|
||||
MessageBox MB_OK "${EnterFolder}"
|
||||
Abort
|
||||
${endif}
|
||||
|
||||
${if} ${FileExists} "${FolderPath}"
|
||||
${StrRep} ${FolderPath} ${FolderPath} "${ExeName}" ""
|
||||
${StrRTrimChar} ${FolderPath} ${FolderPath} '\'
|
||||
|
||||
${if} ${FileExists} "${FolderPath}\${ExeName}"
|
||||
${else}
|
||||
MessageBox MB_OK "${InvalidFolder}"
|
||||
Abort
|
||||
${endif}
|
||||
${else}
|
||||
MessageBox MB_OK "${InvalidFolder}"
|
||||
Abort
|
||||
${endif}
|
||||
${endif}
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_DownloadLeave
|
||||
!insertmacro LYX_FUNC `DownloadLeave`
|
||||
|
||||
; The stack contains:
|
||||
; TOP
|
||||
; DoNotRequire
|
||||
; Download
|
||||
; FolderPath
|
||||
; URL
|
||||
; EnterFolder
|
||||
; ExeName
|
||||
; InvalidFolder
|
||||
|
||||
; After this point:
|
||||
; $0 = DoNotRequire
|
||||
; $1 = Download
|
||||
; $2 = FolderPath
|
||||
; $3 = URL
|
||||
; $4 = EnterFolder
|
||||
; $5 = ExeName
|
||||
; $6 = InvalidFolder
|
||||
|
||||
Exch $0
|
||||
Exch
|
||||
Exch $1
|
||||
Exch 2
|
||||
Exch $2
|
||||
Exch 3
|
||||
Exch $3
|
||||
Exch 4
|
||||
Exch $4
|
||||
Exch 5
|
||||
Exch $5
|
||||
Exch 6
|
||||
Exch $6
|
||||
|
||||
; Use a macro simply to make life understandable.
|
||||
!insertmacro DownloadLeave_Private "$0" "$1" "$2" "$3" "$4" "$5" "$6"
|
||||
|
||||
; Return output to user.
|
||||
Exch $6
|
||||
Exch 6
|
||||
Exch $5
|
||||
Exch 5
|
||||
Exch $4
|
||||
Exch 4
|
||||
Exch $3
|
||||
Exch 3
|
||||
Exch $2
|
||||
Exch 2
|
||||
Exch $1
|
||||
Exch
|
||||
Exch $0
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_ReadDownloadValues_Call DoNothing Download SelectFolder FolderPath
|
||||
Push `${DoNothing}`
|
||||
Push `${Download}`
|
||||
Push `${SelectFolder}`
|
||||
Push `${FolderPath}`
|
||||
Call ReadDownloadValues
|
||||
Pop `${FolderPath}`
|
||||
Pop `${SelectFolder}`
|
||||
Pop `${Download}`
|
||||
Pop `${DoNothing}`
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_EnableBrowseControls_Call
|
||||
Call EnableBrowseControls
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_SearchRegistry_Call ExePath RegistryKey RegistrySubKey RemoveFromPath AddtoPath
|
||||
Push `${AddtoPath}`
|
||||
Push `${RemoveFromPath}`
|
||||
Push `${RegistrySubKey}`
|
||||
Push `${RegistryKey}`
|
||||
Push `${ExePath}`
|
||||
|
||||
Call SearchRegistry
|
||||
; Empty the stack of all the stuff we've just added.
|
||||
; We're not interested in most of it, so just fill $0 repeatedly.
|
||||
|
||||
Pop `${ExePath}`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_DownloadEnter_Call ExePath Required DownloadLabel HomeLabel PageHeader PageDescription
|
||||
Push `${PageDescription}`
|
||||
Push `${PageHeader}`
|
||||
Push `${HomeLabel}`
|
||||
Push `${DownloadLabel}`
|
||||
Push `${Required}`
|
||||
Push `${ExePath}`
|
||||
Call DownloadEnter
|
||||
; Empty the stack of all the stuff we've just added.
|
||||
; We're not interested in keeping it, so just fill $0 repeatedly.
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
!macroend
|
||||
|
||||
|
||||
!macro LYX_FUNCTION_DownloadLeave_Call DoNotRequire Download FolderPath URL EnterFolder ExeName InvalidFolder
|
||||
Push `${InvalidFolder}`
|
||||
Push `${ExeName}`
|
||||
Push `${EnterFolder}`
|
||||
Push `${URL}`
|
||||
Push `${FolderPath}`
|
||||
Push `${Download}`
|
||||
Push `${DoNotRequire}`
|
||||
Call DownloadLeave
|
||||
; Empty the stack of all the stuff we've just added.
|
||||
Pop `${DoNotRequire}`
|
||||
Pop `${Download}`
|
||||
Pop `${FolderPath}`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
Pop `$0`
|
||||
!macroend
|
||||
|
||||
!endif ; _DOWNLOAD_NSH_
|
BIN
development/Win32/packaging/installer/graphics/header.bmp
Normal file
BIN
development/Win32/packaging/installer/graphics/header.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
BIN
development/Win32/packaging/installer/graphics/wizard.bmp
Normal file
BIN
development/Win32/packaging/installer/graphics/wizard.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
114
development/Win32/packaging/installer/include/declarations.nsh
Normal file
114
development/Win32/packaging/installer/include/declarations.nsh
Normal file
@ -0,0 +1,114 @@
|
||||
/*
|
||||
|
||||
Declarations
|
||||
|
||||
*/
|
||||
|
||||
!include "settings.nsh"
|
||||
|
||||
;--------------------------------
|
||||
;Defines based on settings
|
||||
|
||||
!ifndef SETUPTYPE_BUNDLE
|
||||
!define SETUPTYPE_NAME DOWNLOAD
|
||||
!else
|
||||
!define SETUPTYPE_NAME INSTALL
|
||||
!endif
|
||||
|
||||
;--------------------------------
|
||||
;Standard header files
|
||||
|
||||
!include "MUI.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
!include "FileFunc.nsh"
|
||||
!include "WordFunc.nsh"
|
||||
!include "Sections.nsh"
|
||||
|
||||
;--------------------------------
|
||||
;Windows constants
|
||||
|
||||
!define SHCNE_ASSOCCHANGED 0x08000000
|
||||
!define SHCNF_IDLIST 0x0000
|
||||
|
||||
;--------------------------------
|
||||
;Reserve Files
|
||||
;These files should come first in the compressed data (for faster GUI)
|
||||
|
||||
ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
|
||||
ReserveFile "dialogs\user.ini"
|
||||
ReserveFile "dialogs\external.ini"
|
||||
ReserveFile "dialogs\viewer.ini"
|
||||
ReserveFile "dialogs\langselect.ini"
|
||||
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
||||
|
||||
;--------------------------------
|
||||
;Variables
|
||||
|
||||
Var AdminOrPowerUser
|
||||
Var AllUsersInstall
|
||||
|
||||
Var PathLaTeX
|
||||
Var PathImageMagick
|
||||
Var PathGhostscript
|
||||
Var PathViewer
|
||||
|
||||
Var SetupLaTeX
|
||||
Var SetupImageMagick
|
||||
Var SetupGhostscript
|
||||
Var SetupViewer
|
||||
|
||||
Var SizeLaTeX
|
||||
Var SizeImageMagick
|
||||
Var SizeGhostscript
|
||||
Var SizeViewer
|
||||
|
||||
Var LangName
|
||||
Var LangCode
|
||||
|
||||
Var AspellHive
|
||||
|
||||
;--------------------------------
|
||||
;Generic defines
|
||||
|
||||
!define FALSE 0
|
||||
!define TRUE 1
|
||||
|
||||
;--------------------------------
|
||||
;Include standard functions
|
||||
|
||||
!insertmacro GetParent
|
||||
!insertmacro VersionCompare
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro ReDef name value
|
||||
|
||||
;Redefine a pre-processor definition
|
||||
|
||||
!ifdef `${name}`
|
||||
!undef `${name}`
|
||||
!endif
|
||||
|
||||
!define `${name}` `${value}`
|
||||
|
||||
!macroend
|
||||
|
||||
!macro CallFunc function input var_output
|
||||
|
||||
;Calls a function that modifies a single value on the stack
|
||||
|
||||
Push ${input}
|
||||
Call ${function}
|
||||
Pop ${var_output}
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;LyX installer header files
|
||||
|
||||
!include "include\windows.nsh"
|
||||
!include "include\lang.nsh"
|
||||
!include "include\gui.nsh"
|
||||
!include "include\detection.nsh"
|
||||
!include "include\filelists.nsh"
|
245
development/Win32/packaging/installer/include/detection.nsh
Normal file
245
development/Win32/packaging/installer/include/detection.nsh
Normal file
@ -0,0 +1,245 @@
|
||||
/*
|
||||
|
||||
Detection functions for all components
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro SearchMiKTeX rootkey
|
||||
|
||||
ReadRegStr $PathLaTeX ${rootkey} "Software\MiK\MiKTeX\CurrentVersion\MiKTeX" "Install Root"
|
||||
|
||||
${if} $PathLaTeX != ""
|
||||
!insertmacro callfunc TrimBackslash $PathLaTeX $PathLaTeX ;Just in case it's installed in a root directory
|
||||
StrCpy $PathLaTeX "$PathLaTeX\miktex\bin"
|
||||
${endif}
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function SearchAll
|
||||
|
||||
Call SearchLaTeX
|
||||
Call SearchGhostscript
|
||||
Call SearchImageMagick
|
||||
|
||||
IfSilent +2
|
||||
Call SearchViewer
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function TrimBackslash
|
||||
|
||||
;Trim a trailing backslash of a directory
|
||||
|
||||
Exch $R0
|
||||
Push $R1
|
||||
|
||||
StrCpy $R1 $R0 1 -1
|
||||
|
||||
${if} $R1 == "\"
|
||||
StrLen $R1 $R0
|
||||
IntOp $R1 $R1 - 1
|
||||
StrCpy $R0 $R0 $R1
|
||||
${endif}
|
||||
|
||||
Pop $R1
|
||||
Exch $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function GetPathPrefix
|
||||
|
||||
Push $R0
|
||||
|
||||
StrCpy $R0 "$INSTDIR\latextools;$INSTDIR\python;$INSTDIR\shell\bin"
|
||||
|
||||
${if} $PathLaTeX != ""
|
||||
StrCpy $R0 "$R0;$PathLaTeX"
|
||||
${endif}
|
||||
|
||||
${if} $PathGhostscript != ""
|
||||
StrCpy $R0 "$R0;$PathGhostscript"
|
||||
${endif}
|
||||
|
||||
${if} $PathImageMagick != ""
|
||||
StrCpy $R0 "$R0;$PathImageMagick"
|
||||
${endif}
|
||||
|
||||
Exch $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function SearchViewer
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
|
||||
!insertmacro CallFunc DetectViewerByExtension "pdf" $R0
|
||||
!insertmacro CallFunc DetectViewerByExtension "ps" $R1
|
||||
|
||||
StrCpy $PathViewer ""
|
||||
|
||||
${if} $R0 != ""
|
||||
${if} $R1 != ""
|
||||
StrCpy $PathViewer "associated"
|
||||
${endif}
|
||||
${endif}
|
||||
|
||||
Pop $R1
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function DetectViewerByExtension
|
||||
|
||||
;Input on stack: file extension without dot
|
||||
|
||||
Exch $R0
|
||||
Push $R1
|
||||
Push $R2
|
||||
|
||||
InitPluginsDir
|
||||
|
||||
StrCpy $R1 "$PLUGINSDIR\ViewerDetect.$R0"
|
||||
FileOpen $R2 $R1 w
|
||||
FileClose $R2
|
||||
|
||||
StrCpy $R0 ""
|
||||
|
||||
System::Call "shell32::FindExecutableA(t R1, n, t .R0)"
|
||||
|
||||
Delete $R1
|
||||
|
||||
Pop $R2
|
||||
Pop $R1
|
||||
Exch $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function SearchLaTeX
|
||||
|
||||
;Search where MikTeX is installed
|
||||
|
||||
;Current user
|
||||
!insertmacro SearchMiKTeX HKCU
|
||||
|
||||
;All users
|
||||
${unless} ${FileExists} "$PathLaTeX\${BIN_LATEX}"
|
||||
!insertmacro SearchMiKTeX HKLM
|
||||
${endif}
|
||||
|
||||
${unless} ${FileExists} "$PathLaTeX\${BIN_LATEX}"
|
||||
StrCpy $PathLatex ""
|
||||
${endif}
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function SearchLaTeXLocalRoot
|
||||
|
||||
;Search for the MikTeX local root (localtexmf)
|
||||
;Returns value on stack
|
||||
|
||||
Push $R0
|
||||
|
||||
;Current user
|
||||
ReadRegStr $R0 HKCU "Software\MiK\MiKTeX\CurrentVersion\MiKTeX" "Local Root"
|
||||
|
||||
;All users
|
||||
${unless} ${FileExists} $R0
|
||||
ReadRegStr $R0 HKLM "Software\MiK\MiKTeX\CurrentVersion\MiKTeX" "Local Root"
|
||||
${endif}
|
||||
|
||||
Exch $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function SearchGhostscript
|
||||
|
||||
;Search where Ghostscript is installed
|
||||
|
||||
Push $R0 ;Temp
|
||||
Push $R1 ;Counter
|
||||
Push $R2 ;Enum return
|
||||
Push $R3 ;AFPL version
|
||||
Push $R4 ;GPL version
|
||||
|
||||
StrCpy $R3 ""
|
||||
StrCpy $R4 ""
|
||||
|
||||
;Check the latest version of AFPL Ghostscript installed
|
||||
|
||||
StrCpy $R1 0
|
||||
|
||||
${do}
|
||||
|
||||
EnumRegKey $R2 HKLM "Software\AFPL Ghostscript" $R1
|
||||
|
||||
${if} $R2 != ""
|
||||
${VersionCompare} $R2 $R3 $R0
|
||||
${if} $R0 == "1"
|
||||
StrCpy $R3 $R2
|
||||
${endif}
|
||||
IntOp $R1 $R1 + 1
|
||||
${endif}
|
||||
|
||||
${loopuntil} $R2 == ""
|
||||
|
||||
;The same for GPL Ghostscript
|
||||
|
||||
StrCpy $R1 0
|
||||
|
||||
${do}
|
||||
|
||||
EnumRegKey $R2 HKLM "Software\GPL Ghostscript" $R1
|
||||
|
||||
${if} $R2 != ""
|
||||
${VersionCompare} $R2 $R4 $R0
|
||||
${if} $R0 == "1"
|
||||
StrCpy $R4 $R2
|
||||
${endif}
|
||||
IntOp $R1 $R1 + 1
|
||||
${endif}
|
||||
|
||||
${loopuntil} $R2 == ""
|
||||
|
||||
;Take the latest one
|
||||
${VersionCompare} $R3 $R4 $R0
|
||||
|
||||
${if} $R0 == "1"
|
||||
;AFPL is newer
|
||||
ReadRegStr $PathGhostscript HKLM "Software\AFPL Ghostscript\$R3" "GS_DLL"
|
||||
${else}
|
||||
;GPL is newer or equal
|
||||
ReadRegStr $PathGhostscript HKLM "Software\GPL Ghostscript\$R4" "GS_DLL"
|
||||
${endif}
|
||||
|
||||
;Trim the DLL filename to get the path
|
||||
${GetParent} $PathGhostscript $PathGhostscript
|
||||
|
||||
${unless} ${FileExists} "$PathGhostscript\${BIN_GHOSTSCRIPT}"
|
||||
StrCpy $PathGhostscript ""
|
||||
${endif}
|
||||
|
||||
Pop $R4
|
||||
Pop $R3
|
||||
Pop $R2
|
||||
Pop $R1
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function SearchImageMagick
|
||||
|
||||
;Search where ImageMagick is installed
|
||||
ReadRegStr $PathImageMagick HKLM "Software\ImageMagick\Current" "BinPath"
|
||||
|
||||
${unless} ${FileExists} "$PathImageMagick\${BIN_IMAGEMAGICK}"
|
||||
StrCpy $PathImageMagick ""
|
||||
${endif}
|
||||
|
||||
FunctionEnd
|
187
development/Win32/packaging/installer/include/filelists.nsh
Normal file
187
development/Win32/packaging/installer/include/filelists.nsh
Normal file
@ -0,0 +1,187 @@
|
||||
/*
|
||||
|
||||
Lists of files to include in the installer
|
||||
|
||||
*/
|
||||
|
||||
!macro FileListLyXBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}lyx.exe"
|
||||
${COMMAND} "${DIRECTORY}tex2lyx.exe"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListLyXIcons COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}lyx_32x32.ico"
|
||||
${COMMAND} "${DIRECTORY}lyx_doc_32x32.ico"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListLyXScriptsCleanDVI COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}clean_dvi.py"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListQtBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}qt-mt3.dll"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListMinGWBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}mingwm10.dll"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListDllBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}libiconv-2.dll"
|
||||
${COMMAND} "${DIRECTORY}libintl-3.dll"
|
||||
${COMMAND} "${DIRECTORY}zlib1.dll"
|
||||
${COMMAND} "${DIRECTORY}libAiksaurus-1-2-0.dll"
|
||||
${COMMAND} "${DIRECTORY}libaspell-15.dll"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListNetpbmBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}libnetpbm10.dll"
|
||||
${COMMAND} "${DIRECTORY}pnmcrop.exe"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListDTLBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}dt2dv.exe"
|
||||
${COMMAND} "${DIRECTORY}dv2dt.exe"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListDvipostBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}pplatex.exe"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListWinScripts COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}clean_dvi.py"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListFonts COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}cmex10.ttf"
|
||||
${COMMAND} "${DIRECTORY}cmmi10.ttf"
|
||||
${COMMAND} "${DIRECTORY}cmr10.ttf"
|
||||
${COMMAND} "${DIRECTORY}cmsy10.ttf"
|
||||
${COMMAND} "${DIRECTORY}eufm10.ttf"
|
||||
${COMMAND} "${DIRECTORY}msam10.ttf"
|
||||
${COMMAND} "${DIRECTORY}msbm10.ttf"
|
||||
${COMMAND} "${DIRECTORY}wasy10.ttf"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListMSYSBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}cat.exe"
|
||||
${COMMAND} "${DIRECTORY}cp.exe"
|
||||
${COMMAND} "${DIRECTORY}cut.exe"
|
||||
${COMMAND} "${DIRECTORY}expr.exe"
|
||||
${COMMAND} "${DIRECTORY}find.exe"
|
||||
${COMMAND} "${DIRECTORY}grep.exe"
|
||||
${COMMAND} "${DIRECTORY}ln.exe"
|
||||
${COMMAND} "${DIRECTORY}ls.exe"
|
||||
${COMMAND} "${DIRECTORY}mkdir.exe"
|
||||
${COMMAND} "${DIRECTORY}mv.exe"
|
||||
${COMMAND} "${DIRECTORY}rm.exe"
|
||||
${COMMAND} "${DIRECTORY}sed.exe"
|
||||
${COMMAND} "${DIRECTORY}sh.exe"
|
||||
${COMMAND} "${DIRECTORY}touch.exe"
|
||||
${COMMAND} "${DIRECTORY}tr.exe"
|
||||
${COMMAND} "${DIRECTORY}uname.exe"
|
||||
${COMMAND} "${DIRECTORY}MSYS-1.0.dll"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListMSYSEtc COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}config.site"
|
||||
${COMMAND} "${DIRECTORY}profile"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListPythonBin COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}python.exe"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListPythonDll COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}python24.dll"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListPythonDLLs COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}zlib.pyd"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListPythonLib COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}UserDict.py"
|
||||
${COMMAND} "${DIRECTORY}codecs.py"
|
||||
${COMMAND} "${DIRECTORY}copy_reg.py"
|
||||
${COMMAND} "${DIRECTORY}fnmatch.py"
|
||||
${COMMAND} "${DIRECTORY}getopt.py"
|
||||
${COMMAND} "${DIRECTORY}glob.py"
|
||||
${COMMAND} "${DIRECTORY}gzip.py"
|
||||
${COMMAND} "${DIRECTORY}linecache.py"
|
||||
${COMMAND} "${DIRECTORY}locale.py"
|
||||
${COMMAND} "${DIRECTORY}ntpath.py"
|
||||
${COMMAND} "${DIRECTORY}os.py"
|
||||
${COMMAND} "${DIRECTORY}pipes.py"
|
||||
${COMMAND} "${DIRECTORY}posixpath.py"
|
||||
${COMMAND} "${DIRECTORY}random.py"
|
||||
${COMMAND} "${DIRECTORY}re.py"
|
||||
${COMMAND} "${DIRECTORY}shutil.py"
|
||||
${COMMAND} "${DIRECTORY}site.py"
|
||||
${COMMAND} "${DIRECTORY}sre.py"
|
||||
${COMMAND} "${DIRECTORY}sre_compile.py"
|
||||
${COMMAND} "${DIRECTORY}sre_constants.py"
|
||||
${COMMAND} "${DIRECTORY}sre_parse.py"
|
||||
${COMMAND} "${DIRECTORY}stat.py"
|
||||
${COMMAND} "${DIRECTORY}string.py"
|
||||
${COMMAND} "${DIRECTORY}tempfile.py"
|
||||
${COMMAND} "${DIRECTORY}tempfile.py"
|
||||
${COMMAND} "${DIRECTORY}types.py"
|
||||
${COMMAND} "${DIRECTORY}warnings.py"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListPythonLibEncodings COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}__init__.py"
|
||||
${COMMAND} "${DIRECTORY}aliases.py"
|
||||
${COMMAND} "${DIRECTORY}cp1252.py"
|
||||
${COMMAND} "${DIRECTORY}zlib_codec.py"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListPythonLibs COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}zlib.lib"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro FileListAiksaurusData COMMAND DIRECTORY
|
||||
|
||||
${COMMAND} "${DIRECTORY}words.dat"
|
||||
${COMMAND} "${DIRECTORY}meanings.dat"
|
||||
|
||||
!macroend
|
175
development/Win32/packaging/installer/include/gui.nsh
Normal file
175
development/Win32/packaging/installer/include/gui.nsh
Normal file
@ -0,0 +1,175 @@
|
||||
/*
|
||||
|
||||
Installer User Interface
|
||||
|
||||
*/
|
||||
|
||||
;--------------------------------
|
||||
;General
|
||||
|
||||
Name "${APP_NAME} ${APP_VERSION}"
|
||||
|
||||
;Default installation folder
|
||||
InstallDir "${SETUP_DEFAULT_DIRECTORY}"
|
||||
|
||||
;--------------------------------
|
||||
;Installer language
|
||||
|
||||
;Get from registry if available
|
||||
!define MUI_LANGDLL_REGISTRY_ROOT SHELL_CONTEXT
|
||||
!define MUI_LANGDLL_REGISTRY_KEY "${APP_REGKEY_SETUP}"
|
||||
!define MUI_LANGDLL_REGISTRY_VALUENAME "Setup Language"
|
||||
|
||||
;--------------------------------
|
||||
;Interface settings
|
||||
|
||||
!define MUI_ABORTWARNING
|
||||
!define MUI_ICON "${SETUP_ICON}"
|
||||
!define MUI_UNICON "${SETUP_ICON}"
|
||||
!define MUI_HEADERIMAGE
|
||||
!define MUI_HEADERIMAGE_BITMAP "${SETUP_HEADERIMAGE}"
|
||||
!define MUI_HEADERIMAGE_RIGHT
|
||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "${SETUP_WIZARDIMAGE}"
|
||||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${SETUP_WIZARDIMAGE}"
|
||||
!define MUI_CUSTOMFUNCTION_GUIINIT InitInterface
|
||||
!define MUI_COMPONENTSPAGE_NODESC
|
||||
|
||||
;--------------------------------
|
||||
;Pages
|
||||
|
||||
;Installer
|
||||
|
||||
!define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME_${SETUPTYPE_NAME})
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"
|
||||
|
||||
Page custom PageUser PageUserValidate
|
||||
Page custom PageReinstall PageReinstallValidate
|
||||
Page custom PageExternalLaTeX PageExternalLaTeXValidate
|
||||
Page custom PageExternalImageMagick PageExternalImageMagickValidate
|
||||
Page custom PageExternalGhostscript PageExternalGhostscriptValidate
|
||||
Page custom PageViewer PageViewerValidate
|
||||
Page custom PageLanguage PageLanguageValidate
|
||||
|
||||
!define MUI_PAGE_HEADER_TEXT $(TEXT_DICT_TITLE)
|
||||
!define MUI_PAGE_HEADER_SUBTEXT $(TEXT_DICT_SUBTITLE)
|
||||
!define MUI_COMPONENTSPAGE_TEXT_TOP $(TEXT_DICT_TOP)
|
||||
!define MUI_COMPONENTSPAGE_TEXT_COMPLIST $(TEXT_DICT_LIST)
|
||||
!insertmacro MUI_PAGE_COMPONENTS ;For spell checker dictionaries
|
||||
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_RUN}"
|
||||
!define MUI_FINISHPAGE_SHOWREADME
|
||||
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
||||
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION CreateDesktopShortcut
|
||||
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(TEXT_FINISH_DESKTOP)
|
||||
!define MUI_FINISHPAGE_LINK $(TEXT_FINISH_WEBSITE)
|
||||
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.lyx.org/"
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
;Uninstaller
|
||||
|
||||
!define MUI_WELCOMEPAGE_TEXT $(UNTEXT_WELCOME)
|
||||
!insertmacro MUI_UNPAGE_WELCOME
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_COMPONENTS
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
!insertmacro MUI_UNPAGE_FINISH
|
||||
|
||||
;--------------------------------
|
||||
;Languages
|
||||
|
||||
!insertmacro IncludeLang "english"
|
||||
|
||||
;--------------------------------
|
||||
;Macros
|
||||
|
||||
!macro InitDialogExternal component currentuser_possible
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 1" "Text" $(TEXT_EXTERNAL_${component}_INFO_${SETUPTYPE_NAME})
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 3" "Text" $(TEXT_EXTERNAL_${component}_FOLDER)
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 5" "Text" $(TEXT_EXTERNAL_${component}_FOLDER_INFO)
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 6" "Text" $(TEXT_EXTERNAL_${component}_NONE)
|
||||
|
||||
!if ${currentuser_possible} == ${TRUE}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 2" "Text" "$(TEXT_EXTERNAL_${component}_${SETUPTYPE_NAME})"
|
||||
!else
|
||||
${if} $AdminOrPowerUser == ${TRUE}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 2" "Text" "$(TEXT_EXTERNAL_${component}_${SETUPTYPE_NAME})"
|
||||
${else}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 2" "Text" "$(TEXT_EXTERNAL_${component}_${SETUPTYPE_NAME}) $(TEXT_EXTERNAL_NOPRIVILEDGES)"
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 2" "Flags" "DISABLED"
|
||||
${endif}
|
||||
!endif
|
||||
|
||||
!macroend
|
||||
|
||||
!macro InitDialogExternalDir component currentuser_possible
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 4" "State" $Path${component}
|
||||
|
||||
!if ${currentuser_possible} == ${FALSE}
|
||||
${if} $AdminOrPowerUser == ${TRUE}
|
||||
!endif
|
||||
|
||||
${if} $Path${component} == ""
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 2" "State" "1"
|
||||
${else}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 3" "State" "1"
|
||||
${endif}
|
||||
|
||||
!if ${currentuser_possible} == ${FALSE}
|
||||
${else}
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "external_${component}.ini" "Field 3" "State" "1"
|
||||
${endif}
|
||||
!endif
|
||||
|
||||
!macroend
|
||||
|
||||
;--------------------------------
|
||||
;Functions
|
||||
|
||||
Function InitDialogs
|
||||
|
||||
;Extract dialogs
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\user.ini" "user.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\reinstall.ini" "reinstall.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\external.ini" "external_latex.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\external.ini" "external_imagemagick.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\external.ini" "external_ghostscript.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\viewer.ini" "viewer.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "dialogs\langselect.ini" "langselect.ini"
|
||||
|
||||
;Write texts
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "user.ini" "Field 1" "Text" $(TEXT_USER_INFO)
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "user.ini" "Field 2" "Text" $(TEXT_USER_CURRENT)
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "user.ini" "Field 3" "Text" $(TEXT_USER_ALL)
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "reinstall.ini" "Field 1" "Text" $(TEXT_REINSTALL_INFO)
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "reinstall.ini" "Field 2" "Text" $(TEXT_REINSTALL_ENABLE)
|
||||
|
||||
!insertmacro InitDialogExternal latex ${TRUE}
|
||||
!insertmacro InitDialogExternal imagemagick ${FALSE}
|
||||
!insertmacro InitDialogExternal ghostscript ${FALSE}
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "viewer.ini" "Field 1" "Text" $(TEXT_VIEWER_INFO_${SETUPTYPE_NAME})
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "viewer.ini" "Field 2" "Text" $(TEXT_VIEWER_${SETUPTYPE_NAME})
|
||||
|
||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "langselect.ini" "Field 1" "Text" $(TEXT_LANGUAGE_INFO)
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function InitInterface
|
||||
|
||||
Call CheckPriviledges
|
||||
Call InitDialogs
|
||||
Call InitLanguage
|
||||
Call InitSizeExternal
|
||||
Call InitSizeViewer
|
||||
|
||||
FunctionEnd
|
110
development/Win32/packaging/installer/include/lang.nsh
Normal file
110
development/Win32/packaging/installer/include/lang.nsh
Normal file
@ -0,0 +1,110 @@
|
||||
/*
|
||||
|
||||
Language file handling
|
||||
|
||||
*/
|
||||
|
||||
!macro LanguageString name text
|
||||
|
||||
!insertmacro ReDef "${name}" "${text}"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro LanguageStringAdd lang_name name
|
||||
|
||||
;Takes a define and puts that into a language string
|
||||
LangString "${name}" "${LANG_${lang_name}}" "${${name}}"
|
||||
!undef "${name}"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro LanguageStringCreateExternal component
|
||||
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_TITLE
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_SUBTITLE
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_INFO_${SETUPTYPE_NAME}
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_${SETUPTYPE_NAME}
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_FOLDER
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_FOLDER_INFO
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_NONE
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_${component}_NOTFOUND
|
||||
|
||||
!macroend
|
||||
|
||||
!macro LanguageStringCreate lang_name
|
||||
|
||||
;Creates all language strings
|
||||
!insertmacro ReDef LanguageStringAdd '!insertmacro LanguageStringAdd "${lang_name}"'
|
||||
|
||||
${LanguageStringAdd} TEXT_NO_PRIVILEDGES
|
||||
|
||||
${LanguageStringAdd} TEXT_WELCOME_${SETUPTYPE_NAME}
|
||||
|
||||
${LanguageStringAdd} TEXT_USER_TITLE
|
||||
${LanguageStringAdd} TEXT_USER_SUBTITLE
|
||||
${LanguageStringAdd} TEXT_USER_INFO
|
||||
${LanguageStringAdd} TEXT_USER_CURRENT
|
||||
${LanguageStringAdd} TEXT_USER_ALL
|
||||
|
||||
${LanguageStringAdd} TEXT_REINSTALL_TITLE
|
||||
${LanguageStringAdd} TEXT_REINSTALL_SUBTITLE
|
||||
${LanguageStringAdd} TEXT_REINSTALL_INFO
|
||||
${LanguageStringAdd} TEXT_REINSTALL_ENABLE
|
||||
|
||||
${LanguageStringAdd} TEXT_EXTERNAL_NOPRIVILEDGES
|
||||
|
||||
!insertmacro LanguageStringCreateExternal LaTeX
|
||||
!insertmacro LanguageStringCreateExternal ImageMagick
|
||||
!insertmacro LanguageStringCreateExternal Ghostscript
|
||||
|
||||
${LanguageStringAdd} TEXT_VIEWER_TITLE
|
||||
${LanguageStringAdd} TEXT_VIEWER_SUBTITLE
|
||||
${LanguageStringAdd} TEXT_VIEWER_INFO_${SETUPTYPE_NAME}
|
||||
${LanguageStringAdd} TEXT_VIEWER_${SETUPTYPE_NAME}
|
||||
|
||||
${LanguageStringAdd} TEXT_DICT_TITLE
|
||||
${LanguageStringAdd} TEXT_DICT_SUBTITLE
|
||||
${LanguageStringAdd} TEXT_DICT_TOP
|
||||
${LanguageStringAdd} TEXT_DICT_LIST
|
||||
|
||||
${LanguageStringAdd} TEXT_LANGUAGE_TITLE
|
||||
${LanguageStringAdd} TEXT_LANGUAGE_SUBTITLE
|
||||
${LanguageStringAdd} TEXT_LANGUAGE_INFO
|
||||
|
||||
!ifndef SETUPTYPE_BUNDLE
|
||||
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_LATEX
|
||||
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_IMAGEMAGICK
|
||||
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_GHOSTSCRIPT
|
||||
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_VIEWER
|
||||
!endif
|
||||
${LanguageStringAdd} TEXT_DOWNLOAD_FAILED_DICT
|
||||
|
||||
${LanguageStringAdd} TEXT_NOTINSTALLED_LATEX
|
||||
${LanguageStringAdd} TEXT_NOTINSTALLED_IMAGEMAGICK
|
||||
${LanguageStringAdd} TEXT_NOTINSTALLED_GHOSTSCRIPT
|
||||
${LanguageStringAdd} TEXT_NOTINSTALLED_VIEWER
|
||||
${LanguageStringAdd} TEXT_NOTINSTALLED_DICT
|
||||
|
||||
${LanguageStringAdd} TEXT_FINISH_DESKTOP
|
||||
${LanguageStringAdd} TEXT_FINISH_WEBSITE
|
||||
|
||||
${LanguageStringAdd} UNTEXT_WELCOME
|
||||
|
||||
!macroend
|
||||
|
||||
!macro IncludeLang langname
|
||||
|
||||
!ifndef DICT_NAME
|
||||
!define DICT_NAME $R1
|
||||
!endif
|
||||
|
||||
;Include both NSIS/LyX language file
|
||||
|
||||
!insertmacro MUI_LANGUAGE "${langname}"
|
||||
|
||||
!include "lang\${langname}.nsh"
|
||||
!include "lang\English.nsh" ;Use English for missing strings in translation
|
||||
|
||||
!insertmacro LanguageStringCreate "${langname}"
|
||||
|
||||
!macroend
|
82
development/Win32/packaging/installer/include/windows.nsh
Normal file
82
development/Win32/packaging/installer/include/windows.nsh
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
|
||||
Checks for Windows version
|
||||
|
||||
*/
|
||||
|
||||
Function CheckWindows
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
|
||||
;Check for Windows NT 5.0 or later (2000, XP, 2003 etc.)
|
||||
|
||||
ReadRegStr $R0 HKLM "Software\Microsoft\Windows NT\CurrentVersion" "CurrentVersion"
|
||||
${VersionCompare} $R0 "5.0" $R1
|
||||
|
||||
${if} $R1 == "2"
|
||||
MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} only supports Windows 2000, XP, 2003 and later."
|
||||
Quit
|
||||
${endif}
|
||||
|
||||
Pop $R1
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function CheckPriviledges
|
||||
|
||||
Push $R0
|
||||
|
||||
UserInfo::GetAccountType
|
||||
Pop $R0
|
||||
|
||||
${if} $R0 == "Admin"
|
||||
StrCpy $AdminOrPowerUser ${TRUE}
|
||||
${elseif} $R0 == "Power"
|
||||
StrCpy $AdminOrPowerUser ${TRUE}
|
||||
${else}
|
||||
StrCpy $AdminOrPowerUser ${FALSE}
|
||||
${endif}
|
||||
|
||||
${if} $AdminOrPowerUser != ${TRUE}
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION $(TEXT_NO_PRIVILEDGES)
|
||||
${endif}
|
||||
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function un.SetShellContext
|
||||
|
||||
Push $R0
|
||||
|
||||
;Set the correct shell context depending on whether LyX has been installed for the current user or all users
|
||||
|
||||
UserInfo::GetAccountType
|
||||
Pop $R0
|
||||
|
||||
${if} $R0 == "Admin"
|
||||
StrCpy $AdminOrPowerUser ${TRUE}
|
||||
${endif}
|
||||
|
||||
${if} $R0 == "Power"
|
||||
StrCpy $AdminOrPowerUser ${TRUE}
|
||||
${endif}
|
||||
|
||||
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}" "UninstallString"
|
||||
|
||||
${if} $R0 != ""
|
||||
${if} $AdminOrPowerUser == ${FALSE}
|
||||
MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} has been installed for all users. Therefore you need Administrator or Power User Priviledges to uninstall."
|
||||
Quit
|
||||
${else}
|
||||
SetShellVarContext all
|
||||
${endif}
|
||||
${else}
|
||||
SetShellVarContext current
|
||||
${endif}
|
||||
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
@ -1,41 +0,0 @@
|
||||
[Settings]
|
||||
NumFields=5
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=5
|
||||
Right=-1
|
||||
Top=0
|
||||
Bottom=10
|
||||
|
||||
[Field 2]
|
||||
Type=RadioButton
|
||||
Left=0
|
||||
Right=-1
|
||||
Top=11
|
||||
Bottom=22
|
||||
State=0
|
||||
Flags=NOTIFY
|
||||
|
||||
[Field 3]
|
||||
Type=RadioButton
|
||||
Left=0
|
||||
Right=-1
|
||||
Top=23
|
||||
Bottom=34
|
||||
Flags=NOTIFY
|
||||
|
||||
[Field 4]
|
||||
Type=RadioButton
|
||||
Left=0
|
||||
Right=-1
|
||||
Top=35
|
||||
Bottom=46
|
||||
Flags=NOTIFY
|
||||
|
||||
[Field 5]
|
||||
Type=DirRequest
|
||||
Left=5
|
||||
Right=-1
|
||||
Top=47
|
||||
Bottom=58
|
@ -1,9 +0,0 @@
|
||||
[Settings]
|
||||
NumFields=1
|
||||
|
||||
[Field 1]
|
||||
Type=Label
|
||||
Left=5
|
||||
Right=-1
|
||||
Top=0
|
||||
Bottom=140
|
@ -1,18 +0,0 @@
|
||||
[Settings]
|
||||
NumFields=2
|
||||
|
||||
[Field 1]
|
||||
Type=GroupBox
|
||||
Left=0
|
||||
Right=160
|
||||
Top=0
|
||||
Bottom=-4
|
||||
Text=" Available Languages "
|
||||
|
||||
[Field 2]
|
||||
Type=Droplist
|
||||
ListItems=Dansk|Deutsch|English|Español|Euskara|Français|Italiano|Magyar nyelv|Nederlands|Norsk|Nynorsk|Polski|Româna|Russian|Slovenský|Slovenšcina|Suomi|Türkçe
|
||||
Left=20
|
||||
Right=130
|
||||
Top=15
|
||||
Bottom=130
|
@ -1,75 +0,0 @@
|
||||
; Author: Lilla (lilla@earthlink.net) 2003-06-13
|
||||
; function IsUserAdmin uses plugin \NSIS\PlusgIns\UserInfo.dll
|
||||
; This function is based upon code in \NSIS\Contrib\UserInfo\UserInfo.nsi
|
||||
; This function was tested under NSIS 2 beta 4 (latest CVS as of this writing).
|
||||
;
|
||||
; Usage:
|
||||
; Call IsUserAdmin
|
||||
; Pop $R0 ; at this point $R0 is "true" or "false"
|
||||
;
|
||||
|
||||
; Modified May 2005 by Angus Leeming, placing the original function
|
||||
; body inside a macro and defining functions IsUserAdmin and un.IsUserAdmin
|
||||
; in terms of this macro.
|
||||
; Allows the function us.IsUserAdmin to be used inside the installer.
|
||||
|
||||
!ifndef _IS_USER_ADMIN_NSH_
|
||||
!define _IS_USER_ADMIN_NSH_
|
||||
|
||||
!macro IsUserAdmin_private
|
||||
!define skipBackupLbl "skipBackup_${__LINE__}"
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
Push $R2
|
||||
|
||||
ClearErrors
|
||||
UserInfo::GetName
|
||||
IfErrors Win9x
|
||||
Pop $R1
|
||||
UserInfo::GetAccountType
|
||||
Pop $R2
|
||||
|
||||
StrCmp $R2 "Admin" 0 Continue
|
||||
; Observation: I get here when running Win98SE. (Lilla)
|
||||
; The functions UserInfo.dll looks for are there on Win98 too,
|
||||
; but just don't work. So UserInfo.dll, knowing that admin isn't required
|
||||
; on Win98, returns admin anyway. (per kichik)
|
||||
; MessageBox MB_OK 'User "$R1" is in the Administrators group'
|
||||
StrCpy $R0 "true"
|
||||
Goto Done
|
||||
|
||||
Continue:
|
||||
; You should still check for an empty string because the functions
|
||||
; UserInfo.dll looks for may not be present on Windows 95. (per kichik)
|
||||
StrCmp $R2 "" Win9x
|
||||
StrCpy $R0 "false"
|
||||
;MessageBox MB_OK 'User "$R1" is in the "$R2" group'
|
||||
Goto Done
|
||||
|
||||
Win9x:
|
||||
; comment/message below is by UserInfo.nsi author:
|
||||
; This one means you don't need to care about admin or
|
||||
; not admin because Windows 9x doesn't either
|
||||
;MessageBox MB_OK "Error! This DLL can't run under Windows 9x!"
|
||||
StrCpy $R0 "true"
|
||||
|
||||
Done:
|
||||
;MessageBox MB_OK 'User= "$R1" AccountType= "$R2" IsUserAdmin= "$R0"'
|
||||
|
||||
Pop $R2
|
||||
Pop $R1
|
||||
Exch $R0
|
||||
|
||||
!undef skipBackupLbl
|
||||
!macroend
|
||||
|
||||
Function IsUserAdmin
|
||||
!insertmacro IsUserAdmin_private
|
||||
FunctionEnd
|
||||
|
||||
Function un.IsUserAdmin
|
||||
!insertmacro IsUserAdmin_private
|
||||
FunctionEnd
|
||||
|
||||
!endif ; _IS_USER_ADMIN_NSH_
|
91
development/Win32/packaging/installer/lang/english.nsh
Normal file
91
development/Win32/packaging/installer/lang/english.nsh
Normal file
@ -0,0 +1,91 @@
|
||||
/*
|
||||
|
||||
LyX Installer Language File
|
||||
Language: English
|
||||
Author: Joost Verburg
|
||||
|
||||
*/
|
||||
|
||||
!insertmacro LanguageString TEXT_NO_PRIVILEDGES "You do not have Administrator or Power User priviledges.$\r$\n$\r$\nAlthough you can install ${APP_NAME} and the typesetting system, the utilities for image conversion and previewing cannot be installed without these priviledges."
|
||||
|
||||
!insertmacro LanguageString TEXT_WELCOME_DOWNLOAD "This wizard will guide you through the installation of $(^NameDA), the document processor that encourages an approach to writing based on the structure of your documents, not their appearance.\r\n\r\nThis installer will setup a complete environment to use ${APP_NAME} and can download missing components automatically.\r\n\r\n$(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_WELCOME_INSTALL "This wizard will guide you through the installation of $(^NameDA), the document processor that encourages an approach to writing based on the structure of your documents, not their appearance.\r\n\r\nThis installer will setup a complete environment to use ${APP_NAME} and can install missing components automatically.\r\n\r\n$(^ClickNext)"
|
||||
|
||||
!insertmacro LanguageString TEXT_USER_TITLE "Choose Users"
|
||||
!insertmacro LanguageString TEXT_USER_SUBTITLE "Choose for which users want to install $(^NameDA)."
|
||||
!insertmacro LanguageString TEXT_USER_INFO "Select whether want to install $(^NameDA) for yourself only or for all users on this sytem. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_USER_CURRENT "Install just for me"
|
||||
!insertmacro LanguageString TEXT_USER_ALL "Install for anyone using this computer"
|
||||
|
||||
!insertmacro LanguageString TEXT_REINSTALL_TITLE "Reinstall"
|
||||
!insertmacro LanguageString TEXT_REINSTALL_SUBTITLE "Choose whether you want to reinstall the $(^NameDA) program files."
|
||||
!insertmacro LanguageString TEXT_REINSTALL_INFO "$(^NameDA) is already installed. This installer will allow you to change the interface language, locations of external applications or download additional dictionaries. If you also want to reinstall the program files, check the box below. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_REINSTALL_ENABLE "Reinstall $(^NameDA) program files"
|
||||
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_NOPRIVILEDGES "(Administrator or Power User priviledges required)"
|
||||
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_TITLE "LaTeX Typesetting System"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_SUBTITLE "A typesetting system is required to be able to create documents for printing or publishing."
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_INFO_DOWNLOAD "Please specify whether you want to download MiKTeX or want to use an existing LaTeX system. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_INFO_INSTALL "Please specify whether you want to install MiKTeX or want to use an existing LaTeX system. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_DOWNLOAD "Download MiKTeX"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_INSTALL "Install MiKTeX"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_FOLDER "Use an existing LaTeX system in the following folder:"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_FOLDER_INFO "This folder should contain ${BIN_LATEX}."
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_NONE "Install without a LaTeX typesetting system (not recommended)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_LATEX_NOTFOUND "${BIN_LATEX} does not exist in the folder you specified."
|
||||
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_TITLE "ImageMagick"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_SUBTITLE "ImageMagick is required to support various image formats."
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_INFO_DOWNLOAD "Please specify whether you want to download ImageMagick or have it already installed. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_INFO_INSTALL "Please specify whether you want to install ImageMagick or have it already installed. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_DOWNLOAD "Download ImageMagick"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_INSTALL "Install ImageMagick"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_FOLDER "Use an existing ImageMagick installation in the following folder:"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_FOLDER_INFO "This folder should contain ${BIN_IMAGEMAGICK}."
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_NONE "Install without ImageMagick (not recommended)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_IMAGEMAGICK_NOTFOUND "${BIN_IMAGEMAGICK} does not exist in the folder you specified."
|
||||
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_TITLE "Ghostscript"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_SUBTITLE "Ghostscript is required to preview images in PostScript format."
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_INFO_DOWNLOAD "Please specify whether you want to download Ghostscript or have it already installed. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_INFO_INSTALL "Please specify whether you want to install Ghostscript or have it already installed. $(^ClickNext)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_DOWNLOAD "Download Ghostscript"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_INSTALL "Install Ghostscript"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_FOLDER "Use an existing Ghostscript installation in the following folder:"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_FOLDER_INFO "This folder should contain ${BIN_GHOSTSCRIPT}."
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_NONE "Install without GhostScript (not recommended)"
|
||||
!insertmacro LanguageString TEXT_EXTERNAL_GHOSTSCRIPT_NOTFOUND "${BIN_GHOSTSCRIPT} does not exist in the folder you specified."
|
||||
|
||||
!insertmacro LanguageString TEXT_VIEWER_TITLE "Document Viewer"
|
||||
!insertmacro LanguageString TEXT_VIEWER_SUBTITLE "A viewer is required to be able to display typeset documents on your screen."
|
||||
!insertmacro LanguageString TEXT_VIEWER_INFO_DOWNLOAD "There is no viewer installed on your system to preview both PDF and Postscript files, which are common formats for typeset documents. If you check the box below, the PDF/Postscript viewer GSView will be downloaded. $_CLICK"
|
||||
!insertmacro LanguageString TEXT_VIEWER_INFO_INSTALL "There is no viewer installed on your system to preview both PDF and Postscript files, which are common formats for typeset documents. If you check the box below, the PDF/Postscript viewer GSView will be installed. $_CLICK"
|
||||
!insertmacro LanguageString TEXT_VIEWER_DOWNLOAD "Download GSView"
|
||||
!insertmacro LanguageString TEXT_VIEWER_INSTALL "Install GSView"
|
||||
|
||||
!insertmacro LanguageString TEXT_DICT_TITLE "Spell Checker Dictionaries"
|
||||
!insertmacro LanguageString TEXT_DICT_SUBTITLE "Choose the languages you want the spell checker to support."
|
||||
!insertmacro LanguageString TEXT_DICT_TOP "In order to spell check documents in a certain language, a dictionary with valid words needs to be downloaded. Select the dictionaries to download. $_CLICK"
|
||||
!insertmacro LanguageString TEXT_DICT_LIST "Select dictionaries to download:"
|
||||
|
||||
!insertmacro LanguageString TEXT_LANGUAGE_TITLE "Choose Language"
|
||||
!insertmacro LanguageString TEXT_LANGUAGE_SUBTITLE "Choose the language in which you want to use $(^NameDA)."
|
||||
!insertmacro LanguageString TEXT_LANGUAGE_INFO "Select the language to use for the ${APP_NAME} interface. $(^ClickNext)"
|
||||
|
||||
!insertmacro LanguageString TEXT_DOWNLOAD_FAILED_LATEX "Downloading MiKTeX failed. Would you like to try again?"
|
||||
!insertmacro LanguageString TEXT_DOWNLOAD_FAILED_IMAGEMAGICK "Downloading ImageMagick failed. Would you like to try again?"
|
||||
!insertmacro LanguageString TEXT_DOWNLOAD_FAILED_GHOSTSCRIPT "Downloading Ghostscript failed. Would you like to try again?"
|
||||
!insertmacro LanguageString TEXT_DOWNLOAD_FAILED_VIEWER "Downloading GSView failed. Would you like to try again?"
|
||||
!insertmacro LanguageString TEXT_DOWNLOAD_FAILED_DICT "Failed to download the ${DICT_NAME} spell checker dictionary. Would you like to try again?"
|
||||
|
||||
!insertmacro LanguageString TEXT_NOTINSTALLED_LATEX "The MiKTeX setup wizard was not completed. Do you want to run MiKTeX setup again?"
|
||||
!insertmacro LanguageString TEXT_NOTINSTALLED_IMAGEMAGICK "TheImageMagick was not completed. Do you want to run ImageMagick setup again?"
|
||||
!insertmacro LanguageString TEXT_NOTINSTALLED_GHOSTSCRIPT "The Ghostscript setup wizard was not completed. Do you want to run Ghostscript setup again?"
|
||||
!insertmacro LanguageString TEXT_NOTINSTALLED_VIEWER "You did not associate GSView with the PDF/Postscript file types. Do you want to run GSView setup again?"
|
||||
!insertmacro LanguageString TEXT_NOTINSTALLED_DICT "The setup wizard of the ${DICT_NAME} spell checker dictionary was not completed. Do you want to run the setup again?"
|
||||
|
||||
!insertmacro LanguageString TEXT_FINISH_DESKTOP "Create desktop shortcut"
|
||||
!insertmacro LanguageString TEXT_FINISH_WEBSITE "Visit lyx.org for the latest news, support and tips"
|
||||
|
||||
!insertmacro LanguageString UNTEXT_WELCOME "This wizard will guide you through the uninstallation of $(^NameDA). Please close $(^NameDA) before you continue.\r\n\r\nNote that this wizard will only uninstall LyX itself. If you want to uninstall other applications you installed for use with LyX, uninstall them using their entry in Add/Remove Programs.\r\n\r\n$_CLICK"
|
292
development/Win32/packaging/installer/license.rtf
Normal file
292
development/Win32/packaging/installer/license.rtf
Normal file
@ -0,0 +1,292 @@
|
||||
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fswiss\fcharset0 Arial;}{\f2\fnil\fcharset2 Symbol;}}
|
||||
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\qc\b\f0\fs24 LyX Windows Distribution License Agreement\b0\fs36\par
|
||||
\pard\fs16\par
|
||||
\pard\qc This Windows distribution of LyX contains:\par
|
||||
\pard\par
|
||||
\pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\fi-720\li720 LyX. You can redistribute LyX and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
|
||||
{\pntext\f2\'B7\tab}Components of MSYS. You can redistribute MSYS and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
|
||||
{\pntext\f2\'B7\tab}Components of Python 2.4. You can redistribute Python 2.4 and/or modify it under the terms of the PSF LICENSE AGREEMENT FOR PYTHON 2.4 as published by the Python Software Foundation.\par
|
||||
{\pntext\f2\'B7\tab}Components of Aspell. You can redistribute Aspell and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.\par
|
||||
{\pntext\f2\'B7\tab}A modified version of the BaKoMa fonts. You can redistribute the BaKoMa fonts under the terms of the BaKoMa Font License.\par
|
||||
{\pntext\f2\'B7\tab}The wasy font 'wasy10.ttf' from the latex-xft font bundle: http://packages.qa.debian.org/l/latex-xft-fonts.html. You can redistribute the latex-xft font bundle and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
|
||||
{\pntext\f2\'B7\tab}Components of Netpbm. You can redistribute Netpbm and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
|
||||
{\pntext\f2\'B7\tab}Components of Dvipost. You can redistribute Dvipost and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
|
||||
{\pntext\f2\'B7\tab}Components of Aiksaurus. You can redistribute Aiksaurus and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
|
||||
\pard\par
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\par
|
||||
\par
|
||||
\pard\qc\b\fs24 GNU GENERAL PUBLIC LICENSE\b0\fs16\par
|
||||
Version 2, June 1991\par
|
||||
\par
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.\par
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\par
|
||||
Everyone is permitted to copy and distribute verbatim copies\par
|
||||
of this license document, but changing it is not allowed.\par
|
||||
\pard\par
|
||||
\b Preamble\b0\par
|
||||
\par
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.\par
|
||||
\par
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.\par
|
||||
\par
|
||||
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.\par
|
||||
\par
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\par
|
||||
\par
|
||||
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.\par
|
||||
\par
|
||||
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.\par
|
||||
\par
|
||||
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.\par
|
||||
\par
|
||||
The precise terms and conditions for copying, distribution and modification follow.\par
|
||||
\page\b GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\b0\par
|
||||
\par
|
||||
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".\par
|
||||
\par
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.\par
|
||||
\par
|
||||
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\par
|
||||
\par
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\par
|
||||
\par
|
||||
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\par
|
||||
\par
|
||||
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\par
|
||||
\par
|
||||
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\par
|
||||
\par
|
||||
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) \page These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\par
|
||||
\par
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.\par
|
||||
\par
|
||||
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\par
|
||||
\par
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\par
|
||||
\par
|
||||
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\par
|
||||
\par
|
||||
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\par
|
||||
\par
|
||||
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\par
|
||||
\par
|
||||
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\par
|
||||
\par
|
||||
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. \page 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\par
|
||||
\par
|
||||
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\par
|
||||
\par
|
||||
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\par
|
||||
\par
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\par
|
||||
\par
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\par
|
||||
\par
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\par
|
||||
\par
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. \page 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\par
|
||||
\par
|
||||
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par
|
||||
\par
|
||||
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\par
|
||||
\par
|
||||
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\par
|
||||
\par
|
||||
\b NO WARRANTY\b0\par
|
||||
\par
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par
|
||||
\par
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\par
|
||||
\par
|
||||
\b END OF TERMS AND CONDITIONS\par
|
||||
\b0\par
|
||||
\pard\qc\b\fs24 GNU LESSER GENERAL PUBLIC LICENSE\b0\fs16\par
|
||||
Version 2.1, February 1999\par
|
||||
\par
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.\par
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\par
|
||||
Everyone is permitted to copy and distribute verbatim copies\par
|
||||
of this license document, but changing it is not allowed.\par
|
||||
\par
|
||||
[This is the first released version of the Lesser GPL. It also counts\par
|
||||
as the successor of the GNU Library Public License, version 2, hence\par
|
||||
the version number 2.1.]\par
|
||||
\pard\b Preamble\b0\par
|
||||
\par
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.\par
|
||||
\par
|
||||
This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.\par
|
||||
\par
|
||||
When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.\par
|
||||
\par
|
||||
To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.\par
|
||||
\par
|
||||
For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.\par
|
||||
\par
|
||||
We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.\par
|
||||
\par
|
||||
To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.\par
|
||||
\par
|
||||
Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.\par
|
||||
\par
|
||||
Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.\par
|
||||
\par
|
||||
When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.\par
|
||||
\par
|
||||
We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.\par
|
||||
\par
|
||||
For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.\par
|
||||
\par
|
||||
In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.\par
|
||||
\par
|
||||
Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.\par
|
||||
\par
|
||||
The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.\par
|
||||
\par
|
||||
\b TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\b0\par
|
||||
\par
|
||||
0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".\par
|
||||
\par
|
||||
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.\par
|
||||
\par
|
||||
The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)\par
|
||||
\par
|
||||
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.\par
|
||||
\par
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.\par
|
||||
\par
|
||||
1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.\par
|
||||
\par
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\par
|
||||
\par
|
||||
2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\par
|
||||
\par
|
||||
* a) The modified work must itself be a software library.\par
|
||||
* b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.\par
|
||||
* c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.\par
|
||||
* d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.\par
|
||||
\par
|
||||
(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)\par
|
||||
\par
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\par
|
||||
\par
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.\par
|
||||
\par
|
||||
In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. \par
|
||||
\par
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.\par
|
||||
\par
|
||||
Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.\par
|
||||
\par
|
||||
This option is useful when you wish to copy part of the code of the Library into a program that is not a library.\par
|
||||
\par
|
||||
4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.\par
|
||||
\par
|
||||
If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.\par
|
||||
\par
|
||||
5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.\par
|
||||
\par
|
||||
However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.\par
|
||||
\par
|
||||
When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.\par
|
||||
\par
|
||||
If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)\par
|
||||
\par
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.\par
|
||||
\par
|
||||
6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.\par
|
||||
\par
|
||||
You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:\par
|
||||
\par
|
||||
* a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)\par
|
||||
* b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.\par
|
||||
* c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.\par
|
||||
* d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.\par
|
||||
* e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. \par
|
||||
\par
|
||||
For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\par
|
||||
\par
|
||||
It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.\par
|
||||
\par
|
||||
7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:\par
|
||||
\par
|
||||
* a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.\par
|
||||
* b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. \par
|
||||
\par
|
||||
8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\par
|
||||
\par
|
||||
9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.\par
|
||||
\par
|
||||
10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.\par
|
||||
\par
|
||||
11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.\par
|
||||
\par
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.\par
|
||||
\par
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\par
|
||||
\par
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\par
|
||||
\par
|
||||
12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\par
|
||||
\par
|
||||
13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par
|
||||
\par
|
||||
Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.\par
|
||||
\par
|
||||
14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\par
|
||||
\par
|
||||
\b NO WARRANTY\b0\par
|
||||
\par
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par
|
||||
\par
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\par
|
||||
\par
|
||||
\b END OF TERMS AND CONDITIONS\b0\par
|
||||
\par
|
||||
\par
|
||||
\pard\qc\b\fs24 PSF LICENSE AGREEMENT FOR PYTHON 2.4\b0\fs16\par
|
||||
\pard\par
|
||||
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 2.4 software in source or binary form and its associated documentation.\par
|
||||
\par
|
||||
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 2.4 alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved" are retained in Python 2.4 alone or in any derivative version prepared by Licensee.\par
|
||||
\par
|
||||
3. In the event Licensee prepares a derivative work that is based on or incorporates Python 2.4 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 2.4.\par
|
||||
\par
|
||||
4. PSF is making Python 2.4 available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.4 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\par
|
||||
\par
|
||||
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 2.4 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.4, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.\par
|
||||
\par
|
||||
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.\par
|
||||
\par
|
||||
7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.\par
|
||||
\par
|
||||
8. By copying, installing or otherwise using Python 2.4, Licensee agrees to be bound by the terms and conditions of this License Agreement.\par
|
||||
\par
|
||||
\pard\qc\b\fs24 BaKoMa Fonts License\par
|
||||
\pard\b0\fs16\par
|
||||
This licence covers two font packs (known as BaKoMa Fonts Colelction, which is available at `CTAN:fonts/cm/ps-type1/bakoma/'):\par
|
||||
\par
|
||||
1) BaKoMa-CM (1.1/12-Nov-94)\par
|
||||
Computer Modern Fonts in PostScript Type 1 and TrueType font formats.\par
|
||||
\par
|
||||
2) BaKoMa-AMS (1.2/19-Jan-95)\par
|
||||
AMS TeX fonts in PostScript Type 1 and TrueType font formats.\par
|
||||
\par
|
||||
Copyright (C) 1994, 1995, Basil K. Malyshev. All Rights Reserved.\par
|
||||
\par
|
||||
Permission to copy and distribute these fonts for any purpose is hereby granted without fee, provided that the above copyright notice, author statement and this permission notice appear in all copies of these fonts and related documentation.\par
|
||||
\par
|
||||
Permission to modify and distribute modified fonts for any purpose is hereby granted without fee, provided that the copyright notice, author statement, this permission notice and location of original fonts (http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma) appear in all copies of modified fonts and related documentation.\par
|
||||
\par
|
||||
Permission to use these fonts (embedding into PostScript, PDF, SVG and printing by using any software) is hereby granted without fee. It is not required to provide any notices about using these fonts.\par
|
||||
\par
|
||||
Basil K. Malyshev\par
|
||||
INSTITUTE FOR HIGH ENERGY PHYSICS\par
|
||||
IHEP, OMVT\par
|
||||
Moscow Region\par
|
||||
142281 PROTVINO\par
|
||||
RUSSIA\par
|
||||
\par
|
||||
E-Mail: bakoma@mail.ru or malyshev@mail.ihep.ru\f1\par
|
||||
}
|
||||
|