]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/AltInstaller/Settings.nsh
installer: updates for LyX 1.6rc2
[lyx.git] / development / Win32 / packaging / AltInstaller / Settings.nsh
1 # installer settings
2 # You should need to change only these macros for new releases.
3
4 !define PRODUCT_DIR "D:\LyXPackage1.6"
5 !define PRODUCT_NAME "LyX"
6 !define PRODUCT_VERSION "1.6.0rc2"
7 !define PRODUCT_VERSION_SHORT "16rc2"
8 !define PRODUCT_SUBFOLDER "lyx16"
9 !define PRODUCT_LICENSE_FILE "${PRODUCT_DIR}\License.txt"
10 !define PRODUCT_SOURCEDIR "${PRODUCT_DIR}\LyX"
11 !define PRODUCT_EXE "$INSTDIR\bin\lyx.exe"
12 !define PRODUCT_BAT "$INSTDIR\bin\lyx.bat"
13 !define PRODUCT_EXT ".lyx"
14 !define PRODUCT_REGNAME "LyX.Document"
15 !define PRODUCT_MIME_TYPE "application/lyx"
16 !define PRODUCT_UNINSTALL_EXE "$INSTDIR\LyXWinUninstall.exe"
17 !define PRODUCT_HELP_LINK "http://www.lyx.org/internet/mailing.php"
18 !define PRODUCT_ABOUT_URL "http://www.lyx.org/about/"
19 !define PRODUCT_INFO_URL "http://www.lyx.org/"
20 !define LAUNCHER_EXE "$INSTDIR\bin\LyXLauncher.exe"
21 !define INSTALLER_SUBVERSION "08"
22
23 BrandingText "LyXWinInstaller v4.${INSTALLER_SUBVERSION} - ${INSTALLER_VERSION}"
24
25 # to check later if this installer version is running at the same time
26 !define INSTALLER_EXE "LyX-${PRODUCT_VERSION_SHORT}-4-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER_VERSION}.exe"
27 !define INSTALLER2_EXE "LyX-${PRODUCT_VERSION_SHORT}-4-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER2_VERSION}.exe"
28 !define INSTALLER3_EXE "LyX-${PRODUCT_VERSION_SHORT}-4-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER3_VERSION}.exe"
29 !define VERSION_BITMAP "${PRODUCT_DIR}\icons\lyx_logo_vert${PRODUCT_VERSION_SHORT}.bmp"
30
31 # Replaced by HKLM or HKCU depending on SetShellVarContext.
32 !define PRODUCT_ROOT_KEY "SHCTX"
33
34 ; registry preparations
35 !define SHCNE_ASSOCCHANGED 0x08000000
36 !define SHCNF_IDLIST 0
37 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\lyx.exe"
38 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX${PRODUCT_VERSION_SHORT}"
39 !define PRODUCT_DIR_REGKEY_2 "Software\LyX\LyX-${PRODUCT_VERSION}"
40
41 # definitions for the Update installer
42 !if ${INSTALLER_VERSION} == "Update"
43  !define PRODUCT_UNINST_KEY_OLD "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX16svn3"
44  !define PRODUCT_VERSION_OLD "LyX 1.6.0rc1"
45  !define PRODUCT_VERSION_SHORT_OLD "16rc1"
46  !define JabRefVersion "2.3.1" # could be an older version
47  !define ImageMagickVersion_Old "6.4.2" # could be an older version
48  !define GhostscriptVersion_Old "8.62" # could be an older version
49  !define MiKTeXDeliveredVersion "2.7" # could be an older version
50 !endif
51
52 # definitions for the Small installer
53 !if ${INSTALLER_VERSION} == "Small"
54  !define JabRefVersion "none" # dummy entry to avoid NSIS warnig
55  !define MiKTeXDeliveredVersion "none" # dummy entry to avoid NSIS warnig
56 !endif
57
58 # definitions for the Complete installer
59 !if ${INSTALLER_VERSION} == "Complete"
60  !define GSviewInstall "external\gsv49w32.exe"
61  !define JabRefInstall "external\JabRef-2.3.1-Setup.exe"
62  !define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.7.3107.exe"
63  !define JabRefVersion "2.3.1"
64  !define MiKTeXDeliveredVersion "2.7"
65 !endif
66
67 !define ClassFileDir "${PRODUCT_SOURCEDIR}\Resources\tex"
68
69 !define ImageMagickVersion "6.4.2"
70 # for some odd reason the ImageMagick folder may not be a subfolder of $INSTDIR\bin!
71 !define ImageMagickDir "$INSTDIR\etc\ImageMagick"
72 !define GhostscriptDir "$INSTDIR\etc\Ghostscript"
73 !define GhostscriptVersion "8.62"
74 !define AiksaurusDir "$APPDATA\Aiksaurus"
75 !define AiksaurusInstall "external\Aiksaurus"
76 !define AspellDir "$APPDATA\Aspell"
77 !define AspellDisplay "Aspell 0.60.4 Data"
78 !define AspellInstall "external\Aspell"
79 !define AspellUninstall "Uninstall-AspellData.exe"
80 !define AspellDictPath "${AspellDir}\Dictionaries"
81 !define AspellPersonalPath "${AspellDir}\Personal"
82 !define AspellLocationExact "http://developer.berlios.de/project/showfiles.php?group_id=5117&release_id=12973"
83 !define AspellLocation "http://developer.berlios.de/projects/lyxwininstall/"
84 !define DVIPostFileDir "${PRODUCT_SOURCEDIR}\external\dvipost"
85 # the following variable is needed for a possible CD-version
86 #!define LaTeXPackagesDir "${PRODUCT_SOURCEDIR}\latex"
87 !define MiKTeXRepo "ftp://ftp.tu-chemnitz.de/pub/tex/systems/win32/miktex/tm/packages/"
88
89 #--------------------------------
90 # make some of the information above available to NSIS.
91
92 Name "${PRODUCT_NAME}"
93 OutFile "${INSTALLER_EXE}"
94 InstallDir "$PROGRAMFILES\${PRODUCT_NAME} ${PRODUCT_VERSION}"
95
96 # set execution level for Windows Vista
97 RequestExecutionLevel admin
98