2007-02-08 21:09:30 +00:00
|
|
|
/*
|
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
declarations.nsh
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
Standard header files, shared variables
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
*/
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +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-04-22 18:33:20 +00:00
|
|
|
# Multi-User settings
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
!define MULTIUSER_EXECUTIONLEVEL Highest
|
|
|
|
!define MULTIUSER_INSTALLMODE_COMMANDLINE
|
|
|
|
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "${APP_REGKEY}"
|
|
|
|
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME ""
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
!define MULTIUSER_INSTALLMODE_INSTDIR "${APP_DIR}"
|
|
|
|
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "${APP_REGKEY}"
|
|
|
|
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME ""
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
!define MULTIUSER_INSTALLMODE_FUNCTION InitUser
|
|
|
|
!define MULTIUSER_MUI
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-06-28 07:34:49 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +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-06-28 07:34:49 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# Windows constants
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-22 18:33:20 +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-04-22 18:33:20 +00:00
|
|
|
# Variables
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
Var PathLaTeX
|
2008-03-31 17:42:30 +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
|
|
|
|
|
2008-04-22 18:33:20 +00:00
|
|
|
Var PrinterConf
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-04-22 18:33:20 +00:00
|
|
|
# Include standard functions
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
!insertmacro GetParent
|
|
|
|
!insertmacro VersionCompare
|
|
|
|
!insertmacro WordFind2X
|