lyx_mirror/development/Win32/packaging/installer/include/declarations.nsh
Joost Verburg a7594d6ca8 * Improved multi-user installation. It is now easier to have both a system as well as a local version of LyX installed.
* Installation for all users is the default for Power Users and Administrators
* For silent installation, it is possible to use the /AllUsers or /CurrentUser command line parameter to choose for which users you want to install
* Updated list of supported languages. The "red" languages from http://www.lyx.org/devel/i18n.php have been removed.
* Language and dictionary names are no longer in English but are translated in the language itself
* One single list with language names, ISO codes and identifiers
* Both the installer and uninstaller automatically detect the user interface language
* Added more space in the user interface for translated texts
* Added all Python encoding files so there will be no problems with future Python scripts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15200 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-02 17:21:20 +00:00

116 lines
2.2 KiB
Plaintext

/*
Declarations
*/
!include "settings.user.nsh"
!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 "StrFunc.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
ReserveFile "${FILES_DVIPOST_PKG}\dvipost.sty"
;--------------------------------
;Variables
Var AdminOrPowerUser
Var CurrentUserInstall
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 LangISOCode
Var AspellHive
;--------------------------------
;Include standard functions
!insertmacro FUNCTION_STRING_StrStr
!insertmacro FUNCTION_STRING_UnStrStr
!insertmacro GetParent
!insertmacro VersionCompare
!insertmacro WordFind2X
;--------------------------------
;Macros
!macro ReDef NAME VALUE
;Redefine a pre-processor definition
!ifdef `${NAME}`
!undef `${NAME}`
!endif
!define `${NAME}` `${VALUE}`
!macroend
!macro CallFunc FUNCTION INPUT VAROUT
;Calls a function that modifies a single value on the stack
Push ${INPUT}
Call ${FUNCTION}
Pop ${VAROUT}
!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"