2007-02-08 21:09:30 +00:00
|
|
|
/*
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
declarations.nsh
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
Standard header files, shared variables
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
*/
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
# Defines based on settings
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!ifndef SETUPTYPE_BUNDLE
|
|
|
|
!define SETUPTYPE_NAME DOWNLOAD
|
|
|
|
!else
|
|
|
|
!define SETUPTYPE_NAME INSTALL
|
|
|
|
!endif
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
# Multi-User settings
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
!define MULTIUSER_EXECUTIONLEVEL Highest
|
|
|
|
!define MULTIUSER_INSTALLMODE_COMMANDLINE
|
|
|
|
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "${APP_REGKEY}"
|
|
|
|
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME ""
|
|
|
|
!define MULTIUSER_INSTALLMODE_FUNCTION InitUser
|
|
|
|
!define MULTIUSER_MUI
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
# Standard header files
|
|
|
|
|
|
|
|
!include MUI2.nsh
|
|
|
|
!include LogicLib.nsh
|
|
|
|
!include StrFunc.nsh
|
|
|
|
!include FileFunc.nsh
|
|
|
|
!include WordFunc.nsh
|
|
|
|
!include Sections.nsh
|
|
|
|
!include WinVer.nsh
|
|
|
|
!include LangFile.nsh
|
|
|
|
!include MultiUser.nsh
|
|
|
|
!include nsDialogs.nsh
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-06-28 07:34:49 +00:00
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
# Windows constants
|
2007-06-28 07:34:49 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
!define SHCNE_ASSOCCHANGED 0x08000000
|
|
|
|
!define SHCNF_IDLIST 0x0000
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
# Variables
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
Var PathLaTeX
|
2008-03-31 15:31:09 +00:00
|
|
|
Var PathLaTeXLocal
|
2007-02-08 21:09:30 +00:00
|
|
|
Var PathImageMagick
|
|
|
|
Var PathGhostscript
|
|
|
|
|
|
|
|
Var SetupLaTeX
|
|
|
|
Var SetupImageMagick
|
|
|
|
Var SetupGhostscript
|
|
|
|
|
|
|
|
Var SizeLaTeX
|
|
|
|
Var SizeImageMagick
|
|
|
|
Var SizeGhostscript
|
|
|
|
|
|
|
|
Var LangName
|
|
|
|
Var LangISOCode
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-03-30 21:37:53 +00:00
|
|
|
# Include standard functions
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!insertmacro GetParent
|
|
|
|
!insertmacro VersionCompare
|
|
|
|
!insertmacro WordFind2X
|