]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/components/core.nsh
remove a typo that breaks windows installer
[lyx.git] / development / Win32 / packaging / installer / components / core.nsh
1 /*
2
3 LyX Core
4 Binaries, Resources, Python, Aspell
5
6 */
7
8 #--------------------------------
9 #Sections
10
11 Section -Core SecCore
12
13   # Install and register the core LyX files
14   # Initializes the plug-ins dir ($PLUGINSDIR) if not already initialized.
15   # $PLUGINSDIR is automatically deleted when the installer exits.
16   InitPluginsDir
17   
18   # Binaries
19   
20   SetOutPath "$INSTDIR\bin"
21
22   # launcher becomes lyx.exe while the real lyx.exe is renamed to lyxc.exe
23   File "${FILES_LAUNCHER}\lyx.exe"
24   File /oname=lyxc.exe "${FILES_LYX}\bin\lyx.exe"
25   
26   # The macros are defined in filelists.nsh
27   # the parameters are COMMAND DIRECTORY that form command '${COMMAND} "${DIRECTORY}files"
28   !insertmacro FileListLyXBin File "${FILES_LYX}\bin\"
29   !insertmacro FileListQtBin File "${FILES_QT}\bin\"
30   
31   !insertmacro FileListDllMSVCBin File "${FILES_DEPS}\bin\"
32   !insertmacro FileListMSVCBin File "${FILES_MSVC}\"
33   !insertmacro FileListMSVCManifest File "..\"    
34
35   !insertmacro FileListNetpbmBin File "${FILES_NETPBM}\"
36   !insertmacro FileListDvipostBin File "${FILES_DVIPOST}\"
37   !insertmacro FileListDTLBin File "${FILES_DTL}\"
38   !insertmacro FileListPDFViewBin File "${FILES_PDFVIEW}\"
39   !insertmacro FileListPDFToolsBin File "${FILES_PDFTOOLS}\"
40
41   # Icons
42   
43   SetOutPath "$INSTDIR\bin"
44   !insertmacro FileListLyXIcons File "${FILES_ICONS}\"
45
46   # Resources
47   
48   SetOutPath "$INSTDIR"
49   # recursively copy all files under Resources
50   File /r "${FILES_LYX}\Resources"
51   SetOutPath "$INSTDIR\Resources\fonts"
52   # put additional fonts to Resources\fonts
53   !insertmacro FileListFonts File "${FILES_FONTS}\"  
54   
55   #Components of Python
56   
57   SetOutPath "$INSTDIR\python"
58   !insertmacro FileListPythonBin File "${FILES_PYTHON}\"
59   SetOutPath "$INSTDIR\python"
60   !insertmacro FileListPythonDll File "${FILES_WINDOWS}\System32\"
61   !insertmacro FileListUnicodeDll File "${FILES_PYTHON}\DLLs\"
62   SetOutPath "$INSTDIR\python\Lib"
63   !insertmacro FileListPythonLib File "${FILES_PYTHON}\Lib\"
64   SetOutPath "$INSTDIR\python\Lib\encodings"
65   !insertmacro FileListPythonLibEncodings File "${FILES_PYTHON}\Lib\encodings\"
66   
67   # Aspell
68
69   # copy installer to pluginsdir (a temp dir)
70   File /oname=$PLUGINSDIR\AspellData.exe "${FILES_ASPELLDATA}\AspellData.exe"
71
72   # silently install AspellData.exe (/S option)
73   ${if} $CurrentUserInstall == ${TRUE}
74     ExecWait '"$PLUGINSDIR\AspellData.exe" /S /CurrentUser'
75   ${else}
76     ExecWait '"$PLUGINSDIR\AspellData.exe" /S /AllUsers'
77   ${endif}
78
79   # remove the installer
80   Delete "$PLUGINSDIR\AspellData.exe"
81
82   # Aiksarus data
83   
84   SetOutPath "$INSTDIR\aiksaurus"
85   !insertmacro FileListAiksaurusData File "${FILES_AIKSAURUS}\"
86   
87   # Helper DLLs for NSIS-based tools
88   
89   SetOutPath "$INSTDIR\bin"
90   !insertmacro FileListNSISPluginsStandard File "${NSISDIR}\Plugins\"
91   !insertmacro FileListNSISPlugins File "${FILES_NSISPLUGINS}\"
92   
93   # Create uninstaller
94   WriteUninstaller "$INSTDIR\${SETUP_UNINSTALLER}"
95
96 SectionEnd