4 Binaries, Resources, Python, Aspell
8 #--------------------------------
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.
20 SetOutPath "$INSTDIR\bin"
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"
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\"
31 !insertmacro FileListDllMSVCBin File "${FILES_DEPS}\bin\"
32 !insertmacro FileListMSVCBin File "${FILES_MSVC}\"
33 !insertmacro FileListMSVCManifest File "..\"
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}\"
43 SetOutPath "$INSTDIR\bin"
44 !insertmacro FileListLyXIcons File "${FILES_ICONS}\"
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}\"
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\"
69 # copy installer to pluginsdir (a temp dir)
70 File /oname=$PLUGINSDIR\AspellData.exe "${FILES_ASPELLDATA}\AspellData.exe"
72 # silently install AspellData.exe (/S option)
73 ${if} $CurrentUserInstall == ${TRUE}
74 ExecWait '"$PLUGINSDIR\AspellData.exe" /S /CurrentUser'
76 ExecWait '"$PLUGINSDIR\AspellData.exe" /S /AllUsers'
79 # remove the installer
80 Delete "$PLUGINSDIR\AspellData.exe"
84 SetOutPath "$INSTDIR\aiksaurus"
85 !insertmacro FileListAiksaurusData File "${FILES_AIKSAURUS}\"
87 # Helper DLLs for NSIS-based tools
89 SetOutPath "$INSTDIR\bin"
90 !insertmacro FileListNSISPluginsStandard File "${NSISDIR}\Plugins\"
91 !insertmacro FileListNSISPlugins File "${FILES_NSISPLUGINS}\"
94 WriteUninstaller "$INSTDIR\${SETUP_UNINSTALLER}"