diff --git a/development/Win32/packaging/installer/include/declarations.nsh b/development/Win32/packaging/installer/include/declarations.nsh index 0453778255..08a5b67060 100644 --- a/development/Win32/packaging/installer/include/declarations.nsh +++ b/development/Win32/packaging/installer/include/declarations.nsh @@ -38,7 +38,11 @@ SetCompressor /SOLID lzma !define FILES_LAUNCHER "..\..\launcher" !define FILES_PDFVIEW "..\..\pdfview" -!define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375" +!if ${COMPILER_OS} == VISTA + !define FILES_MSVC "$%SystemRoot%\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91" +!else + !define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375" +!endif !define FILES_PYTHON "${FILES_DEPS}\python" !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick" !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript" @@ -59,8 +63,8 @@ SetCompressor /SOLID lzma #-------------------------------- # Locations of components to download -!define MIRROR_SF1 "http://superb-west.dl.sourceforge.net/sourceforge" -!define MIRROR_SF2 "http://mesh.dl.sourceforge.net/sourceforge" +!define MIRROR_SF1 "http://downloads.sourceforge.net" # A random mirror is selected +!define MIRROR_SF2 "http://downloads.sourceforge.net" !macro SourceForgeMirror ID FILENAME !define DOWNLOAD_${ID} "${MIRROR_SF1}/${FILENAME}" diff --git a/development/Win32/packaging/installer/settings.nsh b/development/Win32/packaging/installer/settings.nsh index ec70b11706..565183a0d4 100644 --- a/development/Win32/packaging/installer/settings.nsh +++ b/development/Win32/packaging/installer/settings.nsh @@ -6,6 +6,12 @@ These typically need to be modified for each LyX release */ +#-------------------------------- +# Windows version on which the complier is running + +!define COMPILER_OS VISTA +#!define COMPILER_OS XP + #-------------------------------- # Version number diff --git a/development/Win32/packaging/installer/setup/configure.nsh b/development/Win32/packaging/installer/setup/configure.nsh index e7cb47b2d7..e6a408a54b 100644 --- a/development/Win32/packaging/installer/setup/configure.nsh +++ b/development/Win32/packaging/installer/setup/configure.nsh @@ -164,7 +164,7 @@ Section -PSPrinter ExecWait '$PrinterConf /q /dd /m "Metafile to EPS Converter"' # Install printer and driver - ExecWait '$PrinterConf /q /if /f "$INSTDIR\PSPrinter\metafile2eps.inf" /r "FILE:" /m "Metafile to EPS Converter"' + ExecWait '$PrinterConf /if /f "$INSTDIR\PSPrinter\metafile2eps.inf" /r "FILE:" /m "Metafile to EPS Converter"' # Restore DEVMODE with proper settings ExecWait '$PrinterConf /q /Sr /n "Metafile to EPS Converter" /a "$INSTDIR\PSPrinter\metafile2eps.dat" g'