diff --git a/INSTALL.Win32 b/INSTALL.Win32 index f69387b2a7..82b0878011 100644 --- a/INSTALL.Win32 +++ b/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 - (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 - 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. - -============================================================================= + \ No newline at end of file diff --git a/development/Win32/packaging/README b/development/Win32/packaging/README deleted file mode 100644 index de117bf226..0000000000 --- a/development/Win32/packaging/README +++ /dev/null @@ -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: - -$ /makensis lyx_installer.nsi - -creating lyx_setup_136.exe ready to ship. - -END README diff --git a/development/Win32/packaging/bakoma/Licence.txt b/development/Win32/packaging/bakoma/Licence.txt new file mode 100644 index 0000000000..89947cf201 --- /dev/null +++ b/development/Win32/packaging/bakoma/Licence.txt @@ -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 \ No newline at end of file diff --git a/development/Win32/packaging/bakoma/Readme.txt b/development/Win32/packaging/bakoma/Readme.txt new file mode 100644 index 0000000000..23596cc50b --- /dev/null +++ b/development/Win32/packaging/bakoma/Readme.txt @@ -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. + diff --git a/development/Win32/packaging/bakoma/cmex10.ttf b/development/Win32/packaging/bakoma/cmex10.ttf new file mode 100644 index 0000000000..e4b468dcd3 Binary files /dev/null and b/development/Win32/packaging/bakoma/cmex10.ttf differ diff --git a/development/Win32/packaging/bakoma/cmmi10.ttf b/development/Win32/packaging/bakoma/cmmi10.ttf new file mode 100644 index 0000000000..af48386a52 Binary files /dev/null and b/development/Win32/packaging/bakoma/cmmi10.ttf differ diff --git a/development/Win32/packaging/bakoma/cmr10.ttf b/development/Win32/packaging/bakoma/cmr10.ttf new file mode 100644 index 0000000000..8bc44966a8 Binary files /dev/null and b/development/Win32/packaging/bakoma/cmr10.ttf differ diff --git a/development/Win32/packaging/bakoma/cmsy10.ttf b/development/Win32/packaging/bakoma/cmsy10.ttf new file mode 100644 index 0000000000..e0f4fa8e84 Binary files /dev/null and b/development/Win32/packaging/bakoma/cmsy10.ttf differ diff --git a/development/Win32/packaging/bakoma/eufm10.ttf b/development/Win32/packaging/bakoma/eufm10.ttf new file mode 100644 index 0000000000..eb126a0697 Binary files /dev/null and b/development/Win32/packaging/bakoma/eufm10.ttf differ diff --git a/development/Win32/packaging/bakoma/msam10.ttf b/development/Win32/packaging/bakoma/msam10.ttf new file mode 100644 index 0000000000..8a83d1f74f Binary files /dev/null and b/development/Win32/packaging/bakoma/msam10.ttf differ diff --git a/development/Win32/packaging/bakoma/msbm10.ttf b/development/Win32/packaging/bakoma/msbm10.ttf new file mode 100644 index 0000000000..728d1e8b04 Binary files /dev/null and b/development/Win32/packaging/bakoma/msbm10.ttf differ diff --git a/development/Win32/packaging/bakoma/wasy10.ttf b/development/Win32/packaging/bakoma/wasy10.ttf new file mode 100644 index 0000000000..8a0626f413 Binary files /dev/null and b/development/Win32/packaging/bakoma/wasy10.ttf differ diff --git a/development/Win32/packaging/build_aspell.sh b/development/Win32/packaging/build_aspell.sh deleted file mode 100644 index 6f6a7991e8..0000000000 --- a/development/Win32/packaging/build_aspell.sh +++ /dev/null @@ -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 *$/{ -//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 diff --git a/development/Win32/packaging/installer/abi_util_fileassoc.nsh b/development/Win32/packaging/installer/abi_util_fileassoc.nsh deleted file mode 100644 index e63e1d5098..0000000000 --- a/development/Win32/packaging/installer/abi_util_fileassoc.nsh +++ /dev/null @@ -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_ diff --git a/development/Win32/packaging/installer/components/configure.nsh b/development/Win32/packaging/installer/components/configure.nsh new file mode 100644 index 0000000000..72b2b0ec56 --- /dev/null +++ b/development/Win32/packaging/installer/components/configure.nsh @@ -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 + \ No newline at end of file diff --git a/development/Win32/packaging/installer/components/core.nsh b/development/Win32/packaging/installer/components/core.nsh new file mode 100644 index 0000000000..5e2b6904c0 --- /dev/null +++ b/development/Win32/packaging/installer/components/core.nsh @@ -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 diff --git a/development/Win32/packaging/installer/components/dicts.nsh b/development/Win32/packaging/installer/components/dicts.nsh new file mode 100644 index 0000000000..aeddc7cee4 --- /dev/null +++ b/development/Win32/packaging/installer/components/dicts.nsh @@ -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 diff --git a/development/Win32/packaging/installer/components/external.nsh b/development/Win32/packaging/installer/components/external.nsh new file mode 100644 index 0000000000..899788441f --- /dev/null +++ b/development/Win32/packaging/installer/components/external.nsh @@ -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 diff --git a/development/Win32/packaging/installer/components/langselect.nsh b/development/Win32/packaging/installer/components/langselect.nsh new file mode 100644 index 0000000000..59068fe15e --- /dev/null +++ b/development/Win32/packaging/installer/components/langselect.nsh @@ -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 \ No newline at end of file diff --git a/development/Win32/packaging/installer/components/reinstall.nsh b/development/Win32/packaging/installer/components/reinstall.nsh new file mode 100644 index 0000000000..bd7e418ff8 --- /dev/null +++ b/development/Win32/packaging/installer/components/reinstall.nsh @@ -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 \ No newline at end of file diff --git a/development/Win32/packaging/installer/components/uninstall.nsh b/development/Win32/packaging/installer/components/uninstall.nsh new file mode 100644 index 0000000000..c28dabf5ee --- /dev/null +++ b/development/Win32/packaging/installer/components/uninstall.nsh @@ -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 diff --git a/development/Win32/packaging/installer/components/user.nsh b/development/Win32/packaging/installer/components/user.nsh new file mode 100644 index 0000000000..14e696adb9 --- /dev/null +++ b/development/Win32/packaging/installer/components/user.nsh @@ -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 \ No newline at end of file diff --git a/development/Win32/packaging/installer/components/viewer.nsh b/development/Win32/packaging/installer/components/viewer.nsh new file mode 100644 index 0000000000..741978bcd5 --- /dev/null +++ b/development/Win32/packaging/installer/components/viewer.nsh @@ -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 diff --git a/development/Win32/packaging/installer/dialogs/external.ini b/development/Win32/packaging/installer/dialogs/external.ini new file mode 100644 index 0000000000..b8ca7e5d96 --- /dev/null +++ b/development/Win32/packaging/installer/dialogs/external.ini @@ -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### + + + diff --git a/development/Win32/packaging/installer/dialogs/langselect.ini b/development/Win32/packaging/installer/dialogs/langselect.ini new file mode 100644 index 0000000000..e8f968c060 --- /dev/null +++ b/development/Win32/packaging/installer/dialogs/langselect.ini @@ -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 diff --git a/development/Win32/packaging/installer/dialogs/reinstall.ini b/development/Win32/packaging/installer/dialogs/reinstall.ini new file mode 100644 index 0000000000..b819473c24 --- /dev/null +++ b/development/Win32/packaging/installer/dialogs/reinstall.ini @@ -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### diff --git a/development/Win32/packaging/installer/dialogs/user.ini b/development/Win32/packaging/installer/dialogs/user.ini new file mode 100644 index 0000000000..f2682157b2 --- /dev/null +++ b/development/Win32/packaging/installer/dialogs/user.ini @@ -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# diff --git a/development/Win32/packaging/installer/dialogs/viewer.ini b/development/Win32/packaging/installer/dialogs/viewer.ini new file mode 100644 index 0000000000..88af970340 --- /dev/null +++ b/development/Win32/packaging/installer/dialogs/viewer.ini @@ -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 diff --git a/development/Win32/packaging/installer/download.nsh b/development/Win32/packaging/installer/download.nsh deleted file mode 100644 index 910433cab6..0000000000 --- a/development/Win32/packaging/installer/download.nsh +++ /dev/null @@ -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_ diff --git a/development/Win32/packaging/installer/graphics/header.bmp b/development/Win32/packaging/installer/graphics/header.bmp new file mode 100644 index 0000000000..7323ccf861 Binary files /dev/null and b/development/Win32/packaging/installer/graphics/header.bmp differ diff --git a/development/Win32/packaging/installer/graphics/wizard.bmp b/development/Win32/packaging/installer/graphics/wizard.bmp new file mode 100644 index 0000000000..a7df8eda40 Binary files /dev/null and b/development/Win32/packaging/installer/graphics/wizard.bmp differ diff --git a/development/Win32/packaging/installer/include/declarations.nsh b/development/Win32/packaging/installer/include/declarations.nsh new file mode 100644 index 0000000000..ea3a70487a --- /dev/null +++ b/development/Win32/packaging/installer/include/declarations.nsh @@ -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" diff --git a/development/Win32/packaging/installer/include/detection.nsh b/development/Win32/packaging/installer/include/detection.nsh new file mode 100644 index 0000000000..cb1be9b2fb --- /dev/null +++ b/development/Win32/packaging/installer/include/detection.nsh @@ -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 \ No newline at end of file diff --git a/development/Win32/packaging/installer/include/filelists.nsh b/development/Win32/packaging/installer/include/filelists.nsh new file mode 100644 index 0000000000..a2bb0ea90b --- /dev/null +++ b/development/Win32/packaging/installer/include/filelists.nsh @@ -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 diff --git a/development/Win32/packaging/installer/include/gui.nsh b/development/Win32/packaging/installer/include/gui.nsh new file mode 100644 index 0000000000..06a3b33fc9 --- /dev/null +++ b/development/Win32/packaging/installer/include/gui.nsh @@ -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 diff --git a/development/Win32/packaging/installer/include/lang.nsh b/development/Win32/packaging/installer/include/lang.nsh new file mode 100644 index 0000000000..5e79065865 --- /dev/null +++ b/development/Win32/packaging/installer/include/lang.nsh @@ -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 diff --git a/development/Win32/packaging/installer/include/windows.nsh b/development/Win32/packaging/installer/include/windows.nsh new file mode 100644 index 0000000000..7c4a3534c8 --- /dev/null +++ b/development/Win32/packaging/installer/include/windows.nsh @@ -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 diff --git a/development/Win32/packaging/installer/io_download.ini b/development/Win32/packaging/installer/io_download.ini deleted file mode 100644 index 3d568e93c2..0000000000 --- a/development/Win32/packaging/installer/io_download.ini +++ /dev/null @@ -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 diff --git a/development/Win32/packaging/installer/io_summary.ini b/development/Win32/packaging/installer/io_summary.ini deleted file mode 100644 index 92e85b880b..0000000000 --- a/development/Win32/packaging/installer/io_summary.ini +++ /dev/null @@ -1,9 +0,0 @@ -[Settings] -NumFields=1 - -[Field 1] -Type=Label -Left=5 -Right=-1 -Top=0 -Bottom=140 diff --git a/development/Win32/packaging/installer/io_ui_language.ini b/development/Win32/packaging/installer/io_ui_language.ini deleted file mode 100644 index 43783df89f..0000000000 --- a/development/Win32/packaging/installer/io_ui_language.ini +++ /dev/null @@ -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 diff --git a/development/Win32/packaging/installer/is_user_admin.nsh b/development/Win32/packaging/installer/is_user_admin.nsh deleted file mode 100644 index 80e206bac3..0000000000 --- a/development/Win32/packaging/installer/is_user_admin.nsh +++ /dev/null @@ -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_ diff --git a/development/Win32/packaging/installer/lang/english.nsh b/development/Win32/packaging/installer/lang/english.nsh new file mode 100644 index 0000000000..67bbce0426 --- /dev/null +++ b/development/Win32/packaging/installer/lang/english.nsh @@ -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" diff --git a/development/Win32/packaging/installer/license.rtf b/development/Win32/packaging/installer/license.rtf new file mode 100644 index 0000000000..b08dab64f9 --- /dev/null +++ b/development/Win32/packaging/installer/license.rtf @@ -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 +} + \ No newline at end of file diff --git a/development/Win32/packaging/installer/lyx.nsi b/development/Win32/packaging/installer/lyx.nsi new file mode 100644 index 0000000000..97f5e54d5d --- /dev/null +++ b/development/Win32/packaging/installer/lyx.nsi @@ -0,0 +1,41 @@ +/* + +NSIS Script - LyX 1.4 Installer for Win32 +Authors: Joost Verburg, Angus Leeming, Uwe Stöhr +Requires NSIS 2.16 or later + +Licence details for all installer scripts can be found +in the file COPYING or at http://www.lyx.org/about/license.php + +*/ + +!include "include\declarations.nsh" + +OutFile "${SETUP_EXE}" + +;-------------------------------- +;Functions + +Function .onInit + ;!insertmacro MUI_LANGDLL_DISPLAY + Call CheckWindows + Call SearchAll +FunctionEnd + +Function un.onInit + !insertmacro MUI_UNGETLANGUAGE + Call un.SetShellContext +FunctionEnd + +;-------------------------------- +;Components + +!include "components\core.nsh" +!include "components\user.nsh" +!include "components\reinstall.nsh" +!include "components\external.nsh" +!include "components\viewer.nsh" +!include "components\dicts.nsh" +!include "components\langselect.nsh" +!include "components\configure.nsh" +!include "components\uninstall.nsh" diff --git a/development/Win32/packaging/installer/lyx_configure.C b/development/Win32/packaging/installer/lyx_configure.C deleted file mode 100644 index 6716b4371b..0000000000 --- a/development/Win32/packaging/installer/lyx_configure.C +++ /dev/null @@ -1,642 +0,0 @@ -// -*- C++ -*- -/* - * \file lyx_configure.C - * 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.php - * - * \author Angus Leeming - * Full author contact details are available in file CREDITS or copy at - * http://www.lyx.org/about/credits.php - * - * Define five functions that can be called from the NSIS installer: - * - * set_path_prefix [ configure_file, path_prefix ] - * create_lyx_bat [ bin_dir, lang ] - * create_relyx_bat [ bin_dir, lang ] - * run_configure [ configure_file, path_prefix ] - * set_env [ var_name, var_value ] - * - * The quantities in [ ... ] are the variables that the functions expect - * to find on the stack. They push "-1" onto the stack on failure and "0" - * onto the stack on success. - * - * Compile the code with - * - * g++ -I/c/Program\ Files/NSIS/Contrib -Wall -shared \ - * lyx_configure.C -o lyx_configure.dll - * - * Compilation requires the exdll.h header file to be installed (here at - * C:\Program Files\NSIS\Contrib\ExDLL\exdll.h). The file can be obtained - * from http://cvs.sourceforge.net/viewcvs.py/nsis/NSIS/Contrib/ExDLL/ - * - * Move the resulting lyx_configure.dll to C:\Program Files\NSIS\Plugins - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include "ExDLL/exdll.h" - - -namespace { - -std::string const subst(std::string const & a, - std::string const & oldstr, - std::string const & newstr) -{ - std::string lstr = a; - std::string::size_type i = 0; - std::string::size_type const olen = oldstr.length(); - while ((i = lstr.find(oldstr, i)) != std::string::npos) { - lstr.replace(i, olen, newstr); - i += newstr.length(); - } - return lstr; -} - - -std::string const basename(std::string const & path) -{ - // Windows recognizes both '/' and '\' as directory separators. - std::string::size_type const final_slash = path.find_last_of("/\\"); - return (final_slash == std::string::npos) ? - path : - path.substr(final_slash+1); -} - - -std::string const dirname(std::string const & path) -{ - // Windows recognizes both '/' and '\' as directory separators. - std::string::size_type const final_slash = path.find_last_of("/\\"); - return (final_slash == std::string::npos) ? - std::string() : - path.substr(0, final_slash); -} - - -std::string const pop_from_stack() -{ - char data[10*MAX_PATH]; - return (popstring(data) == 0) ? data : std::string(); -} - - -void push_to_stack(int const data) -{ - std::ostringstream os; - os << data; - pushstring(os.str().c_str()); -} - - -std::list const tokenize(std::string const & data, - char const separator) -{ - std::list result; - std::string::size_type index = 0; - while (true) { - std::string::size_type const end = data.find(separator, index); - if (end == std::string::npos) { - std::string::size_type const count = - data.size() - index; - std::string const elem = data.substr(index, count); - if (elem.size() > 0) { - result.push_back(elem); - } - break; - } - std::string::size_type const count = end - index; - std::string const elem = data.substr(index, count); - if (elem.size() > 0) { - result.push_back(elem); - } - index = (end+1 == data.size()) ? std::string::npos : end + 1; - } - return result; -} - - -void remove_duplicates(std::list & data) -{ - typedef std::list::iterator iterator; - for (iterator it = data.begin(); it != data.end(); ++it) { - iterator next = it; - ++next; - if (next == data.end()) - break; - iterator end = std::remove(next, data.end(), *it); - data.erase(end, data.end()); - } -} - - -std::string concatenate(std::list const & data, - char const separator) -{ - typedef std::list::const_iterator iterator; - iterator it = data.begin(); - iterator const end = data.end(); - if (it == end) - return std::string(); - - std::ostringstream result; - result << *it; - ++it; - for (; it != end; ++it) { - result << separator << *it; - } - return result.str(); -} - - -std::string const sanitize_win32_path(std::string const & in) -{ - std::string out = subst(in, "/", "\\"); - // Replace multiple adjacent directory separators with a single one - typedef std::string::size_type size_type; - size_type offset = 0; - while (offset != std::string::npos) { - size_type const slash = out.find_first_of('\\', offset); - if (slash == std::string::npos) - break; - size_type const slash_end = out.find_first_not_of('\\', slash); - - if (slash_end == std::string::npos) { - // Remove all trailing '\' characters - out = out.substr(0, slash); - break; - - } else { - size_type const count = slash_end - (slash + 1); - if (count > 0) - out.erase(slash + 1, count); - } - offset = slash + 1; - } - - return out; -} - - -std::string const sanitize_path_envvar(std::string const & in) -{ - // A Windows PATH environment variable has elements separated - // by a ';' character. - typedef std::list string_list; - string_list envvar = tokenize(in, ';'); - - // Ensure that each PATH element uses '\' directory separators - // and doesn't end in a '\'. - string_list::iterator const end = envvar.end(); - for (string_list::iterator it = envvar.begin(); it != end; ++it) { - std::string const new_path = sanitize_win32_path(*it); - *it = new_path; - } - - remove_duplicates(envvar); - return concatenate(envvar, ';'); -} - - -bool replace_path_prefix(std::string & data, - std::string::size_type const prefix_pos, - std::string const & path_prefix) -{ - std::string::size_type start_prefix = - data.find_first_of('"', prefix_pos); - if (start_prefix == std::string::npos) - return false; - start_prefix += 1; - - std::string::size_type end_line = - data.find_first_of('\n', prefix_pos); - if (end_line == std::string::npos) - return false; - - std::string::size_type end_prefix = - data.find_last_of('"', end_line); - if (end_prefix == std::string::npos || end_prefix == start_prefix) - return false; - - std::string::size_type const count = end_prefix - start_prefix; - std::string const old_prefix = data.substr(start_prefix, count); - // The configure script needs to see '\\' for each '\' directory - // separator. - std::string const prefix = - subst(sanitize_path_envvar(path_prefix + ';' + old_prefix), - "\\", "\\\\"); - - data.erase(start_prefix, count); - data.insert(start_prefix, prefix); - - return true; -} - - -bool insert_path_prefix(std::string & data, - std::string::size_type const xfonts_pos, - std::string const & path_prefix) -{ - std::string::size_type const xfonts_start = - data.find_last_of('\n', xfonts_pos); - - if (xfonts_start == std::string::npos) - return false; - - // The configure script needs to see '\\' for each '\' directory - // separator. - std::string const prefix = - subst(sanitize_path_envvar(path_prefix), "\\", "\\\\"); - - std::ostringstream ss; - ss << data.substr(0, xfonts_start) - << "\n" - "cat >>$outfile < cval(MAX_PATH, '\0'); - DWORD size = GetEnvironmentVariable(var.c_str(), - &*cval.begin(), - cval.size()); - - if (size == 0) - // The specified variable was not found. - return false; - - if (size > cval.size()) { - // Insufficient size in the buffer to store the var - // so resize to the required size. - cval.resize(size, '\0'); - size = GetEnvironmentVariable(var.c_str(), - &*cval.begin(), - cval.size()); - if (size == 0 || size > cval.size()) - // Give up - return false; - } - - val.assign(cval.begin(), cval.begin() + size); - return true; -} - - -// Inserts code into "configure" to output "path_prefix" to lyxrc.defaults. -// Throws std::runtime_error on failure. -void set_path_prefix(std::string const & configure_file, - std::string const & path_prefix) -{ - std::ifstream ifs(configure_file.c_str()); - if (!ifs) { - std::ostringstream ss; - ss << "Unable to open " << configure_file << " for reading"; - throw std::runtime_error(ss.str()); - } - - std::istreambuf_iterator const begin_ifs(ifs); - std::istreambuf_iterator const end_ifs; - std::string configure_data(begin_ifs, end_ifs); - ifs.close(); - - // Does configure already contain a "path_prefix" entry - // or should we insert one? - std::string::size_type const prefix_pos = - configure_data.find("path_prefix"); - if (prefix_pos != std::string::npos) { - if (!replace_path_prefix(configure_data, prefix_pos, path_prefix)) { - std::ostringstream ss; - ss << "Unable to replace the existing path_prefix in " - << configure_file; - throw std::runtime_error(ss.str()); - } - } else { - std::string::size_type const xfonts_pos = - configure_data.find("if [ \"x$use_cygwin_path_fix"); - - if (xfonts_pos == std::string::npos) { - std::ostringstream ss; - ss << "Unable to find a position to insert the " - "path_prefix entry in " - << configure_file; - throw std::runtime_error(ss.str()); - } - - if (!insert_path_prefix(configure_data, xfonts_pos, path_prefix)) { - std::ostringstream ss; - ss << "Unable to insert a new path_prefix in " - << configure_file; - throw std::runtime_error(ss.str()); - } - } - - std::ofstream ofs(configure_file.c_str()); - if (!ofs) { - std::ostringstream ss; - ss << "Unable to open " << configure_file << " for writing"; - throw std::runtime_error(ss.str()); - } - - ofs << configure_data; - if (!ofs) { - std::ostringstream ss; - ss << "Failed to write " << configure_file; - throw std::runtime_error(ss.str()); - } -} - - -// Creates the lyx.bat file in the LyX\bin folder. -// Throws std::runtime_error on failure. -void create_lyx_bat(std::string const & bin_dir, std::string const & lang) -{ - std::string const lyx_bat_file = bin_dir + "\\lyx.bat"; - std::ofstream ofs(lyx_bat_file.c_str()); - if (!ofs) { - std::ostringstream ss; - ss << "Unable to unable to open " - << lyx_bat_file << " for writing"; - throw std::runtime_error(ss.str()); - } - - ofs << "@echo off\n" - << "if \"%LANG%\"==\"\" SET LANG=" << lang << "\n"; - - std::string const lyx_exe_file = bin_dir + "\\lyx.exe"; - if (!write_bat(ofs, "start \"LyX\" \"" + lyx_exe_file + "\"")) { - std::ostringstream ss; - ss << "Failed to write to " << lyx_bat_file; - throw std::runtime_error(ss.str()); - } -} - - -// Creates the reLyX.bat file in the LyX\bin folder. -// Throws std::runtime_error on failure. -void create_relyx_bat(std::string const & bin_dir, std::string const & lang) -{ - std::string const relyx_bat_file = bin_dir + "\\reLyX.bat"; - std::ofstream ofs(relyx_bat_file.c_str()); - if (!ofs) { - std::ostringstream ss; - ss << "Unable to unable to open " - << relyx_bat_file << " for writing"; - throw std::runtime_error(ss.str()); - } - - std::string relyx_file = bin_dir + "\\reLyX"; - std::string relyx = "perl.exe \"" + relyx_file + "\""; - if (!write_bat(ofs, "perl.exe \"" + relyx_file + "\"")) { - std::ostringstream ss; - ss << "Failed to write to " << relyx_bat_file; - throw std::runtime_error(ss.str()); - } -} - - -// Runs "sh configure" to generate things like lyxrc.defaults. -// Throws std::runtime_error on failure. -void run_configure(std::string const & abs_configure_file_in, - std::string const & path_prefix) -{ - std::string const abs_configure_file = - sanitize_win32_path(abs_configure_file_in); - std::string const configure_dir = dirname(abs_configure_file); - std::string const configure_file = basename(abs_configure_file); - - if (configure_file.empty() || configure_dir.empty()) { - std::ostringstream ss; - ss << "Invalid path to configure file: " - << abs_configure_file; - throw std::runtime_error(ss.str()); - } - - if (SetCurrentDirectory(configure_dir.c_str()) == 0) { - std::ostringstream ss; - ss << "Unable to cd "<< configure_dir; - throw std::runtime_error(ss.str()); - } - - std::string path; - if (!get_environment_variable("PATH", path)) { - std::ostringstream ss; - ss << "Unable to grab the PATH environment variable"; - throw std::runtime_error(ss.str()); - } - path = sanitize_path_envvar(path_prefix + ';' + path); - if (SetEnvironmentVariable("PATH", path.c_str()) == 0) { - std::ostringstream ss; - ss << "Failed to set the PATH environment variable to:\n" - << path << '\n'; - throw std::runtime_error(ss.str()); - } - - // Even "start /WAIT /B sh.exe configure" returns - // before the script is done, so just invoke "sh" directly. - - // Assumes that configure_file does not need quoting. - std::string const command = std::string("sh.exe ") + configure_file; - if (system(command.c_str()) != 0) { - std::ostringstream ss; - ss << "Failed to run: " << command; - throw std::runtime_error(ss.str()); - } -} - -} // namespace anon - - -//===========================================// -// // -// Below is the public interface to the .dll // -// // -//===========================================// - -BOOL WINAPI DllMain(HANDLE /*hInst*/, - ULONG /*ul_reason_for_call*/, - LPVOID /*lpReserved*/) -{ - return TRUE; -} - - -// Inserts code into "configure" to output "path_prefix" to lyxrc.defaults. -extern "C" -void __declspec(dllexport) set_path_prefix(HWND const /*hwndParent*/, - int const string_size, - char * const variables, - stack_t ** const stacktop) -{ - EXDLL_INIT(); - - std::string const configure_file = pop_from_stack(); - std::string const path_prefix = pop_from_stack(); - if (configure_file.empty() || path_prefix.empty()) { - push_to_stack(-1); - return; - } - - int result = 0; - try { - set_path_prefix(configure_file, path_prefix); - } - catch(std::exception const & ex) { - std::cerr << "ERROR: set_path_prefix:\n\t" - << ex.what() << '\n'; - result = -1; - } - - push_to_stack(result); -} - - -// Creates the lyx.bat file in the LyX\bin folder. -extern "C" -void __declspec(dllexport) create_lyx_bat(HWND const /*hwndParent*/, - int const string_size, - char * const variables, - stack_t ** const stacktop) -{ - EXDLL_INIT(); - - std::string const bin_dir = pop_from_stack(); - std::string const lang = pop_from_stack(); - if (bin_dir.empty() || lang.empty()) { - push_to_stack(-1); - return; - } - - int result = 0; - try { - create_lyx_bat(bin_dir, lang); - } - catch(std::exception const & ex) { - std::cerr << "ERROR: create_lyx_bat:\n\t" - << ex.what() << '\n'; - result = -1; - } - - push_to_stack(result); -} - - -// Creates the reLyX.bat file in the LyX\bin folder. -extern "C" -void __declspec(dllexport) create_relyx_bat(HWND const /*hwndParent*/, - int const string_size, - char * const variables, - stack_t ** const stacktop) -{ - EXDLL_INIT(); - - std::string const bin_dir = pop_from_stack(); - std::string const lang = pop_from_stack(); - if (bin_dir.empty() || lang.empty()) { - push_to_stack(-1); - return; - } - - int result = 0; - try { - create_relyx_bat(bin_dir, lang); - } - catch(std::exception const & ex) { - std::cerr << "ERROR: create_relyx_bat:\n\t" - << ex.what() << '\n'; - result = -1; - } - - push_to_stack(result); -} - - -// Runs "sh configure" to generate things like lyxrc.defaults. -extern "C" -void __declspec(dllexport) run_configure(HWND const /*hwndParent*/, - int const string_size, - char * const variables, - stack_t ** const stacktop) -{ - EXDLL_INIT(); - - std::string const configure_file = pop_from_stack(); - std::string const path_prefix = pop_from_stack(); - if (configure_file.empty() || path_prefix.empty()) { - push_to_stack(-1); - return; - } - - int result = 0; - try { - run_configure(configure_file, path_prefix); - } - catch(std::exception const & ex) { - std::cerr << "ERROR: run_configure:\n\t" - << ex.what() << '\n'; - result = -1; - } - - push_to_stack(result); -} - - -// Set an environment variable. -extern "C" -void __declspec(dllexport) set_env(HWND const /*hwndParent*/, - int const string_size, - char * const variables, - stack_t ** const stacktop) -{ - EXDLL_INIT(); - - std::string const var_name = pop_from_stack(); - std::string const var_value = pop_from_stack(); - if (var_name.empty() || var_value.empty()) { - push_to_stack(-1); - return; - } - - // Function returns a nonzero value on success. - int const result = - SetEnvironmentVariableA(var_name.c_str(), var_value.c_str()) ? - 0 : -1; - - push_to_stack(result); -} diff --git a/development/Win32/packaging/installer/lyx_installer.nsi b/development/Win32/packaging/installer/lyx_installer.nsi deleted file mode 100644 index 40efe565ce..0000000000 --- a/development/Win32/packaging/installer/lyx_installer.nsi +++ /dev/null @@ -1,815 +0,0 @@ -; Lyx for Windows, NSIS v2 series installer script - -; File lyx_installer.nsi -; 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 -; Author Uwe Stöhr -; Full author contact details are available in file CREDITS or copy at -; http://www.lyx.org/about/credits.php - -; This script requires NSIS 2.06 and above -; http://nsis.sourceforge.net/ -;-------------------------------- - -; Do a Cyclic Redundancy Check to make sure the installer -; was not corrupted by the download. -CRCCheck force - -; Make the installer as small as possible. -SetCompressor /SOLID lzma - -;-------------------------------- -; You should need to change only these macros... - -!define PRODUCT_NAME "LyX" -!define PRODUCT_VERSION "1.4.1" -!define INSTALLER_VERSION "141" -!define PRODUCT_LICENSE_FILE "..\..\..\..\COPYING" -!define PRODUCT_SOURCEDIR "..\..\..\..\build\installprefix" -!define PRODUCT_EXE "$INSTDIR\bin\lyx.exe" -!define PRODUCT_BAT "$INSTDIR\bin\lyx.bat" -!define PRODUCT_EXT ".lyx" -!define PRODUCT_MIME_TYPE "application/lyx" -!define PRODUCT_UNINSTALL_EXE "$INSTDIR\uninstall.exe" - -!define INSTALLER_EXE "lyx_setup_141.exe" -!define INSTALLER_ICON "..\icons\lyx_32x32.ico" - -; Replaced by HKLM or HKCU depending on SetShellVarContext. -!define PRODUCT_ROOT_KEY "SHCTX" - -!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\lyx.exe" -!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX14" - -;-------------------------------- -; Make some of the information above available to NSIS. - -Name "${PRODUCT_NAME}" -OutFile "${INSTALLER_EXE}" -InstallDir "$PROGRAMFILES\${PRODUCT_NAME}${INSTALLER_VERSION}" - -;-------------------------------- -!include "MUI.nsh" -!include "LogicLib.nsh" -!include "StrFunc.nsh" -!include "strtrim.nsh" -!include "download.nsh" -!include "lyx_utils.nsh" - -; Grabbed from -; http://nsis.sourceforge.net/archive/viewpage.php?pageid=275 -!include "is_user_admin.nsh" - -; Grabbed from -; http://abiword.pchasm.org/source/cvs/abiword-cvs/abi/src/pkg/win/setup/NSISv2/abi_util_fileassoc.nsh -; Use the Abiword macros to help set up associations with the file extension. -; in the Registry. -!include "abi_util_fileassoc.nsh" - -;-------------------------------- -; Declare used functions - -${StrStrAdv} -${StrLoc} -${StrNSISToIO} -${StrRep} -${StrTok} -${StrTrim} -${StrLTrim} -${StrRTrim} -${StrRTrimChar} -${ReadDownloadValues} -${EnableBrowseControls} -${SearchRegistry} -${DownloadEnter} -${DownloadLeave} - -;-------------------------------- -; Variables - -Var MinSYSPath -Var DownloadMinSYS - -Var PythonPath -Var DownloadPython - -Var DoNotRequireMiKTeX -Var MiKTeXPath -Var DownloadMiKTeX - -Var DoNotRequireGhostscript -Var GhostscriptPath -Var DownloadGhostscript - -Var DoNotRequireImageMagick -Var ImageMagickPath -Var DownloadImageMagick - -Var PDFViewerPath - -Var PSViewerPath -Var PSViewerProg - -Var DoNotInstallLyX -Var PathPrefix - -Var CreateFileAssociations -Var CreateDesktopIcon -Var StartmenuFolder -Var ProductRootKey - -Var LangName -Var LangCode - -;-------------------------------- - -; Remember the installer language -!define MUI_LANGDLL_REGISTRY_ROOT "HKCU" -!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" -!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" - -!define MUI_ABORTWARNING -!define MUI_ICON "${INSTALLER_ICON}" -!define MUI_UNICON "${INSTALLER_ICON}" - -; Welcome page -!insertmacro MUI_PAGE_WELCOME - -Page custom DownloadMinSYS DownloadMinSYS_LeaveFunction -Page custom DownloadPython DownloadPython_LeaveFunction -Page custom DownloadMiKTeX DownloadMiKTeX_LeaveFunction -Page custom DownloadGhostscript DownloadGhostscript_LeaveFunction -Page custom DownloadImageMagick DownloadImageMagick_LeaveFunction -Page custom SummariseDownloads SummariseDownloads_LeaveFunction - -; Show the license. -!insertmacro MUI_PAGE_LICENSE "${PRODUCT_LICENSE_FILE}" - -; Specify the installation directory. -!insertmacro MUI_PAGE_DIRECTORY - -; Specify LyX's menu language. -Page custom SelectMenuLanguage SelectMenuLanguage_LeaveFunction - -; Define which components to install. -!insertmacro MUI_PAGE_COMPONENTS - -; Specify where to install program shortcuts. -!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_ROOT_KEY}" -!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" -!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" -!define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${PRODUCT_VERSION}" -!insertmacro MUI_PAGE_STARTMENU ${PRODUCT_NAME} $StartmenuFolder - -; Watch the components being installed. -!insertmacro MUI_PAGE_INSTFILES - -!define MUI_FINISHPAGE_RUN -!define MUI_FINISHPAGE_TEXT_LARGE -!define MUI_FINISHPAGE_TEXT "$(FinishPageMessage)" -!define MUI_FINISHPAGE_RUN_TEXT "$(FinishPageRun)" -!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchProduct" -!insertmacro MUI_PAGE_FINISH - -; The uninstaller. -!insertmacro MUI_UNPAGE_INSTFILES - -;-------------------------------- -; Languages - -!insertmacro MUI_LANGUAGE "English" # first language is the default language -!insertmacro MUI_LANGUAGE "Danish" -!insertmacro MUI_LANGUAGE "German" -!insertmacro MUI_LANGUAGE "Spanish" -!insertmacro MUI_LANGUAGE "French" -!insertmacro MUI_LANGUAGE "Italian" -!insertmacro MUI_LANGUAGE "Dutch" -!insertmacro MUI_LANGUAGE "Polish" -!insertmacro MUI_LANGUAGE "Swedish" - -!include "lyx_languages\english.nsh" -!include "lyx_languages\danish.nsh" -!include "lyx_languages\dutch.nsh" -!include "lyx_languages\french.nsh" -!include "lyx_languages\german.nsh" -!include "lyx_languages\italian.nsh" -!include "lyx_languages\polish.nsh" -!include "lyx_languages\spanish.nsh" -!include "lyx_languages\swedish.nsh" - -LicenseData "$(LyXLicenseData)" - -;-------------------------------- -; Reserve Files - -; These files should be inserted before other files in the data block -; Keep these lines before any File command -; Only for solid compression (by default, solid compression -; is enabled for BZIP2 and LZMA) -ReserveFile "io_download.ini" -ReserveFile "io_summary.ini" -!insertmacro MUI_RESERVEFILE_LANGDLL -ReserveFile "io_ui_language.ini" -!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS - -;-------------------------------- - -Section "!${PRODUCT_NAME}" SecCore - SectionIn RO -SectionEnd - -Section /o "$(SecAllUsersTitle)" SecAllUsers - SetShellVarContext all - StrCpy $ProductRootKey "HKLM" -SectionEnd - -Section "$(SecFileAssocTitle)" SecFileAssoc - StrCpy $CreateFileAssociations "true" -SectionEnd - -Section "$(SecDesktopTitle)" SecDesktop - StrCpy $CreateDesktopIcon "true" -SectionEnd - -; The '-' makes the section invisible. -; Sections are entered in order, so the settings above are all -; available to SecInstallation -Section "-Installation actions" SecInstallation - SetOverwrite on - SetOutPath "$INSTDIR" - File /r "${PRODUCT_SOURCEDIR}\Resources" - File /r "${PRODUCT_SOURCEDIR}\bin" - - ${if} "$PathPrefix" != "" - lyx_configure::set_path_prefix "$INSTDIR\Resources\configure" "$PathPrefix" - Pop $0 - ${if} $0 != 0 - MessageBox MB_OK "$(ModifyingConfigureFailed)" - ${endif} - ${endif} - - lyx_configure::create_lyx_bat "$INSTDIR\bin" "$LangCode" - Pop $0 - ${if} $0 != 0 - MessageBox MB_OK "$(CreateCmdFilesFailed)" - ${endif} - - lyx_configure::run_configure "$INSTDIR\Resources\configure" "$PathPrefix" - Pop $0 - ${if} $0 != 0 - MessageBox MB_OK "$(RunConfigureFailed)" - ${endif} - - WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "${PRODUCT_EXE}" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "RootKey" "$ProductRootKey" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "${PRODUCT_NAME} ${PRODUCT_VERSION}" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "${PRODUCT_UNINSTALL_EXE}" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "${PRODUCT_EXE}" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "StartMenu" "$SMPROGRAMS\$StartmenuFolder" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLUpdateInfo" "http://www.lyx.org/" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "http://www.lyx.org/about/" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "LyX Team" - WriteRegStr ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "HelpLink" "http://www.lyx.org/internet/mailing.php" - WriteRegDWORD ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "NoModify" 0x00000001 - WriteRegDWORD ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "NoRepair" 0x00000001 - - CreateDirectory "$SMPROGRAMS\$StartmenuFolder" - CreateShortCut "$SMPROGRAMS\$StartmenuFolder\${PRODUCT_NAME}.lnk" "${PRODUCT_BAT}" "" "${PRODUCT_EXE}" - CreateShortCut "$SMPROGRAMS\$StartmenuFolder\Uninstall.lnk" "${PRODUCT_UNINSTALL_EXE}" - - ${if} $CreateDesktopIcon == "true" - CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "${PRODUCT_BAT}" "" "${PRODUCT_EXE}" - ${endif} - - ${if} $CreateFileAssociations == "true" - ${CreateApplicationAssociation} \ - "${PRODUCT_NAME}" \ - "${PRODUCT_NAME}" \ - "${PRODUCT_NAME} Document" \ - "${PRODUCT_EXE},1" \ - "${PRODUCT_BAT}" - - ${CreateFileAssociation} "${PRODUCT_EXT}" "${PRODUCT_NAME}" "${PRODUCT_MIME_TYPE}" - ${endif} - - WriteUninstaller "${PRODUCT_UNINSTALL_EXE}" -SectionEnd - -; Section descriptions -!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN - !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "$(SecCoreDescription)" - !insertmacro MUI_DESCRIPTION_TEXT ${SecAllUsers} "$(SecAllUsersDescription)" - !insertmacro MUI_DESCRIPTION_TEXT ${SecFileAssoc} "$(SecFileAssocDescription)" - !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktop} "$(SecDesktopDescription)" -!insertmacro MUI_FUNCTION_DESCRIPTION_END - -;-------------------------------- - -!define MUI_LANGDLL_ALWAYSSHOW - -; This hook function is called internally by NSIS on installer startup -Function .onInit - !insertmacro MUI_LANGDLL_DISPLAY - - !insertmacro MUI_INSTALLOPTIONS_EXTRACT "io_download.ini" - !insertmacro MUI_INSTALLOPTIONS_EXTRACT "io_summary.ini" - !insertmacro MUI_INSTALLOPTIONS_EXTRACT "io_ui_language.ini" - - ; Default settings - ; These can be reset to "all" in section SecAllUsers. - SetShellVarContext current - StrCpy $ProductRootKey "HKCU" - - ; This can be reset to "true" in section SecDesktop. - StrCpy $CreateDesktopIcon "false" - StrCpy $CreateFileAssociations "false" - - ; If the user does *not* have administrator privileges, - ; then make section SecAllUsers readonly. - Call IsUserAdmin - Pop $0 - ${if} $0 == "true" - !define ENABLE 0x00000001 - SectionGetFlags ${SecAllUsers} $0 - IntOp $0 $0 | ${ENABLE} - SectionSetFlags ${SecAllUsers} $0 - !undef ENABLE - ${else} - !define READ_ONLY 0x00000010 - SectionGetFlags ${SecAllUsers} $0 - IntOp $0 $0 | ${READ_ONLY} - SectionSetFlags ${SecAllUsers} $0 - !undef READ_ONLY - ${endif} - - Call SearchMinSYS - Call SearchPython - Call SearchMiKTeX - Call SearchGhostscript - Call SearchImageMagick - Call SearchPDFViewer - Call SearchPSViewer - - ClearErrors -FunctionEnd - -;-------------------------------- - -Function LaunchProduct - lyx_configure::set_env LANG $LangCode - Exec ${PRODUCT_EXE} -FunctionEnd - -;-------------------------------- - -; Sets the value of the global $MinSYSPath variable. -Function SearchMinSYS - ; This function manipulates the registers $0-$3, - ; so push their current content onto the stack. - Push $0 - Push $1 - Push $2 - Push $3 - - ; Search the registry for the MinSYS uninstaller. - ; If successful, put its location in $2. - StrCpy $3 "Software\Microsoft\Windows\CurrentVersion\Uninstall" - StrCpy $2 "" - StrCpy $0 0 - loop: - EnumRegKey $1 HKLM "$3" $0 - ${if} $1 == "" - Goto done - ${endif} - - ${StrLoc} $2 "$1" "MSYS-1.0" "<" - ${if} $2 > 0 - StrCpy $2 "$3\$1" - Goto done - ${else} - StrCpy $2 "" - ${endif} - IntOp $0 $0 + 1 - Goto loop - done: - - ${SearchRegistry} \ - $MinSYSPath \ - "$2" \ - "Inno Setup: App Path" \ - "" \ - "\bin" - - ; Return the $0, $1, $2 and $2 registers to their original state - Pop $3 - Pop $2 - Pop $1 - Pop $0 -FunctionEnd - -Function DownloadMinSYS - StrCpy $DownloadMinSYS "0" - - ${DownloadEnter} \ - $MinSYSPath \ - 0 \ - "$(MinSYSDownloadLabel)" \ - "$(MinSYSFolderLabel)" \ - "$(MinSYSHeader)" \ - "$(MinSYSDescription)" -FunctionEnd - -Function DownloadMinSYS_LeaveFunction - ; This function manipulates the $0 register - ; so push its current content onto the stack. - Push $0 - - ${DownloadLeave} \ - $0 \ - $DownloadMinSYS \ - $MinSYSPath \ - "http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721&release_id=158803" \ - "$(EnterMinSYSFolder)" \ - "sh.exe" \ - "$(InvalidMinSYSFolder)" - - ; Return the $0 register to its original state - Pop $0 -FunctionEnd - -;-------------------------------- - -; Sets the value of the global $PythonPath variable. -Function SearchPython - ${SearchRegistry} \ - $PythonPath \ - "Software\Microsoft\Windows\CurrentVersion\App Paths\Python.exe" \ - "" \ - "\Python.exe" \ - "" -FunctionEnd - -Function DownloadPython - StrCpy $DownloadPython "0" - - ${DownloadEnter} \ - $PythonPath \ - 0 \ - "$(PythonDownloadLabel)" \ - "$(PythonFolderLabel)" \ - "$(PythonHeader)" \ - "$(PythonDescription)" -FunctionEnd - -Function DownloadPython_LeaveFunction - ; This function manipulates the $0 register - ; so push its current content onto the stack. - Push $0 - - ${DownloadLeave} \ - $0 \ - $DownloadPython \ - $PythonPath \ - "http://www.python.org/download/" \ - "$(EnterPythonFolder)" \ - "Python.exe" \ - "$(InvalidPythonFolder)" - - ; Return the $0 register to its original state - Pop $0 -FunctionEnd - -;-------------------------------- - -; Sets the value of the global $MiKTeXPath variable. -Function SearchMiKTeX - ${SearchRegistry} \ - $MiKTeXPath \ - "Software\MiK\MiKTeX\CurrentVersion\MiKTeX" \ - "Install Root" \ - "" \ - "\miktex\bin" -FunctionEnd - -Function DownloadMiKTeX - StrCpy $DoNotRequireMiKTeX "1" - StrCpy $DownloadMiKTeX "0" - - ${DownloadEnter} \ - $MiKTeXPath \ - 1 \ - "$(MiKTeXDownloadLabel)" \ - "$(MiKTeXFolderLabel)" \ - "$(MiKTeXHeader)" \ - "$(MiKTeXDescription)" -FunctionEnd - -Function DownloadMiKTeX_LeaveFunction - ${DownloadLeave} \ - $DoNotRequireMiKTeX \ - $DownloadMiKTeX \ - $MiKTeXPath \ - "http://www.miktex.org/setup.html" \ - "$(EnterMiKTeXFolder)" \ - "latex.exe" \ - "$(InvalidMiKTeXFolder)" -FunctionEnd - -;-------------------------------- - -; Sets the value of the global $GhostscriptPath variable. -Function SearchGhostscript - ; This function manipulates the $0 and $1 registers, - ; so push their current content onto the stack. - Push $0 - Push $1 - - ; Find which version of ghostscript, if any, is installed. - ; Store this value in $0. - StrCpy $0 "" - EnumRegKey $1 HKLM "Software\AFPL Ghostscript" 0 - ${if} $1 != "" - StrCpy $0 "Software\AFPL Ghostscript\$1" - ${else} - EnumRegKey $1 HKLM "Software\GPL Ghostscript" 0 - ${if} $1 != "" - StrCpy $0 "Software\GPL Ghostscript\$1" - ${endif} - ${endif} - - ${SearchRegistry} \ - $GhostscriptPath \ - "$0" \ - "GS_DLL" \ - "\gsdll32.dll" \ - "" - - ; Return the $0 and $1 registers to their original states - Pop $1 - Pop $0 -FunctionEnd - -Function DownloadGhostscript - StrCpy $DoNotRequireGhostscript "1" - StrCpy $DownloadGhostscript "0" - - ; Find which version of ghostscript, if any, is installed. - EnumRegKey $1 HKLM "Software\AFPL Ghostscript" 0 - ${if} $1 == "" - EnumRegKey $1 HKLM "Software\GPL Ghostscript" 0 - StrCpy $2 "True" - ${endif} - ${if} $1 != "" - ${if} $2 == "True" - StrCpy $0 "Software\GPL Ghostscript\$1" - ${else} - StrCpy $0 "Software\AFPL Ghostscript\$1" - ${endif} - ${else} - StrCpy $0 "" - ${endif} - - ${DownloadEnter} \ - $GhostscriptPath \ - 1 \ - "$(GhostscriptDownloadLabel)" \ - "$(GhostscriptFolderLabel)" \ - "$(GhostscriptHeader)" \ - "$(GhostscriptDescription)" -FunctionEnd - -Function DownloadGhostscript_LeaveFunction - ${DownloadLeave} \ - $DoNotRequireGhostscript \ - $DownloadGhostscript \ - $GhostscriptPath \ - "http://www.cs.wisc.edu/~ghost/doc/AFPL/index.htm" \ - "$(EnterGhostscriptFolder)" \ - "gswin32c.exe" \ - "$(InvalidGhostscriptFolder)" -FunctionEnd - -;-------------------------------- - -; Sets the value of the global $ImageMagickPath variable. -Function SearchImageMagick - ${SearchRegistry} \ - $ImageMagickPath \ - "Software\ImageMagick\Current" \ - "BinPath" \ - "" \ - "" -FunctionEnd - -Function DownloadImageMagick - StrCpy $DoNotRequireImageMagick "1" - StrCpy $DownloadImageMagick "0" - - ${DownloadEnter} \ - $ImageMagickPath \ - 1 \ - "$(ImageMagickDownloadLabel)" \ - "$(ImageMagickFolderLabel)" \ - "$(ImageMagickHeader)" \ - "$(ImageMagickDescription)" -FunctionEnd - -Function DownloadImageMagick_LeaveFunction - ${DownloadLeave} \ - $DoNotRequireImageMagick \ - $DownloadImageMagick \ - $ImageMagickPath \ - "http://www.imagemagick.org/script/binary-releases.php" \ - "$(EnterImageMagickFolder)" \ - "convert.exe" \ - "$(InvalidImageMagickFolder)" -FunctionEnd - -;-------------------------------- - -; Sets the value of the global $PDFViewerPath variable. -Function SearchPDFViewer - ; test if a pdf-viewer is installed, only test for Acrobat, Adobe Reader (AroRD32), and GSview32 - StrCpy $PDFViewerPath "" - ReadRegStr $PDFViewerPath HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe" "Path" - ${if} $PDFViewerPath == "" - ReadRegStr $PDFViewerPath HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe" "Path" - ${endif} - ${if} $PDFViewerPath == "" - ReadRegStr $PDFViewerPath HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gsview32.exe" "Path" - ${endif} - StrCpy $0 $PDFViewerPath "" -1 ;remove the "\" at the end - ${if} $0 == "\" - StrCpy $PDFViewerPath $PDFViewerPath -1 - ${endif} -FunctionEnd - -;-------------------------------- - -Function SearchPSViewer - ; This function manipulates the $0 register, - ; so push its current content onto the stack. - Push $0 - - ; test if a ps-viewer is installed, only check for GSview32 - StrCpy $PSViewerPath "" - ReadRegStr $PSViewerPath HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gsview32.exe" "Path" - - ; Failed to find anything that way. Try another. - ${if} $PSViewerPath == "" - ReadRegStr $PSViewerProg HKCR "psfile\shell\open\command" "" - ; Extract the first quoted word. - ${StrTok} $0 "$PSViewerProg" '"' '1' '0' - ${if} $0 != "" - StrCpy $PSViewerProg $0 - ${endif} - - ${StrTrim} $PSViewerProg "$PSViewerProg" - ; Split into pair - ${StrStrAdv} $PSViewerPath $PSViewerProg "\" "<" "<" "0" "0" "0" - ${StrStrAdv} $PSViewerProg $PSViewerProg "\" "<" ">" "0" "0" "0" - ${endif} - - ; Return the $0 register to its original states - Pop $0 -FunctionEnd - -;-------------------------------- - -Function SummariseDownloads - - StrCpy $PathPrefix "" - ${if} $MinSYSPath != "" - StrCpy $PathPrefix "$PathPrefix;$MinSYSPath" - ${endif} - ${if} $PythonPath != "" - StrCpy $PathPrefix "$PathPrefix;$PythonPath" - ${endif} - ${if} $MiKTeXPath != "" - StrCpy $PathPrefix "$PathPrefix;$MiKTeXPath" - ${endif} - ${if} $GhostscriptPath != "" - StrCpy $PathPrefix "$PathPrefix;$GhostscriptPath" - ${endif} - ${if} $ImageMagickPath != "" - StrCpy $PathPrefix "$PathPrefix;$ImageMagickPath" - ${endif} - ; Remove the leading ';' - StrCpy $PathPrefix "$PathPrefix" "" 1 - - IntOp $DoNotInstallLyX $DownloadMinSYS + $DownloadPython - IntOp $DoNotInstallLyX $DoNotInstallLyX + $DownloadMiKTeX - IntOp $DoNotInstallLyX $DoNotInstallLyX + $DownloadGhostscript - IntOp $DoNotInstallLyX $DoNotInstallLyX + $DownloadImageMagick - - ${if} "$DoNotInstallLyX" == 1 - !insertmacro MUI_INSTALLOPTIONS_WRITE "io_summary.ini" "Field 1" "Text" "$(SummaryPleaseInstall)" - ${else} - ${StrNSISToIO} $0 '$PathPrefix' - ${StrRep} $0 "$0" ";" "\r\n" - StrCpy $0 "$(SummaryPathPrefix)\r\n\r\n$0" - !insertmacro MUI_INSTALLOPTIONS_WRITE "io_summary.ini" "Field 1" "Text" "$0" - ${endif} - - !insertmacro MUI_HEADER_TEXT "$(SummaryTitle)" "" - !insertmacro MUI_INSTALLOPTIONS_DISPLAY "io_summary.ini" -FunctionEnd - -Function SummariseDownloads_LeaveFunction - ${if} "$DoNotInstallLyX" == 1 - Quit - ${endif} -FunctionEnd - -;-------------------------------- - -Function SelectMenuLanguage - StrCpy $LangName "" - - ;tranlate NSIS's language code to the language name; macro from lyx_utils.nsh - !insertmacro TranslateLangCode $LangName $Language - - !insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 1" "State" "$(UILanguageAvailableLanguages)" - !insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 2" "State" "$LangName" - - !insertmacro MUI_HEADER_TEXT "$(UILangageTitle)" "$(UILangageDescription)" - !insertmacro MUI_INSTALLOPTIONS_DISPLAY "io_ui_language.ini" -FunctionEnd - -;-------------------------------- - -Function SelectMenuLanguage_LeaveFunction - !insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State" - - ;Get the language code; macro from lyx_utils.nsh - StrCpy $LangCode "" - !insertmacro GetLangCode $LangCode $LangName -FunctionEnd - -;-------------------------------- -; The Uninstaller - -Function un.onInit - - !insertmacro MUI_UNGETLANGUAGE - - ; Ascertain whether the user has sufficient privileges to uninstall. - SetShellVarContext current - - ReadRegStr $0 HKCU "${PRODUCT_UNINST_KEY}" "RootKey" - ${if} $0 == "" - ReadRegStr $0 HKLM "${PRODUCT_UNINST_KEY}" "RootKey" - ${if} $0 == "" - MessageBox MB_OK "$(UnNotInRegistryLabel)" - ${endif} - ${endif} - - ${if} $0 == "HKLM" - Call un.IsUserAdmin - Pop $0 - ${if} $0 == "true" - SetShellVarContext all - ${else} - MessageBox MB_OK "$(UnNotAdminLabel)" - Abort - ${endif} - ${endif} - - MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" IDYES +2 - Abort -FunctionEnd - - -Function un.onUninstSuccess - HideWindow - MessageBox MB_ICONINFORMATION|MB_OK "$(UnRemoveSuccessLabel)" -FunctionEnd - - -Section Uninstall - RMDir /r $INSTDIR - - ReadRegStr $0 ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "StartMenu" - RMDir /r "$0" - - Delete "$DESKTOP\${PRODUCT_NAME}.lnk" - - DeleteRegKey "HKCU" "${PRODUCT_UNINST_KEY}" - DeleteRegKey ${PRODUCT_ROOT_KEY} "${PRODUCT_UNINST_KEY}" - DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" - DeleteRegKey HKCR "Applications\lyx.exe" - DeleteRegKey HKCR "Applications\lyx.bat" - - ; remove extension .lyx - ${RemoveFileAssociation} "${PRODUCT_EXT}" "${PRODUCT_NAME}" - DeleteRegKey HKCR "${PRODUCT_NAME}" - - SetAutoClose true -SectionEnd - -; eof diff --git a/development/Win32/packaging/installer/lyx_languages/danish.nsh b/development/Win32/packaging/installer/lyx_languages/danish.nsh deleted file mode 100644 index 02a822607b..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/danish.nsh +++ /dev/null @@ -1,80 +0,0 @@ -!ifndef _LYX_LANGUAGES_DANISH_NSH_ -!define _LYX_LANGUAGES_DANISH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_DANISH} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Installer til alle brugere?" -LangString SecFileAssocTitle "${LYX_LANG}" "Fil-associationer" -LangString SecDesktopTitle "${LYX_LANG}" "Skrivebordsikon" - -LangString SecCoreDescription "${LYX_LANG}" "Filerne til ${PRODUCT_NAME}." -LangString SecAllUsersDescription "${LYX_LANG}" "Installer til alle brugere, eller kun den aktuelle bruger. (kræver administrator-rettigheder.)" -LangString SecFileAssocDescription "${LYX_LANG}" "Opret association mellem LyX og .lyx filer." -LangString SecDesktopDescription "${LYX_LANG}" "Et ${PRODUCT_NAME} ikon på skrivebordet" - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Forsøget på at indstille 'path_prefix' i konfigurationen mislykkedes" -LangString CreateCmdFilesFailed "${LYX_LANG}" "Det lykkedes ikke at oprette lyx.cms og reLyx.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Mislykket forsøg på at afvikle konfigurations-scriptet" - -LangString FinishPageMessage "${LYX_LANG}" "Tillykke!! LyX er installeret." -LangString FinishPageRun "${LYX_LANG}" "Start LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "&Installer ikke" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS (www.mingw.org/msys.shtml) er et værktøj som ${PRODUCT_NAME} skal buge til at afvikle en række scripts." -LangString EnterMinSYSFolder "${LYX_LANG}" "Angiv stien til den mappe, som indeholder sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "Kunne ikke finde sh.exe" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Hent MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Mappen som indeholder sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "Python er et script-sprog (www.python.org) som skal være installeret. Ellers er der et antal scripts som ${PRODUCT_NAME} ikke kan afvikle." -LangString EnterPythonFolder "${LYX_LANG}" "Angiv stien til den mappe som indeholder Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Kunne ikke finde Python.exe" -LangString PythonDownloadLabel "${LYX_LANG}" "&hent Python" -LangString PythonFolderLabel "${LYX_LANG}" "&Mappen som indeholder Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) er en ajourført TeX implementering til Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Angiv stien til mappen som indeholder latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "Kunne ikke finde latex.exe" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Hent MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Mappen som indeholder latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "ImageMagick (www.imagemagick.org/script/index.php) bruges til at konvertere grafik-filer til forskellige slutformater." -LangString EnterImageMagickFolder "${LYX_LANG}" "Angiv stien til mappen som indeholder convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "Kunne ikke finde convert.exe" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Hent ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Mappen som indeholder convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) bruges til at konvertere billeder til og fra PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Angiv stien til mappen som indeholder gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "Kunne ikke finde gswin32c.exe" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Hent Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Mappen som indeholder gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Software - sammendrag" -LangString SummaryPleaseInstall "${LYX_LANG}" "Installer de filer du har downloaded, og kør så LyX's installationsprogram igen." -LangString SummaryPathPrefix "${LYX_LANG}" "Jeg tilføjer en 'path_prefix' streng til 'lyxrc.defaults' som indeholder:" - -LangString UILangageTitle "${LYX_LANG}" "Sprogvalg for LyXs brugergrænseflade" -LangString UILangageDescription "${LYX_LANG}" "Bruges til menuer, beskeder etc." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Tilgængelige sprog " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "Kunne ikke finde $(^Name) i registreringsdatabsen$\r$\nGenvejene på skrivebordet og i Start-menuen bliver ikke fjernet" -LangString UnNotAdminLabel "${LYX_LANG}" "Beklager! Du skal have administrator-rettigheder$\r$\nfor at afinstallere$(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Er du sikker på, at du vil slette $(^Name) og alle tilhørende komponenter?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) er blevet fjernet fra din computer." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_DANISH_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/dutch.nsh b/development/Win32/packaging/installer/lyx_languages/dutch.nsh deleted file mode 100644 index 2406e2a71d..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/dutch.nsh +++ /dev/null @@ -1,80 +0,0 @@ -!ifndef _LYX_LANGUAGES_DUTCH_NSH_ -!define _LYX_LANGUAGES_DUTCH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_DUTCH} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Installeer voor alle gebruikers?" -LangString SecFileAssocTitle "${LYX_LANG}" "Bestand associaties" -LangString SecDesktopTitle "${LYX_LANG}" "Bureaublad pictogram" - -LangString SecCoreDescription "${LYX_LANG}" "De ${PRODUCT_NAME} bestanden." -LangString SecAllUsersDescription "${LYX_LANG}" "Installeer voor alle gebruikers of uitsluitend de huidige gebruiker. (Systeembeheer rechten zijn noodzakelijk)" -LangString SecFileAssocDescription "${LYX_LANG}" "Associeer het LyX programma met de .lyx extensie." -LangString SecDesktopDescription "${LYX_LANG}" "Een ${PRODUCT_NAME} pictogram op het Bureaublad." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "'path_prefix' kon niet worden geregistreerd tijdens de configuratie" -LangString CreateCmdFilesFailed "${LYX_LANG}" "lyx.cmd en reLyX.cmd konden niet worden aangemaakt" -LangString RunConfigureFailed "${LYX_LANG}" "Mislukte configuratie poging" - -LangString FinishPageMessage "${LYX_LANG}" "LyX is nu geinstalleerd. Sommige gebruikers hebben echter gemeld dat het configuratie script niet is uitgevoerd waardoor LyX afbreekt met de melding dat het bestand textclass.lst ontbreekt. Ga, om dit te herstellen, in de commando prompt naar het LyX/Resources pad en voer het commando 'sh configure' uit." -LangString FinishPageRun "${LYX_LANG}" "Start LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "&Niet installeren" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS (een minimale Unix script omgeving, www.mingw.org/msys.shtml) wordt gebruikt door ${PRODUCT_NAME} om een aantal taken uit te voeren." -LangString EnterMinSYSFolder "${LYX_LANG}" "Voer het pad in naar de map met sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "sh.exe is niet gevonden" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Haal MinSYS op" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Map met sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "Python (een script taal, www.python.org) moet worden geinstalleerd, anders is ${PRODUCT_NAME} niet in staat een aantal taken uit te voeren." -LangString EnterPythonFolder "${LYX_LANG}" "Voer het pad in naar de map met Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Python.exe is niet gevonden" -LangString PythonDownloadLabel "${LYX_LANG}" "&Haal Python op" -LangString PythonFolderLabel "${LYX_LANG}" "&Map met Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) is een up-to-date TeX implementatie voor Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Voer het pad in naar de map met latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "latex.exe is niet gevonden" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Haal MiKTeX op" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Map met latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "ImageMagick (www.imagemagick.org/script/index.php) kan worden gebruikt om grafische bestanden te converteren (afhankelijk van gewenste output)." -LangString EnterImageMagickFolder "${LYX_LANG}" "Voer het pad in naar de map met convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "convert.exe is niet gevonden" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Haal ImageMagick op" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Map met convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) wordt gebruikt om afbeeldingen van/naar PostScript te converteren." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Voer het pad in naar de map met gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "gswin32c.exe is niet gevonden" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Haal Ghostscript op" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Map met gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Software samenvatting" -LangString SummaryPleaseInstall "${LYX_LANG}" "Installeer de opgehaalde bestanden en start vervolgens het LyX installatie programma nogmaals om de installatie af te ronden." -LangString SummaryPathPrefix "${LYX_LANG}" "Ik voeg een 'path_prefix' tekst aan 'lyxrc.defaults' toe met:" - -LangString UILangageTitle "${LYX_LANG}" "De taal van LyX's interface" -LangString UILangageDescription "${LYX_LANG}" "als gebruikt voor menu's, waarschuwingen, etc." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " beschikbare talen " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "$(^Name) is niet gevonden in het Windows register$\r$\nSnelkoppelingen op het Bureaublad en in het Start Menu worden niet verwijderd." -LangString UnNotAdminLabel "${LYX_LANG}" "Sorry! U heeft systeembeheer rechten nodig$\r$\nom $(^Name) te verwijderen." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Weet u zeker dat u $(^Name) en alle componenten volledig wil verwijderen van deze computer?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) was successvol verwijderd van uw computer." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_DUTCH_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/english.nsh b/development/Win32/packaging/installer/lyx_languages/english.nsh deleted file mode 100644 index 3e8c79ca5c..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/english.nsh +++ /dev/null @@ -1,80 +0,0 @@ -!ifndef _LYX_LANGUAGES_ENGLISH_NSH_ -!define _LYX_LANGUAGES_ENGLISH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_ENGLISH} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Install for all users?" -LangString SecFileAssocTitle "${LYX_LANG}" "File associations" -LangString SecDesktopTitle "${LYX_LANG}" "Desktop icon" - -LangString SecCoreDescription "${LYX_LANG}" "The ${PRODUCT_NAME} files." -LangString SecAllUsersDescription "${LYX_LANG}" "Install for all users or just the current user. (Requires Administrator privileges.)" -LangString SecFileAssocDescription "${LYX_LANG}" "Create associations between the executable and the .lyx extension." -LangString SecDesktopDescription "${LYX_LANG}" "A ${PRODUCT_NAME} icon on the desktop." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Failed attempting to set 'path_prefix' in the configure script" -LangString CreateCmdFilesFailed "${LYX_LANG}" "Failed attempting to create lyx.cmd and reLyX.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Failed attempting to execute the configure script" - -LangString FinishPageMessage "${LYX_LANG}" "LyX should now be installed. However, some of our users report that the configure script fails to run and, as a result, LyX fails to start, reporting a missing textclass.lst file. To fix, run the command: 'sh configure' from the LyX/Resources directory." -LangString FinishPageRun "${LYX_LANG}" "Launch LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "&Do not install" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS is a minimal unix scripting environment (www.mingw.org/msys.shtml) which ${PRODUCT_NAME} needs to run a number of scripts." -LangString EnterMinSYSFolder "${LYX_LANG}" "Please input the path to the folder containing sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "Unable to find sh.exe" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Download MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Folder containing sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "The Python scripting language (www.python.org) must be installed or ${PRODUCT_NAME} will be unable to run a number of scripts." -LangString EnterPythonFolder "${LYX_LANG}" "Please input the path to the folder containing Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Unable to find Python.exe" -LangString PythonDownloadLabel "${LYX_LANG}" "&Download Python" -LangString PythonFolderLabel "${LYX_LANG}" "&Folder containing Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) is an up-to-date TeX implementation for Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Please input the path to the folder containing latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "Unable to find latex.exe" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Download MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Folder containing latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "The ImageMagick tools (www.imagemagick.org/script/index.php) can be used to convert graphics files to whatever output format is needed." -LangString EnterImageMagickFolder "${LYX_LANG}" "Please input the path to the folder containing convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "Unable to find convert.exe" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Download ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Folder containing convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (www.cs.wisc.edu/~ghost/) is used to convert images to/from PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Please input the path to the folder containing gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "Unable to find gswin32c.exe" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Download Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Folder containing gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Software summary" -LangString SummaryPleaseInstall "${LYX_LANG}" "Please install your downloaded files and then run LyX's installer once again." -LangString SummaryPathPrefix "${LYX_LANG}" "I shall add a 'path_prefix' string to 'lyxrc.defaults' containing:" - -LangString UILangageTitle "${LYX_LANG}" "The language of LyX's interface" -LangString UILangageDescription "${LYX_LANG}" "As used for menus, messages, etc." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Available Languages " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "Unable to find $(^Name) in the registry$\r$\nShortcuts on the desktop and in the Start Menu will not be removed." -LangString UnNotAdminLabel "${LYX_LANG}" "Sorry! You must have administrator privileges$\r$\nto uninstall $(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Are you sure you want to completely remove $(^Name) and all of its components?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) was successfully removed from your computer." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_ENGLISH_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/french.nsh b/development/Win32/packaging/installer/lyx_languages/french.nsh deleted file mode 100644 index d24159d5bd..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/french.nsh +++ /dev/null @@ -1,81 +0,0 @@ - -!ifndef _LYX_LANGUAGES_FRENCH_NSH_ -!define _LYX_LANGUAGES_FRENCH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_FRENCH} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Installer pour tous les utilisateurs ?" -LangString SecFileAssocTitle "${LYX_LANG}" "Associations de fichiers" -LangString SecDesktopTitle "${LYX_LANG}" "Icône du bureau" - -LangString SecCoreDescription "${LYX_LANG}" "Les fichiers ${PRODUCT_NAME}" -LangString SecAllUsersDescription "${LYX_LANG}" "Installer pour tous les utilisateurs (nécessite les droits d'administrateur), ou seulement pour l'utilisateur courant ?." -LangString SecFileAssocDescription "${LYX_LANG}" "Crée les associations entre l'exécutable et le suffixe .lyx." -LangString SecDesktopDescription "${LYX_LANG}" "Une icône ${PRODUCT_NAME} sur le bureau." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Échec de l'allocation 'path_prefix' lors de la configuration." -LangString CreateCmdFilesFailed "${LYX_LANG}" "Échec de la création des fichiers lyx.cmd et reLyX.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Échec de la tentative de configuration initiale de LyX." - -LangString FinishPageMessage "${LYX_LANG}" "LyX devrait être installé. Cependant, quelques utilisateurs ont signalé que le script de configuration échouait; en conséquence, LyX refuse de démarrer avec un message indiquant l'absence du fichier textclass.lst. Pour rectifier l'installation, exécuter 'sh configure' depuis le répertoire LyX/Resources." -LangString FinishPageRun "${LYX_LANG}" "Démarrer LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "&Ne pas installer" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS est un environnement minimal pour gérer des commandes (www.mingw.org/msys.shtml) dont ${PRODUCT_NAME} a besoin pour ses traitements." -LangString EnterMinSYSFolder "${LYX_LANG}" "Merci de saisir le chemin conduisant au répertoire où se trouve sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "sh.exe introuvable" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Télécharger MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Répertoire contenant sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "Le langage de commandes Python (www.python.org) doit être installé ou ${PRODUCT_NAME} ne pourra pas exécuter un certain nombre de commandes." -LangString EnterPythonFolder "${LYX_LANG}" "Merci de saisir le chemin conduisant au répertoire où se trouve Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Python.exe introuvable" -LangString PythonDownloadLabel "${LYX_LANG}" "&Télécharger Python" -LangString PythonFolderLabel "${LYX_LANG}" "&Répertoire contenant Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) est une distribution moderne de TeX pour Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Merci de saisir le chemin conduisant au répertoire où se trouve latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "latex.exe introuvable" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Télécharger MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Répertoire contenant latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "Les outils graphiques de ImageMagick (www.imagemagick.org/script/index.php) peuvent être utilisés pour convertir les fichiers graphiques dans n'importe quel format nécessaire." -LangString EnterImageMagickFolder "${LYX_LANG}" "Merci de saisir le chemin conduisant au répertoire où se trouve convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "convert.exe introuvable" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Télécharger ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Répertoire contenant convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) est utilisé pour convertir les graphiques depuis/vers PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Merci de saisir le chemin conduisant au répertoire où se trouve gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "gswin32c.exe introuvable" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Télécharger Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Répertoire contenant gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Résumé d'installation" -LangString SummaryPleaseInstall "${LYX_LANG}" "Merci d'installer les fichiers téléchargés, puis d'exécuter de nouveau l'installation de LyX." -LangString SummaryPathPrefix "${LYX_LANG}" "Durant l'installation, une chaîne de caractères 'path_prefix' sera ajoutée à 'lyxrc.defaults', elle contiendra :" - -LangString UILangageTitle "${LYX_LANG}" "Le langage de l'interface de LyX" -LangString UILangageDescription "${LYX_LANG}" "Tel qu'il est utilisé pour les menus, messages, etc." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Langages disponibles" - -LangString UnNotInRegistryLabel "${LYX_LANG}" "$(^Name) introuvable dans le base des registres. $\r$\nLes raccourcis sur le bureau et dans le menu de démarrage ne seront pas supprimés." -LangString UnNotAdminLabel "${LYX_LANG}" "Désolé ! Vous devez avoir les droits d'administration$\r$\npour installer$(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Êtes vous sûr(e) de vouloir supprimer complètement $(^Name) et tous ses composants ?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) supprimé de votre ordinateur avec succès." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_FRENCH_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/german.nsh b/development/Win32/packaging/installer/lyx_languages/german.nsh deleted file mode 100644 index e32b95cb04..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/german.nsh +++ /dev/null @@ -1,80 +0,0 @@ -!ifndef _LYX_LANGUAGES_GERMAN_NSH_ -!define _LYX_LANGUAGES_GERMAN_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_GERMAN} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Für alle Nutzer installieren?" -LangString SecFileAssocTitle "${LYX_LANG}" "Dateizuordnungen" -LangString SecDesktopTitle "${LYX_LANG}" "Desktopsymbol" - -LangString SecCoreDescription "${LYX_LANG}" "Das Programm ${PRODUCT_NAME}." -LangString SecAllUsersDescription "${LYX_LANG}" "Für alle Nutzer oder nur für den aktuellen Nutzer installieren. (Dazu werden Administratorrechte benötigt.)" -LangString SecFileAssocDescription "${LYX_LANG}" "Vernüpfung zwischen ${PRODUCT_NAME} und der .lyx Dateiendung." -LangString SecDesktopDescription "${LYX_LANG}" "Verknüpfung zu ${PRODUCT_NAME} auf dem Desktop." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Der 'path_prefix' (Liste mit Programmpfaden) konnte nicht im Konfigurationsskript gesetzt werden." -LangString CreateCmdFilesFailed "${LYX_LANG}" "Konnte die Dateien lyx.cmd und reLyX.cmd nicht erstellen." -LangString RunConfigureFailed "${LYX_LANG}" "Konnte das Konfigurationsskript nicht ausführen." - -LangString FinishPageMessage "${LYX_LANG}" "LyX sollte nun installiert sein. Jedoch haben einige Nutzer berichtet, dass das Konfigurationsskript nicht ausgeführt werden konnte und LyX daher nicht startet. Die Fehlermeldung lautet in diesem Fall $\'reporting a missing textclass.lst file$\'. Um den Fehler zu beheben, führen Sie bitte den Befehl $\'sh configure$\' aus Windows Kommandozeile aus, wenn Sie sich im Verzeichnis $\'\Resources\lyx$\' befinden." -LangString FinishPageRun "${LYX_LANG}" "LyX starten" - -LangString DownloadPageField2 "${LYX_LANG}" "&Nicht installieren" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS ist eine Unix-Umgebung für Skripte (www.mingw.org/msys.shtml) die von ${PRODUCT_NAME} für das Ausführen verschiedener Skripte benötigt wird." -LangString EnterMinSYSFolder "${LYX_LANG}" "Geben sie den Pfad zur Datei sh.exe an." -LangString InvalidMinSYSFolder "${LYX_LANG}" "Kann die Datei sh.exe nicht finden." -LangString MinSYSDownloadLabel "${LYX_LANG}" "&MinSYS herunterladen" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Ordner der die Datei sh.exe enthält" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "Ein Interpreter der Skriptsprache Python (www.python.org) ist notwendig damit ${PRODUCT_NAME} Skripte ausführen kann." -LangString EnterPythonFolder "${LYX_LANG}" "Geben sie den Pfad zur Datei python.exe an." -LangString InvalidPythonFolder "${LYX_LANG}" "Kann die Datei python.exe nicht finden." -LangString PythonDownloadLabel "${LYX_LANG}" "&Python herunterladen" -LangString PythonFolderLabel "${LYX_LANG}" "&Ordner der die Datei python.exe enthält" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) ist eine LaTeX-Distribution für Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Geben sie den Pfad zur Datei latex.exe an." -LangString InvalidMiKTeXFolder "${LYX_LANG}" "Kann die Datei latex.exe nicht finden." -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&MiKTeX herunterladen" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Ordner der die Datei latex.exe enthält" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "ImageMagick (www.imagemagick.org/script/index.php) wird benötigt, um Grafikdateien in verschiedene Dateiformate umzuwandeln." -LangString EnterImageMagickFolder "${LYX_LANG}" "Geben sie den Pfad zur Datei convert.exe an." -LangString InvalidImageMagickFolder "${LYX_LANG}" "Kann die Datei convert.exe nicht finden." -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&ImageMagic herunterladen" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Ordner der die Datei convert.exe enthält" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) wird für PDF- und PostScript-Grafikdateien benötigt." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Geben sie den Pfad zur Datei gswin32c.exe an." -LangString InvalidGhostscriptFolder "${LYX_LANG}" "Kann die Datei gswin32c.exe nicht finden." -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Ghostscript herunterladen" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Ordner der die Datei gswin32c.exe enthält" - -LangString SummaryTitle "${LYX_LANG}" "Software Zusammenfassung" -LangString SummaryPleaseInstall "${LYX_LANG}" "Bitte installieren sie die heruntergeladenen Programme und starten dann ${PRODUCT_NAME}'s Installer nochmal." -LangString SummaryPathPrefix "${LYX_LANG}" "Die Liste mit den Programmpfaden, der so genannte 'path_prefix' wird zur Datei 'lyxrc.defaults' hinzugefügt:" - -LangString UILangageTitle "${LYX_LANG}" "Die Sprache von LyXs Benutzeroberfläche" -LangString UILangageDescription "${LYX_LANG}" "Wird für die Menüs, Mitteilungen, usw. verwendet" -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Verfügbare Sprachen " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "Kann $(^Name) nicht in der Registry finden. $\r$\n Desktopsymbole und Einträge im Startmenü können nicht entfernt werden." -LangString UnNotAdminLabel "${LYX_LANG}" "Sie benötigen Administratorrechte $\r$\n um $(^Name) zu deinstallieren." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Sind Sie sicher, dass sie $(^Name) und all seine Komponenten deinstalliern möchten?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) wurde erfolgreich von ihrem Computer entfernt." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_GERMAN_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/italian.nsh b/development/Win32/packaging/installer/lyx_languages/italian.nsh deleted file mode 100644 index ef74dfadbb..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/italian.nsh +++ /dev/null @@ -1,81 +0,0 @@ -!ifndef _LYX_LANGUAGES_ITALIAN_NSH_ -!define _LYX_LANGUAGES_ITALIAN_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_ITALIAN} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Installazione per tutti gli utenti?" -LangString SecFileAssocTitle "${LYX_LANG}" "Associazioni dei file" -LangString SecDesktopTitle "${LYX_LANG}" "Icona sul Desktop" - -LangString SecCoreDescription "${LYX_LANG}" "I file di ${PRODUCT_NAME}." -LangString SecAllUsersDescription "${LYX_LANG}" "Installazione per tutti gli utenti o solo per l'utente attuale. (Sono richiesti privilegi da amministratore.)" -LangString SecFileAssocDescription "${LYX_LANG}" "Crea le associazioni tra il programma e le estensioni .lyx." -LangString SecDesktopDescription "${LYX_LANG}" "Icona ${PRODUCT_NAME} sul desktop." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Fallito tentativo di aggiornare 'path_prefix' nello script di configurazione" -LangString CreateCmdFilesFailed "${LYX_LANG}" "Fallito tentativo di creare lyx.cmd e reLyX.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Fallito tentativo di eseguire lo script di configurazione" - -LangString FinishPageMessage "${LYX_LANG}" "LyX è stato installato. Però, se l$\'installer non è riuscito a lanciare lo script di configurazione, non sarete in grado di usare LyX a causa della mancata generazione del file textclass.lst. In tal caso, il rimedio consiste nell'eseguire il comando 'sh configure' nella directory $\'/Resources$\'." - -LangString FinishPageRun "${LYX_LANG}" "Lancia LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "&Non installare" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS fornisce un ambiente unix minimale (www.mingw.org/msys.shtml) richiesto da ${PRODUCT_NAME} per far girare un certo numero di file script." -LangString EnterMinSYSFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "Non riesco a trovare sh.exe" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Scarica MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Cartella contenente sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "L'interprete Python (www.python.org) deve essere installato, altrimenti ${PRODUCT_NAME} non sarà in grado di far girare un certo numero di file script." -LangString EnterPythonFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Non riesco a trovare Python.exe" -LangString PythonDownloadLabel "${LYX_LANG}" "&carica Python" -LangString PythonFolderLabel "${LYX_LANG}" "&Cartella contenente Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) è un'aggiornata implementazione di TeX per Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "Non riesco a trovare latex.exe" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Scarica MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Cartella contenente latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "I programmi forniti da ImageMagick (www.imagemagick.org/script/index.php) vengono usati per convertire file grafici da un certo formato ad un qualsiasi altro formato." -LangString EnterImageMagickFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "Non riesco a trovare convert.exe" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Scarica ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Cartella contenente convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) viene usato per convertire immagini in/da PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Inserite il percorso alla cartella contenente gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "Non riesco a trovare gswin32c.exe" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Scarica Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Cartella contenente gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Sommario del software" -LangString SummaryPleaseInstall "${LYX_LANG}" "Siete pregati di installare i pacchetti scaricati e quindi lanciare nuovamente l'installazione di LyX." -LangString SummaryPathPrefix "${LYX_LANG}" "Verrà aggiunta una stringa 'path_prefix' al file 'lyxrc.defaults' contenente:" - -LangString UILangageTitle "${LYX_LANG}" "La lingua dell'interfaccia di LyX" -LangString UILangageDescription "${LYX_LANG}" "Usata per menu, messaggi, ecc." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Lingue Disponibili " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "Non riesco a trovare $(^Name) nel registro$\r$\nI collegamenti sul desktop e nel menu Start non saranno rimossi." -LangString UnNotAdminLabel "${LYX_LANG}" "Spiacente! Occorrono privilegi da amministratore$\r$\nper disinstallare $(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Siete sicuri di voler rimuovere completamente $(^Name) e tutti i suoi componenti?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) è stato rimosso con successo dal computer." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_ITALIAN_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/polish.nsh b/development/Win32/packaging/installer/lyx_languages/polish.nsh deleted file mode 100644 index 6a511a71c7..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/polish.nsh +++ /dev/null @@ -1,81 +0,0 @@ -!ifndef _LYX_LANGUAGES_POLISH_NSH_ -!define _LYX_LANGUAGES_POLISH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_POLISH} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Instalacja dla wszystkich u¿ytkowników?" -LangString SecFileAssocTitle "${LYX_LANG}" "Skojarzenie plików .lyx" -LangString SecDesktopTitle "${LYX_LANG}" "Ikona na pulpicie" - -LangString SecCoreDescription "${LYX_LANG}" "Pliki ${PRODUCT_NAME}-a." -LangString SecAllUsersDescription "${LYX_LANG}" "Instalacja dla wszystkich u¿ytkowników lub tylko dla bie¿¹cego u¿ytkownika. Instalacja dla wszystkich wymaga praw administratora." -LangString SecFileAssocDescription "${LYX_LANG}" "Skojarzenie LyX-a z plikami o rozszerzeniu .lyx." -LangString SecDesktopDescription "${LYX_LANG}" "Ikona ${PRODUCT_NAME}-a na pulpicie." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Nieudana próba ustawienia zmiennej 'path_prefix' w pliku skryptu konfigracyjnego" -LangString CreateCmdFilesFailed "${LYX_LANG}" "Niedana próba utworzenia plików lyx.cmd i reLyX.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Niedana próba wykonania skryptu konfiguracyjnego" - -LangString FinishPageMessage "${LYX_LANG}" "LyX powinien byæ ju¿ teraz zainstalowany. Jednak niektórzy u¿ytkownicy raportuj¹, ¿e skrypt konfiguracyjny nie wykonuje siê. W efekcie LyX nie uruchamia siê zg³aszaj¹c brak pliku textclass.lst. Dla naprawy instalacji LyX-a uruchom polecenie 'sh configure' w katalogu $\'/Resources/lyx$\'." -LangString FinishPageRun "${LYX_LANG}" "Uruchom LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "&Nie instaluj" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS jest minimalnym œrodowiskiem uniksowym (www.mingw.org/msys.shtml), którego wymaga ${PRODUCT_NAME} do uruchomienia niektórych skryptów." -LangString EnterMinSYSFolder "${LYX_LANG}" "Proszê podaæ œcie¿kê do folderu zawieraj¹cego sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "Nie mo¿na znaleŸæ sh.exe" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Pobierz MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Folder zawieraj¹cy sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "Jêzyk skryptowy Python (www.python.org) musi byæ zainstalowany, inaczej ${PRODUCT_NAME} nie bêdzie móg³ uruchomiæ niektórych skryptów." -LangString EnterPythonFolder "${LYX_LANG}" "Proszê podaæ œcie¿kê do folderu zawieraj¹cego Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Nie mo¿na znaleŸæ Python.exe" -LangString PythonDownloadLabel "${LYX_LANG}" "&Pobierz Python" -LangString PythonFolderLabel "${LYX_LANG}" "&Folder zawieraj¹cy Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) jest implementacj¹ TeX-a dla Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Proszê podaæ œcie¿kê do folderu zawieraj¹cego latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "Nie mo¿na znaleŸæ latex.exe" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Pobierz MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Folder zawieraj¹cy latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "Narzêdzia pakietu ImageMagick (www.imagemagick.org/script/index.php) s¹ u¿ywane do konwersji plików graficznych do wymaganych formatów." -LangString EnterImageMagickFolder "${LYX_LANG}" "Proszê podaæ œcie¿kê do folderu zawieraj¹cego convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "Nie mo¿na znaleŸæ convert.exe" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Pobierz ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Folder zawieraj¹cy convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (www.cs.wisc.edu/~ghost/) jest u¿ywany do konwersji z i do formatu PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Proszê podaæ œcie¿kê do folderu zawieraj¹cego gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "Nie mo¿na znaleŸæ gswin32c.exe" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Pobierz Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Folder zawieraj¹cy gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Podsumowanie oprogramowania" -LangString SummaryPleaseInstall "${LYX_LANG}" "Proszê zainstalowaæ pobrane pliki i uruchomiæ instalator LyX-a ponownie." -LangString SummaryPathPrefix "${LYX_LANG}" "Do zmiennej 'path_prefix' w pliku 'lyxrc.defaults' zostan¹ dodane nastêpuj¹ce œcie¿ki:" - -LangString UILangageTitle "${LYX_LANG}" "Jêzyk interfejsu LyX-a" -LangString UILangageDescription "${LYX_LANG}" "Który bêdzie u¿yty w menu, komunikatach itp." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Dostêpne jêzyki " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "Nie mo¿na znaleŸæ $(^Name) w rejestrze$\r$\nSkróty na pulpicie i w menu Start nie zostan¹ usuniête." -LangString UnNotAdminLabel "${LYX_LANG}" "Musisz posiadaæ prawa administratora$\r$\ndo deinstalacji programu $(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Czy na pewno chcesz usun¹æ $(^Name) i wszystkie jego komponenty?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) zosta³ pomyœlnie usuniêty z Twojego komputera." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_POLISH_NSH_ - diff --git a/development/Win32/packaging/installer/lyx_languages/spanish.nsh b/development/Win32/packaging/installer/lyx_languages/spanish.nsh deleted file mode 100644 index 285183b22c..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/spanish.nsh +++ /dev/null @@ -1,80 +0,0 @@ -!ifndef _LYX_LANGUAGES_SPANISH_NSH_ -!define _LYX_LANGUAGES_SPANISH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_SPANISH} - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Instalar para todos los usuarios" -LangString SecFileAssocTitle "${LYX_LANG}" "Asociar ficheros" -LangString SecDesktopTitle "${LYX_LANG}" "Icono de escritorio" - -LangString SecCoreDescription "${LYX_LANG}" "Los ficheros de ${PRODUCT_NAME}." -LangString SecAllUsersDescription "${LYX_LANG}" "Instalar para todos los usuarios o sólo para el usuario actual. (Requiere privilegios de Administrador.)" -LangString SecFileAssocDescription "${LYX_LANG}" "Asociar la extesión .lyx con ${PRODUCT_NAME}." -LangString SecDesktopDescription "${LYX_LANG}" "Crear un icono de ${PRODUCT_NAME} en el escritorio." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Error al intentar añadir la entrada 'path_prefix' a la rutina de configuración" -LangString CreateCmdFilesFailed "${LYX_LANG}" "Error al intentar crear lyx.cmd y reLyX.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Error al intentar ejecutar la rutina de configuración" - -LangString FinishPageMessage "${LYX_LANG}" "Si todo fue bien, LyX debería haber sido instalado correctamente. Sin embargo, algunos de nuestros usuarios han informado de que la rutina de configuración falla al ejecutarse y, como resultado, LyX también falla al ejecutarse (puesto que no encuentra el fichero textclass.lst). Para solucionar este problema abra una ventana de MS-DOS y ejecute el comando 'sh configure' desde el directorio LyX/Resources." -LangString FinishPageRun "${LYX_LANG}" "Ejecutar LyX ahora" - -LangString DownloadPageField2 "${LYX_LANG}" "&No instalar" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS (www.mingw.org/msys.shtml) es un pequeño entorno Unix que ${PRODUCT_NAME} necesita para ejecutar algunos ficheros de comandos." -LangString EnterMinSYSFolder "${LYX_LANG}" "Por favor, introduzca la ruta completa del directorio que contiene sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "Imposible encontrar sh.exe" -LangString MinSYSDownloadLabel "${LYX_LANG}" "&Descargar MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "&Directorio que contiene sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "El lenguaje de programación Python (www.python.org) debe estar instalado o de lo contrario ${PRODUCT_NAME} no será capaz de ejecutar ciertos ficheros de comandos." -LangString EnterPythonFolder "${LYX_LANG}" "Por favor, introduzca la ruta completa del directorio que contiene Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "Imposible encontrar Python.exe" -LangString PythonDownloadLabel "${LYX_LANG}" "&Descargar Python" -LangString PythonFolderLabel "${LYX_LANG}" "&Directorio que contiene Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) es una implementación del sistema TeX para Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "Por favor, introduzca la ruta completa del directorio que contiene latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "Imposible encontrar latex.exe" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "&Descargar MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "&Directorio que contiene latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "ImageMagick (www.imagemagick.org/script/index.php) permite convertir ficheros gráficos a cualquier formato que se necesite." -LangString EnterImageMagickFolder "${LYX_LANG}" "Por favor, introduzca la ruta completa del directorio que contiene convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "Imposible encontrar convert.exe" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Descargar ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "&Directorio que contiene convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) es usado para convertir imágenes a/en formato PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "Por favor, introduzca la ruta completa del directorio que contiene gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "Imposible encontrar gswin32c.exe" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Descargar Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "&Directorio que contiene gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Resumen de la instalación" -LangString SummaryPleaseInstall "${LYX_LANG}" "Por favor, instale los programas descargados y vuelva a ejecutar el insralador de LyX una vez más." -LangString SummaryPathPrefix "${LYX_LANG}" "Durante la instalación la variable 'path_prefix' se añadirá a 'lyxrc.defaults' con el siguiente contenido:" - -LangString UILangageTitle "${LYX_LANG}" "Seleccione el idioma que desea para la interfaz de LyX" -LangString UILangageDescription "${LYX_LANG}" "Será usado en los menús, mensajes, etc." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Idiomas disponibles " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "Imposible encontrar $(^Name) en el registro$\r$\nLos accesos rápidos del escritorio y del Menú de Inicio no serán eliminados." -LangString UnNotAdminLabel "${LYX_LANG}" "Lo siento! Necesita privilegios de administrador$\r$\npara desinstalar $(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "¿Está seguro de que desea eliminar completamente $(^Name) y todos sus componentes?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "$(^Name) fue eliminado satisfactoriamente de su ordenador." - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_SPANISH_NSH_ diff --git a/development/Win32/packaging/installer/lyx_languages/swedish.nsh b/development/Win32/packaging/installer/lyx_languages/swedish.nsh deleted file mode 100644 index 1ca0aa4ca8..0000000000 --- a/development/Win32/packaging/installer/lyx_languages/swedish.nsh +++ /dev/null @@ -1,90 +0,0 @@ -!ifndef _LYX_LANGUAGES_SWEDISH_NSH_ -!define _LYX_LANGUAGES_SWEDISH_NSH_ - -!ifdef LYX_LANG - !undef LYX_LANG -!endif -!define LYX_LANG ${LANG_SWEDISH} - -!define SwedishInputFolderPath "Var god ange sökväg till katalogen som innehåller" -!define SwedishUnableToFind "Kan inte hitta" -!define SwedishDownload "&Ladda ner" -!define SwedishFolderContaining "&Katalog innehållande" - -LicenseLangString LyXLicenseData ${LYX_LANG} "${PRODUCT_LICENSE_FILE}" - -LangString SecAllUsersTitle "${LYX_LANG}" "Installera för alla användare?" -LangString SecFileAssocTitle "${LYX_LANG}" "Program associerade till olika filtyper" -LangString SecDesktopTitle "${LYX_LANG}" "Skrivbordsikon" - -LangString SecCoreDescription "${LYX_LANG}" "${PRODUCT_NAME}-filer." -LangString SecAllUsersDescription "${LYX_LANG}" "Installera för alla användare, eller enbart för den aktuella användare. (Kräver administratörsrättigheter.)" -LangString SecFileAssocDescription "${LYX_LANG}" "Skapa en association mellan programmet och filtilläget .lyx." -LangString SecDesktopDescription "${LYX_LANG}" "Skapa en ${PRODUCT_NAME}-ikon på skrivbordet." - -LangString ModifyingConfigureFailed "${LYX_LANG}" "Misslyckades med att sätta sökvägsprefixet i konfigurationsprogrammet" -LangString CreateCmdFilesFailed "${LYX_LANG}" "Misslyckades med att skapa filerna lyx.cmd och reLyX.cmd" -LangString RunConfigureFailed "${LYX_LANG}" "Misslyckades med att köra konfigurationsprogrammet" - -LangString FinishPageMessage "${LYX_LANG}" "LyX borde nu ha installerats. Dessvärre har en del användare rapporterat att konfigurationsskriptet ibland misslyckats. Om detta händer är inte LyX ordentligt konfigurerat och vägrar starta med ett felmeddelande om att filen 'textclass.lst' saknas. För att åtgärda detta problem, öppna ett kommandofönster (kör programmet 'cmd'), och gå till katalogen 'LyX/Resources directory'. I den katalogen kör du sedan kommandot 'sh configure' vilket kommer att konfigurar LyX." -LangString FinishPageRun "${LYX_LANG}" "Starta LyX" - -LangString DownloadPageField2 "${LYX_LANG}" "Installera &ej" - -LangString MinSYSHeader "${LYX_LANG}" "MinSYS" -LangString MinSYSDescription "${LYX_LANG}" "MinSYS är en minimal, UNIX-liknande skriptmiljö (www.mingw.org/msys.shtml) vilken ${PRODUCT_NAME} använder för ett flertal funktioner." -LangString EnterMinSYSFolder "${LYX_LANG}" "${SwedishInputFolderPath} sh.exe" -LangString InvalidMinSYSFolder "${LYX_LANG}" "${SwedishUnableToFind} sh.exe" -LangString MinSYSDownloadLabel "${LYX_LANG}" "${SwedishDownload} MinSYS" -LangString MinSYSFolderLabel "${LYX_LANG}" "${SwedishFolderContaining} sh.exe" - -LangString PythonHeader "${LYX_LANG}" "Python" -LangString PythonDescription "${LYX_LANG}" "Skriptspråket Python (www.python.org) bör installeras, annars kan ett flertal skript inte användas av ${PRODUCT_NAME}." -LangString EnterPythonFolder "${LYX_LANG}" "${SwedishInputFolderPath} Python.exe" -LangString InvalidPythonFolder "${LYX_LANG}" "${SwedishUnableToFind} Python.exe" -LangString PythonDownloadLabel "${LYX_LANG}" "${SwedishDownload} Python" -LangString PythonFolderLabel "${LYX_LANG}" "${SwedishFolderContaining} Python.exe" - -LangString MiKTeXHeader "${LYX_LANG}" "MiKTeX" -LangString MiKTeXDescription "${LYX_LANG}" "MiKTeX (www.miktex.org) är en modern implementering av TeX för Windows." -LangString EnterMiKTeXFolder "${LYX_LANG}" "${SwedishInputFolderPath} latex.exe" -LangString InvalidMiKTeXFolder "${LYX_LANG}" "${SwedishUnableToFind} latex.exe" -LangString MiKTeXDownloadLabel "${LYX_LANG}" "${SwedishDownload} MiKTeX" -LangString MiKTeXFolderLabel "${LYX_LANG}" "${SwedishFolderContaining} latex.exe" - - -LangString ImageMagickHeader "${LYX_LANG}" "ImageMagick" -LangString ImageMagickDescription "${LYX_LANG}" "Verktygen i paketet ImageMagick (www.imagemagick.org/script/index.php) används av LyX för att konvertera bilder till rätt filformat." -LangString EnterImageMagickFolder "${LYX_LANG}" "${SwedishInputFolderPath} convert.exe" -LangString InvalidImageMagickFolder "${LYX_LANG}" "${SwedishUnableToFind} convert.exe" -LangString ImageMagickDownloadLabel "${LYX_LANG}" "${SwedishDownload} ImageMagick" -LangString ImageMagickFolderLabel "${LYX_LANG}" "${SwedishFolderContaining} convert.exe" - -LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript" -LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (www.cs.wisc.edu/~ghost/) används för att konvertera bilder till/från PostScript." -LangString EnterGhostscriptFolder "${LYX_LANG}" "${SwedishInputFolderPath} gswin32c.exe" -LangString InvalidGhostscriptFolder "${LYX_LANG}" "${SwedishUnableToFind} gswin32c.exe" -LangString GhostscriptDownloadLabel "${LYX_LANG}" "${SwedishDownload} Ghostscript" -LangString GhostscriptFolderLabel "${LYX_LANG}" "${SwedishFolderContaining} gswin32c.exe" - -LangString SummaryTitle "${LYX_LANG}" "Sammanfattning av programvara" -LangString SummaryPleaseInstall "${LYX_LANG}" "Var god installera först den kompletterande programvara du laddat ner. Kör sedan LyX installationsprogram igen." -LangString SummaryPathPrefix "${LYX_LANG}" "Ett sökvägsprefix kommer att läggas till i filen 'lyxrc.defaults'. Denna innehåller följande:" - -LangString UILangageTitle "${LYX_LANG}" "Språk i LyX användargränsnitt" -LangString UILangageDescription "${LYX_LANG}" "Detta språk används i menyer, meddelanden, m.m." -LangString UILanguageAvailableLanguages "${LYX_LANG}" " Tillgängliga språk " - -LangString UnNotInRegistryLabel "${LYX_LANG}" "${SwedishUnableToFind} $(^Name) i registret\r$\nGenvägar på skrivbordet och i startmenyn kommer inte att tas bort." -LangString UnNotAdminLabel "${LYX_LANG}" "Tyvärr! Du måste ha administratörsrättigheter för\r$\natt avinstallera $(^Name)." -LangString UnReallyRemoveLabel "${LYX_LANG}" "Är du säker på att du verkligen vill avinstallera $(^Name) och alla dess komponenter fullständigt?" -LangString UnRemoveSuccessLabel "${LYX_LANG}" "Avinstallationen av $(^Name) från din dator var framgångsrik." - -!undef SwedishInputFolderPath -!undef SwedishUnableToFind -!undef SwedishDownload -!undef SwedishFolderContaining - -!undef LYX_LANG - -!endif ; _LYX_LANGUAGES_SWEDISH_NSH_ diff --git a/development/Win32/packaging/installer/lyx_utils.nsh b/development/Win32/packaging/installer/lyx_utils.nsh deleted file mode 100644 index a983fffd16..0000000000 --- a/development/Win32/packaging/installer/lyx_utils.nsh +++ /dev/null @@ -1,160 +0,0 @@ -;-------------------------------- - -!macro GetFileExtProg ProgPath AppExe Extension Subentry - - ReadRegStr ${AppExe} HKCU \ - -"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${Extension}\OpenWithList" \ - "${Subentry}" - ${if} ${AppExe} != "" - ReadRegStr ${ProgPath} HKLM \ - "Software\Microsoft\Windows\CurrentVersion\App Paths\${AppExe}" "Path" - ;remove the "\" at the end - StrCpy $0 ${ProgPath} "" -1 - ${if} $0 == "\" - StrCpy ${ProgPath} ${ProgPath} -1 - ${endif} - ${endif} - -!macroend - -;-------------------------------- - -!macro FileCheck Result FileName FilePath - Push $0 - Push $1 - StrCpy $0 "" - StrCpy $1 "" - - FileOpen $0 "${Filepath}\${FileName}" r - - ${if} $0 = "" - StrCpy $1 "False" - ${Else} - StrCpy $1 "True" - ${endif} - - FileClose $0 - StrCpy ${Result} $1 - - Pop $1 - Pop $0 -!macroend - - -!macro TranslateLangCode LangNme LangISOCode - - ${if} ${LangISOCode} = 1030 - StrCpy ${LangNme} "Dansk" - ${endif} - - ${if} ${LangISOCode} = 1031 - StrCpy ${LangNme} "Deutsch" - ${endif} - - ${if} ${LangISOCode} = 1033 - StrCpy ${LangNme} "English" - ${endif} - - ${if} ${LangISOCode} = 1034 - StrCpy ${LangNme} "Español" - ${endif} - - ${if} ${LangISOCode} = 1036 - StrCpy ${LangNme} "Français" - ${endif} - - ${if} ${LangISOCode} = 1040 - StrCpy ${LangNme} "Italiano" - ${endif} - - ${if} ${LangISOCode} = 1043 - StrCpy ${LangNme} "Nederlands" - ${endif} - - ${if} ${LangISOCode} = 1045 - StrCpy ${LangNme} "Polski" - ${endif} - - ${if} ${LangISOCode} = 1053 - StrCpy ${LangNme} "Svenska" - ${endif} - -!macroend - - -!macro GetLangCode LangCde Name - - ${if} ${Name} == "Dansk" - StrCpy ${LangCde} "da_DK" - ${endif} - - ${if} ${Name} == "Deutsch" - StrCpy ${LangCde} "de_DE" - ${endif} - - ${if} ${Name} == "English" - StrCpy ${LangCde} "en_EN" - ${endif} - - ${if} ${Name} == "Español" - StrCpy ${LangCde} "es_ES" - ${endif} - - ${if} ${Name} == "Euskara" - StrCpy ${LangCde} "eu_EU" - ${endif} - - ${if} ${Name} == "Français" - StrCpy ${LangCde} "fr_FR" - ${endif} - - ${if} ${Name} == "Italiano" - StrCpy ${LangCde} "it_IT" - ${endif} - - ${if} ${Name} == "Magyar nyelv" - StrCpy ${LangCde} "hu_HU" - ${endif} - - ${if} ${Name} == "Nederlands" - StrCpy ${LangCde} "nl_NL" - ${endif} - - ${if} ${Name} == "Norsk" - StrCpy ${LangCde} "no_NO" - ${endif} - - ${if} ${Name} == "Nynorsk" - StrCpy ${LangCde} "no_NY" - ${endif} - - ${if} ${Name} == "Polski" - StrCpy ${LangCde} "pl_PL" - ${endif} - - ${if} ${Name} == "Româna" - StrCpy ${LangCde} "ro_RO" - ${endif} - - ${if} ${Name} == "Russian" - StrCpy ${LangCde} "ru_RU" - ${endif} - - ${if} ${Name} == "Slovenský" - StrCpy ${LangCde} "sk_SK" - ${endif} - - ${if} ${Name} == "Slovenšcina" - StrCpy ${LangCde} "sl_SI" - ${endif} - - ${if} ${Name} == "Suomi" - StrCpy ${LangCde} "fi_FI" - ${endif} - - ${if} ${Name} == "Türkçe" - StrCpy ${LangCde} "tr_TR" - ${endif} - -!macroend diff --git a/development/Win32/packaging/installer/lyxfunc.nsh b/development/Win32/packaging/installer/lyxfunc.nsh deleted file mode 100644 index 2f5fadb784..0000000000 --- a/development/Win32/packaging/installer/lyxfunc.nsh +++ /dev/null @@ -1,14 +0,0 @@ -!ifndef _LYX_FUNC_NSH_ -!define _LYX_FUNC_NSH_ - -!macro LYX_DEFFUNC Name - !define `${Name}` `!insertmacro LYX_FUNCTION_${Name}` -!macroend - -!macro LYX_FUNC ShortName - !undef `${ShortName}` - !define `${ShortName}` `!insertmacro LYX_FUNCTION_${ShortName}_Call` - Function `${ShortName}` -!macroend - -!endif ; _LYX_FUNC_NSH_ diff --git a/development/Win32/packaging/installer/settings.nsh b/development/Win32/packaging/installer/settings.nsh new file mode 100644 index 0000000000..aa985ef7e9 --- /dev/null +++ b/development/Win32/packaging/installer/settings.nsh @@ -0,0 +1,103 @@ +/* + +Settings for LyX installer + +*/ + +;-------------------------------- +;File locations + +!define FILES_LICENSE "license.rtf" + +!define FILES_LYX "..\..\..\..\build\installprefix" +!define FILES_ICONS "..\icons" +!define FILES_QT "..\..\..\..\..\..\local\qt-3" +!define FILES_DEPS "..\..\..\..\..\..\local" +!define FILES_MSYS "..\..\..\..\..\.." +!define FILES_MINGW "..\..\..\..\..\..\mingw" +!define FILES_ASPELL "C:\Aspell\bin" +!define FILES_ASPELLDATA "..\..\..\..\..\..\local\aspell" +!define FILES_DVIPOST "..\..\..\..\..\..\local\dvipost" +!define FILES_PYTHON "C:\Python24" +!define FILES_WINDOWS "C:\Windows\System32" ;For Python DLL +!define FILES_FONTS "..\bakoma" + +;-------------------------------- +;Locations of components to download + +!define DOWNLOAD_LATEX "http://superb-west.dl.sourceforge.net/sourceforge/miktex/basic-miktex-2.4.2207.exe" +!define DOWNLOAD_IMAGEMAGICK "http://superb-west.dl.sourceforge.net/sourceforge/imagemagick/ImageMagick-6.2.8-0-Q16-windows-dll.exe" +!define DOWNLOAD_GHOSTSCRIPT "http://tug.ctan.org/tex-archive/nonfree/support/ghostscript/AFPL/gs853/gs853w32.exe" +!define DOWNLOAD_VIEWER "http://tug.ctan.org/tex-archive/nonfree/support/ghostscript/ghostgum/gsv48w32.exe" + +;-------------------------------- +;Download size (in KB) + +!define SIZE_DOWNLOAD_LATEX 32470 +!define SIZE_DOWNLOAD_IMAGEMAGICK 6582 +!define SIZE_DOWNLOAD_GHOSTSCRIPT 9325 +!define SIZE_DOWNLOAD_VIEWER 1459 + +;-------------------------------- +;Approximations of space required for components (in KB) + +!define SIZE_LATEX 133120 +!define SIZE_IMAGEMAGICK 20480 +!define SIZE_GHOSTSCRIPT 25600 +!define SIZE_VIEWER 4096 + +;-------------------------------- +;Locations of setup files for components (for bundled setup) + +!define INSTALL_LATEX "basic-miktex-2.4.2207.exe" +!define INSTALL_IMAGEMAGICK "ImageMagick-6.2.8-0-Q16-windows-dll.exe" +!define INSTALL_GHOSTSCRIPT "gs853w32.exe" +!define INSTALL_VIEWER "gsv48w32.exe" + +;-------------------------------- +;Names and version + +!define APP_NAME "LyX" +!define /date APP_VERSION "1.4.2svn %Y%m%d" +!define APP_SERIES_NAME "1.4" +!define APP_SERIES_KEY "14" +!define APP_DIR_USERDATA "LyX1.4.x" +!define APP_INFO "${APP_NAME} - The Document Processor" + +!define APP_RUN "bin\lyx.bat" +!define APP_EXE "bin\lyx.exe" + +!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" +!define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup" +!define APP_REGNAME_DOC "LyX.Document" + +!define APP_EXT ".lyx" +!define APP_MIME_TYPE "application/lyx" + +;-------------------------------- +;Setup settings + +!ifndef SETUPTYPE_BUNDLE + !define /date SETUP_EXE "lyx-142svn-%Y%m%d.exe" +!else + !define /date SETUP_EXE "lyx-142svn-%Y%m%d.exe-bundle.exe" +!endif + +!define SETUP_DEFAULT_DIRECTORY "$PROGRAMFILES\${APP_NAME}${APP_SERIES_KEY}" +!define SETUP_ICON "${FILES_ICONS}\lyx_32x32.ico" +!define SETUP_HEADERIMAGE "graphics\header.bmp" +!define SETUP_WIZARDIMAGE "graphics\wizard.bmp" +!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe" +!define SETUP_UNINSTALLER_KEY "${APP_NAME}" + +;-------------------------------- +;Names of binaries to identify compontents + +!define BIN_LATEX "latex.exe" +!define BIN_IMAGEMAGICK "convert.exe" +!define BIN_GHOSTSCRIPT "gswin32c.exe" + +;-------------------------------- +;Compession + +SetCompressor /SOLID lzma diff --git a/development/Win32/packaging/installer/strtrim.nsh b/development/Win32/packaging/installer/strtrim.nsh deleted file mode 100644 index 8a5af35211..0000000000 --- a/development/Win32/packaging/installer/strtrim.nsh +++ /dev/null @@ -1,127 +0,0 @@ -!ifndef _STRTRIM_NSH_ -!define _STRTRIM_NSH_ - -!include "lyxfunc.nsh" - -!insertmacro LYX_DEFFUNC `StrLTrim` -!insertmacro LYX_DEFFUNC `StrRTrim` -!insertmacro LYX_DEFFUNC `StrTrim` -!insertmacro LYX_DEFFUNC `StrRTrimChar` - -!macro LYX_FUNCTION_StrLTrim - !insertmacro LYX_FUNC `StrLTrim` - - ; After this point: - ; $0 = String (input) - ; $1 = Temp (temp) - - ; Get input from user - Exch $0 - Push $1 - -Loop: - StrCpy $1 "$0" 1 - StrCmp "$1" " " TrimLeft - StrCmp "$1" "$\r" TrimLeft - StrCmp "$1" "$\n" TrimLeft - StrCmp "$1" " " TrimLeft ; this is a tab. - GoTo Done -TrimLeft: - StrCpy $0 "$0" "" 1 - Goto Loop - -Done: - Pop $1 - Exch $0 - FunctionEnd -!macroend - -!macro LYX_FUNCTION_StrLTrim_Call Output Input - Push `${Input}` - Call StrLTrim - Pop `${Output}` -!macroend - -!macro LYX_FUNCTION_StrRTrim - !insertmacro LYX_FUNC `StrRTrim` - - ; After this point: - ; $0 = String (input) - ; $1 = Temp (temp) - - ; Get input from user - Exch $0 - Push $1 - -Loop: - StrCpy $1 "$0" 1 -1 - StrCmp "$1" " " TrimRight - StrCmp "$1" "$\r" TrimRight - StrCmp "$1" "$\n" TrimRight - StrCmp "$1" " " TrimRight ; this is a tab - GoTo Done -TrimRight: - StrCpy $0 "$0" -1 - Goto Loop - -Done: - Pop $1 - Exch $0 - FunctionEnd -!macroend - -!macro LYX_FUNCTION_StrRTrim_Call Output Input - Push `${Input}` - Call StrRTrim - Pop `${Output}` -!macroend - -!macro LYX_FUNCTION_StrTrim - !insertmacro LYX_FUNC `StrTrim` - Call StrLTrim - Call StrRTrim - FunctionEnd -!macroend - -!macro LYX_FUNCTION_StrTrim_Call Output Input - Push `${Input}` - Call StrTrim - Pop `${Output}` -!macroend - -!macro LYX_FUNCTION_StrRTrimChar - !insertmacro LYX_FUNC `StrRTrimChar` - - ; After this point: - ; $0 = Input - ; $1 = Char - ; $2 = Temp - - ; Get input from user - Exch $0 - Exch - Exch $1 - Push $2 - - StrCpy $2 "$0" 1 -1 - - StrCmp "$2" "$1" TrimRight - GoTo Done -TrimRight: - StrCpy $0 "$0" -1 - -Done: - Pop $2 - Pop $1 - Exch $0 - FunctionEnd -!macroend - -!macro LYX_FUNCTION_StrRTrimChar_Call Output Input Char - Push `${Char}` - Push `${Input}` - Call StrRTrimChar - Pop `${Output}` -!macroend - -!endif ; _STRTRIM_NSH_ diff --git a/development/Win32/packaging/package_lyxwin.sh b/development/Win32/packaging/package_lyxwin.sh deleted file mode 100644 index 5a20d2890f..0000000000 --- a/development/Win32/packaging/package_lyxwin.sh +++ /dev/null @@ -1,74 +0,0 @@ -#! /bin/sh - -# This script aims to do averything necessary to automate the packaging -# of LyX/Win ready for an Windows Installer to be built. - -# It copies these files into the appropriate places in the LyX tree. -# qt-mt3.dll -# iconv.dll -# mingw10.dll -# dv2dt.exe -# dt2dv.exe - -# It strips the executables. - -# It adds formats and converters to the Resources/configure script to -# ensure that the generated .dvi file is usable. - -# It removes all stuff generated by running configure: -# xfonts/ -# doc/LaTeXConfig.lyx -# lyxrc.defaults -# packages.lst -# textclass.lst - -# The installee should regenerate them by running configure on his machine. - -QT_DLL="$HOME/Qt/3x-msys/bin/qt-mt3.dll" -ICONV_DLL="/j/MinGW/bin/iconv.dll" -MINGW_DLL="/j/MinGW/bin/mingwm10.dll" -DTL_DIR=dtl -DT2DV="$DTL_DIR/dt2dv.exe" -DV2DT="$DTL_DIR/dv2dt.exe" - -LYX_INSTALL_DIR="../../../build/installprefix" - -# Change this to 'mv -f' when you are confident that -# the various sed scripts are working correctly. -MV='mv -f' - -windows_packaging() -{ - # Install the necessary .dlls. - for file in "${QT_DLL}" "${ICONV_DLL}" "${MINGW_DLL}" "${DT2DV}" "${DV2DT}" - do - cp "${file}" "$LYX_INSTALL_DIR"/bin/. || { - echo "Failed to copy ${file} to the LyX package" >&2 - exit 1 - } - done - - # Strip the executables - ( - cd "${LYX_INSTALL_DIR}/bin" - for file in *.exe - do - strip $file - done - ) - - # Strip the executables - ( - cd "${LYX_INSTALL_DIR}/Resources" - rm -rf xfonts - for file in doc/LaTeXConfig.lyx lyxrc.defaults packages.lst textclass.lst - do - rm -f $file - done - ) -} - - -windows_packaging || exit 1 - -# The end