From a436607e3b9c1d60b4e53483f48ab9f5f98f8ca1 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 19 Jun 2007 19:29:36 +0000 Subject: [PATCH] Add an alternative aspell dict repository, fix bug 3813 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18833 a592a061-630c-0410-9148-cb99ea01b6c8 --- .../Win32/packaging/installer/components/dicts.nsh | 8 +++++++- development/Win32/packaging/installer/settings.nsh | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/development/Win32/packaging/installer/components/dicts.nsh b/development/Win32/packaging/installer/components/dicts.nsh index 2a4230ba29..3bed538d90 100644 --- a/development/Win32/packaging/installer/components/dicts.nsh +++ b/development/Win32/packaging/installer/components/dicts.nsh @@ -109,7 +109,13 @@ Function DownloadDictionary Pop $R3 ${if} $R3 != "OK" - #Download failed + #Download failed, try an alternative link + InetLoad::load "${ALT_DOWNLOAD_ASPELLDICTS}/aspell6-$R0.exe" "$PLUGINSDIR\aspell6-$R0.exe" /END + Pop $R3 + ${endif} + + ${if} $R3 != "OK" + #Download failed again MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED_DICT) ($R3)" IDYES dict_download Goto dict_noinstall ${endif} diff --git a/development/Win32/packaging/installer/settings.nsh b/development/Win32/packaging/installer/settings.nsh index 504f22b51e..ec0d66efae 100644 --- a/development/Win32/packaging/installer/settings.nsh +++ b/development/Win32/packaging/installer/settings.nsh @@ -35,6 +35,7 @@ Settings for LyX installer !define DOWNLOAD_VIEWER "http://tug.ctan.org/tex-archive/nonfree/support/ghostscript/ghostgum/gsv48w32.exe" !define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows" +!define ALT_DOWNLOAD_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows" #-------------------------------- #Download size (in KB) -- 2.39.2