]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/LyXWinInstaller/Settings.nsh
Changed comment character from ';' to '#*
[lyx.git] / development / Win32 / packaging / installer / LyXWinInstaller / Settings.nsh
1 # installer settings
2 # You should need to change only these macros for new releases.
3
4 !define PRODUCT_DIR "c:\lyx\LyXPackage"
5 !define PRODUCT_NAME "LyX"
6 !define PRODUCT_VERSION "1.5svn-02-05-2007"
7 !define PRODUCT_VERSION_SHORT "150svn"
8 !define PRODUCT_SUBFOLDER "lyx15"
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_NAME "LyXLauncher.exe"
21 !define LAUNCHER_EXE "$INSTDIR\bin\LyXLauncher.exe"
22
23 BrandingText "LyXWinInstaller v3.14 - ${INSTALLER_VERSION}"
24
25 # to check later if this installer version is running at the same time
26 !define INSTALLER_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER_VERSION}-3-14.exe"
27 !define INSTALLER2_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER2_VERSION}-3-14.exe"
28 !define INSTALLER3_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER3_VERSION}-3-14.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
40 # definitions for the Update installer
41 !if ${INSTALLER_VERSION} == "Update"
42  !define PRODUCT_UNINST_KEY_OLD "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX150svn"
43  !define PRODUCT_VERSION_OLD "LyX 1.5beta2-21-04-2007"
44  !define PRODUCT_UNINSTALL_EXE_OLD "$INSTDIR\LyXWinUninstall.exe"
45  !define PRODUCT_VERSION_SHORT_OLD "150svn"
46  !define JabRefVersionOld "JabRef 2.2"
47  !define MiKTeXDeliveredVersionOld "MiKTeX 2.5"
48 !endif
49
50 # definitions for the Small installer
51 !if ${INSTALLER_VERSION} == "Small"
52  !define JabRefVersion "none" # dummy entry to avoid NSIS warnig
53  !define MiKTeXDeliveredVersion "none" # dummy entry to avoid NSIS warnig
54 !endif
55
56 # definitions for the Complete installer
57 !if ${INSTALLER_VERSION} == "Complete"
58  !define GSviewInstall "external\gsv48w32.exe"
59  !define JabRefInstall "external\JabRef-2.2-Setup.exe"
60  !define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.5.2580.exe"
61  !define JabRefVersion "JabRef 2.2"
62  !define MiKTeXDeliveredVersion "MiKTeX 2.5"
63 !endif
64
65 !define ClassFileDir "${PRODUCT_SOURCEDIR}\Resources\tex"
66
67 !define ImageMagickVersion "6.3.3"
68 # for some odd reason the ImageMagick folder may not be a subfolder of $INSTDIR\bin!
69 !define ImageMagickDir "$INSTDIR\etc\ImageMagick"
70 !define GhostscriptDir "$INSTDIR\etc\Ghostscript"
71 !define GhostscriptVersion "8.56"
72 !define AiksaurusDir "$APPDATA\Aiksaurus"
73 !define AiksaurusInstall "external\Aiksaurus"
74 !define AspellDir "$APPDATA\Aspell"
75 !define AspellDisplay "Aspell 0.60.4 Data"
76 !define AspellInstall "external\Aspell"
77 !define AspellUninstall "Uninstall-AspellData.exe"
78 !define AspellDictPath "${AspellDir}\Dictionaries"
79 !define AspellPersonalPath "${AspellDir}\Personal"
80 !define AspellLocationExact "http://developer.berlios.de/project/showfiles.php?group_id=5117&release_id=9651"
81 !define AspellLocation "http://developer.berlios.de/projects/lyxwininstall/"
82 !define DVIPostFileDir "${PRODUCT_SOURCEDIR}\external\dvipost"
83 # the following variable is needed for a possible CD-version
84 #!define LaTeXPackagesDir "${PRODUCT_SOURCEDIR}\latex"
85 !define MiKTeXRepo "ftp://ftp.tu-chemnitz.de/pub/tex/systems/win32/miktex/tm/packages/"
86 !define MiKTeXConfigFolder "MiKTeX\2.5\miktex\config"
87
88 #--------------------------------
89 # make some of the information above available to NSIS.
90
91 Name "${PRODUCT_NAME}"
92 OutFile "${INSTALLER_EXE}"
93 InstallDir "$PROGRAMFILES\${PRODUCT_NAME} ${PRODUCT_VERSION}"
94