mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
f9e5128e31
* Add option to bundle required ImageMagick/Ghostscript files without the need to modify registry keys that belong to the original applications. This allows for full support for installation by limited users, gives different users the possibility to have a different setup of all LyX tools and reduces download size. The necessary files will be included in the dependency package. * Python, ImageMagick and Ghostscript will now all be compiled using the same MSVC compiler and can use the same C runtimes. This reduces the installer size. * Compile Python files during installation to improve performance. Limited users may not have access to the installation folders so the files cannot be compiled afterwards. * Only the settings that typically need to be changed for LyX releases are now in settings.nsh. * Rename launcher executable to LyXLauncher.exe to match the alternative installer. * Minor fixes and cleanup. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24574 a592a061-630c-0410-9148-cb99ea01b6c8
123 lines
4.4 KiB
Plaintext
123 lines
4.4 KiB
Plaintext
/*
|
|
|
|
uninstall.nsh
|
|
|
|
Uninstall
|
|
|
|
*/
|
|
|
|
Var FileAssociation
|
|
|
|
Section "un.Program Files" un.SecProgramFiles
|
|
|
|
# Binaries
|
|
!insertmacro FileListLyXBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListLyXLauncher Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListQtBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListDll Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListNetpbmBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListDTLBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListDvipostBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListPDFToolsBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListPDFViewBin Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListNSISPluginsStandard Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListNSISPlugins Delete "$INSTDIR\bin\"
|
|
!insertmacro FileListMetaFile2EPS Delete "$INSTDIR\bin\"
|
|
RMDir "$INSTDIR\bin"
|
|
|
|
# Resources
|
|
RMDir /r "$INSTDIR\Resources"
|
|
|
|
# Components of Python
|
|
!insertmacro FileListPythonLibEncodings Delete "$INSTDIR\python\Lib\encodings\"
|
|
Delete "$INSTDIR\python\Lib\encodings\*.pyc"
|
|
RMDir "$INSTDIR\python\Lib\encodings"
|
|
!insertmacro FileListPythonLib Delete "$INSTDIR\python\Lib\"
|
|
Delete "$INSTDIR\python\Lib\*.pyc"
|
|
RMDir "$INSTDIR\python\Lib"
|
|
!insertmacro FileListPythonBin Delete "$INSTDIR\python\"
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\python\"
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\python\"
|
|
RMDir "$INSTDIR\python"
|
|
|
|
# Components of ImageMagick
|
|
!insertmacro FileListImageMagick Delete "$INSTDIR\imagemagick\"
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\imagemagick\"
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\imagemagick\"
|
|
RMDir "$INSTDIR\imagemagick"
|
|
|
|
# Components of Ghostscript
|
|
!insertmacro FileListGhostscriptBin Delete "$INSTDIR\ghostscript\bin\"
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\ghostscript\bin\"
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\ghostscript\bin\"
|
|
RMDir "$INSTDIR\ghostscript\bin"
|
|
!insertmacro FileListGhostscriptLib Delete "$INSTDIR\ghostscript\lib\"
|
|
RMDir "$INSTDIR\ghostscript\lib"
|
|
!insertmacro FileListGhostscriptFonts Delete "$INSTDIR\ghostscript\fonts\"
|
|
RMDir "$INSTDIR\ghostscript\fonts"
|
|
!insertmacro FileListGhostscriptResourceCMap Delete "$INSTDIR\ghostscript\Resource\CMap\"
|
|
RMDir "$INSTDIR\ghostscript\Resource\CMap"
|
|
!insertmacro FileListGhostscriptResourceColorSpace Delete "$INSTDIR\ghostscript\Resource\ColorSpace\"
|
|
RMDir "$INSTDIR\ghostscript\Resource\ColorSpace"
|
|
!insertmacro FileListGhostscriptResourceDecoding Delete "$INSTDIR\ghostscript\Resource\Decoding\"
|
|
RMDir "$INSTDIR\ghostscript\Resource\Decoding"
|
|
!insertmacro FileListGhostscriptResourceEncoding Delete "$INSTDIR\ghostscript\Resource\Encoding\"
|
|
RMDir "$INSTDIR\ghostscript\Resource\Encoding"
|
|
RMDir "$INSTDIR\ghostscript\Resource"
|
|
RMDir "$INSTDIR\ghostscript"
|
|
|
|
# Aiksaurus Data
|
|
!insertmacro FileListAiksaurusData Delete "$INSTDIR\aiksaurus\"
|
|
RMDir "$INSTDIR\aiksaurus"
|
|
|
|
# Postscript printer for metafile to EPS converter
|
|
!insertmacro FileListPSPrinter Delete "$INSTDIR\PSPrinter\"
|
|
RMDir "$INSTDIR\PsPrinter"
|
|
|
|
# Shortcuts
|
|
Delete "$SMPROGRAMS\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
|
Delete "$DESKTOP\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
|
|
|
# Uninstaller itself
|
|
Delete "$INSTDIR\${SETUP_UNINSTALLER}"
|
|
|
|
# Application folder
|
|
SetOutPath "$TEMP"
|
|
RMDir "$INSTDIR"
|
|
|
|
# Registry keys
|
|
DeleteRegKey SHELL_CONTEXT "${APP_REGKEY_SETUP}"
|
|
DeleteRegKey SHELL_CONTEXT "${APP_REGKEY}"
|
|
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_REGNAME_DOC}"
|
|
DeleteRegKey SHELL_CONTEXT "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
|
|
|
|
# File associations
|
|
|
|
ReadRegStr $FileAssociation SHELL_CONTEXT "Software\Classes\${APP_EXT}" ""
|
|
|
|
${If} $FileAssociation == "${APP_REGNAME_DOC}"
|
|
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_EXT}"
|
|
${EndIf}
|
|
|
|
${If} $MultiUser.Privileges != "Admin"
|
|
${OrIf} $MultiUser.Privileges != "Power"
|
|
|
|
# Delete Postscript printer for metafile o EPS conversion
|
|
ExecWait '$PrinterConf /q /dl /n "Metafile to EPS Converter"'
|
|
|
|
# Also delete printer driver
|
|
ExecWait '$PrinterConf /q /dd /m "Metafile to EPS Converter"'
|
|
|
|
${EndIf}
|
|
|
|
SectionEnd
|
|
|
|
Section "un.User Preferences and Custom Files" un.SecUserFiles
|
|
|
|
SetShellVarContext current
|
|
RMDir /r "$APPDATA\${APP_DIR_USERDATA}"
|
|
|
|
SectionEnd
|