]> git.lyx.org Git - features.git/commitdiff
lots of installer improvements:
authorJoost Verburg <joostverburg@users.sourceforge.net>
Thu, 1 May 2008 18:33:36 +0000 (18:33 +0000)
committerJoost Verburg <joostverburg@users.sourceforge.net>
Thu, 1 May 2008 18:33:36 +0000 (18:33 +0000)
* 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

19 files changed:
development/Win32/launcher/launcher.nsi
development/Win32/packaging/installer/gui/external.nsh
development/Win32/packaging/installer/include/declarations.nsh
development/Win32/packaging/installer/include/filelist.nsh
development/Win32/packaging/installer/include/gui.nsh
development/Win32/packaging/installer/include/init.nsh
development/Win32/packaging/installer/include/nsis.nsh [new file with mode: 0644]
development/Win32/packaging/installer/include/variables.nsh [new file with mode: 0644]
development/Win32/packaging/installer/lang/english.nsh
development/Win32/packaging/installer/lang/french.nsh
development/Win32/packaging/installer/lang/german.nsh
development/Win32/packaging/installer/lang/italian.nsh
development/Win32/packaging/installer/license.rtf
development/Win32/packaging/installer/lyx.nsi
development/Win32/packaging/installer/settings.nsh
development/Win32/packaging/installer/setup/configure.nsh
development/Win32/packaging/installer/setup/install.nsh
development/Win32/packaging/installer/setup/uninstall.nsh
development/scons/scons_utils.py

index c7f5f8a4e12a4d4d550fc6b4cd31040ea46f03cf..7b4d90beac760aa56422a2b2878d6c51ce6582a1 100644 (file)
@@ -12,39 +12,51 @@ also included.
 
 */
 
-!include "MUI.nsh"
-!include "LogicLib.nsh"
-!include "FileFunc.nsh"
-!include "StrFunc.nsh"
+!include MUI.nsh
+!include LogicLib.nsh
+!include FileFunc.nsh
+!include StrFunc.nsh
 !insertmacro GetParameters
+!insertmacro GetParent
 ${StrStr}
 
-!include "..\packaging\installer\settings.nsh" #Version info from installer
+# Configuration from installer
+!include "..\packaging\installer\settings.nsh"
+!include "..\packaging\installer\include\declarations.nsh"
 
 #--------------------------------
-#Settings
+# Settings
 
 Caption "${APP_NAME} ${APP_VERSION}"
-OutFile lyx.exe
+OutFile LyXLauncher.exe
 BrandingText " "
 
 #--------------------------------
-#Windows Vista settings
+# Windows Vista settings
 
 RequestExecutionLevel user
 
 #--------------------------------
-#Variables
+# Variables
 
 Var Parameters
 Var Debug
 Var LyXLanguage
 Var ReturnValue
+
 Var ResultText
 Var ResultSubText
 
+Var LyXFolder
+
+Var LyXSetting
+Var LyXSettingValue
+
+Var EnvironmentVariable
+Var EnvironmentVariableValue
+
 #--------------------------------
-#User interface for debug output
+# User interface for debug output
 
 !define MUI_ICON "..\packaging\icons\lyx.ico"
 !define MUI_CUSTOMFUNCTION_GUIINIT InitInterface
@@ -58,7 +70,7 @@ Var ResultSubText
 ShowInstDetails show
 
 #--------------------------------
-#Windows API constants
+# Windows API constants
 
 !define SWP_NOSIZE 0x1
 !define MONITOR_DEFAULTTONEAREST 0x2
@@ -68,7 +80,7 @@ ShowInstDetails show
 !define SM_CYSIZEFRAME 33
 
 #--------------------------------
-#Version information
+# Version information
 
 VIProductVersion "${APP_VERSION_NUMBER}"
 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APP_NAME}"
@@ -77,7 +89,7 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"
 
 #--------------------------------
-#Macros
+# Macros
 
 !macro SystemCall STACK
 
@@ -95,54 +107,76 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"
 !macroend
 
 #--------------------------------
-#Main application
+# Main application
 
 Section -Prepare
 
-  ${if} $Debug == ${FALSE}
+  ${If} $Debug == ${FALSE}
     HideWindow
-  ${endif}
+  ${EndIf}
   
-  #Hide controls we don't need
+  # Hide controls we don't need
   FindWindow $R0 "#32770" "" $HWNDPARENT
   GetDlgItem $R0 $R0 1004
-  ShowWindow $R0 ${SW_HIDE}  
+  ShowWindow $R0 ${SW_HIDE}
   
-  #Debug info
+  # Get LyX folder
+  ${GetParent} $EXEDIR $LyXFolder  
+  
+  # Debug info
   !insertmacro MUI_HEADER_TEXT "Debugging LyX" "The events you have chosen \
       are being logged."
   SetDetailsPrint textonly
   DetailPrint "Debug log:"
   SetDetailsPrint listonly
   
-  #LyX Language
+  # LyX Language
   !insertmacro GetLyXSetting "Language" $LyXLanguage
   
-  #Set language for gettext
+  # Set language for gettext
   ${if} $LyXLanguage != ""
     Push LC_ALL
     Push $LyXLanguage
     Call SetEnvironmentVariable
   ${endif}
   
-  #Apparently the output charset needs to be set to some value,
-  #otherwise no non-ASCII characters will be displayed
+  # Apparently the output charset needs to be set to some value,
+  # otherwise no non-ASCII characters will be displayed
   Push OUTPUT_CHARSET
   Push -
   Call SetEnvironmentVariable
   
-  #Point to the Aiksaurus data in the LyX folder
+  # Location of Aiksaurus data
   Push AIK_DATA_DIR
-  Push "$EXEDIR\..\aiksaurus"
+  Push "$LyXFolder\aiksaurus"
+  Call SetEnvironmentVariable
+
+  # Location of Ghostscript
+  Push LYX_GHOSTSCRIPT_EXE
+  Push "$LyXFolder\ghostscript\bin\gswin32c.exe"
+  Call SetEnvironmentVariable
+  Push LYX_GHOSTSCRIPT_DLL
+  Push "$LyXFolder\ghostscript\bin\gsdll32.dll"
+  Call SetEnvironmentVariable
+  Push LYX_GHOSTSCRIPT_FONTS
+  Push "$LyXFolder\ghostscript\fonts"
+  Call SetEnvironmentVariable
+  
+  # Ghostscript resources
+  Push GS_DLL
+  Push "$LyXFolder\ghostscript\bin\gsdll32.dll"
+  Call SetEnvironmentVariable  
+  Push GS_LIB
+  Push "$LyXFolder\ghostscript\lib;$LyXFolder\ghostscript\fonts;$LyXFolder\ghostscript\Resource"
   Call SetEnvironmentVariable
 
 SectionEnd
 
 Section -Launch
   
-  #Start LyX and capture the command line output
+  # Start LyX and capture the command line output
   
-  Push '"$EXEDIR\lyxc.exe" $Parameters'
+  Push '"$EXEDIR\lyx.exe" $Parameters'
   CallInstDLL "$EXEDIR\Console.dll" ExecToLog
   Pop $ReturnValue #Return value
   
@@ -150,18 +184,18 @@ SectionEnd
 
 Section -Debug
   
-  ${if} $Debug == ${FALSE}
+  ${If} $Debug == ${FALSE}
   
-    #Check whether something went wrong
+    # Check whether something went wrong
     
-    ${if} $ReturnValue == "error"
+    ${If} $ReturnValue == "error"
   
-      #Probably the file does not exist
+      # Probably the file does not exist
       MessageBox MB_OK|MB_ICONSTOP "Failed to start LyX."
     
-    ${elseif} $ReturnValue != 0
+    ${ElseIf} $ReturnValue != 0
     
-      #LyX has crashed
+      # LyX has crashed
       MessageBox MB_YESNO|MB_ICONSTOP \
           "LyX has been closed because of an unexpected situation.$\n\
           This is most likely caused by a flaw in the software.$\n$\n\
@@ -170,7 +204,7 @@ Section -Debug
           Would you like to view detailed information about this error?" \
           IDYES debug IDNO no_debug
   
-    ${endif}
+    ${EndIf}
     
     no_debug:
     
@@ -180,29 +214,29 @@ Section -Debug
     
       ShowWindow $R0 ${SW_HIDE}
     
-  ${endif}
+  ${EndIf}
   
-  ${if} $ReturnValue != 0
+  ${If} $ReturnValue != 0
   
     StrCpy $ResultText "Error Information"
     StrCpy $ResultSubText "See Chapter 3 of the LyX Introduction \
         (Help > Introduction) for information about reporting this issue."
    
-   ${else}
+   ${Else}
    
     StrCpy $ResultText "Debugging Completed"
     StrCpy $ResultSubText "The events you have chosen are logged below."
    
-   ${endif}
+   ${EndIf}
   
-  ${if} $Debug == ${FALSE}
+  ${If} $Debug == ${FALSE}
 
-    #Put the log window on the screen again
+    # Put the log window on the screen again
     Push "user32::SetWindowPos(i $HWNDPARENT, i 0, i 133, i 100, i 0, i 0, i ${SWP_NOSIZE})"
     CallInstDLL "$EXEDIR\System.dll" Call
     BringToFront
 
-  ${endif}
+  ${EndIf}
 
 SectionEnd
 
@@ -219,55 +253,48 @@ Function InitInterface
   #Check for debug mode
   ${StrStr} $R0 $Parameters "-dbg"
   
-  ${if} $R0 == ""
+  ${If} $R0 == ""
     StrCpy $Debug ${FALSE}
-  ${else}
+  ${Else}
     StrCpy $Debug ${TRUE}
-  ${endif}
+  ${Endif}
   
-  ${if} $Debug == ${FALSE}
+  ${If} $Debug == ${FALSE}
 
-    #Keep the log window outside the screen to ensure that there will be no flickering
+    # Keep the log window outside the screen to ensure that there will be no flickering
     Push "user32::SetWindowPos(i $HWNDPARENT, i 0, i -32000, i -32000, i 0, i 0, i ${SWP_NOSIZE})"
     CallInstDLL "$EXEDIR\System.dll" Call
   
-  ${endif}
+  ${EndIf}
 
 FunctionEnd
 
 Function GetLyXSetting
 
-  #Get a LyX setting from the registry
-  #First try a current user setting, then a system setting
+  Pop $LyxSetting
 
-  Exch $R0
-  Push $R1
+  # Get a LyX setting from the registry
+  # First try a current user setting, then a system setting
 
-  ReadRegStr $R1 HKCU ${APP_REGKEY_SETTINGS} $R0
+  ReadRegStr $LyXSettingValue HKCU ${APP_REGKEY_SETTINGS} $LyXSetting
   
-  ${if} $R1 == ""
-    ReadRegStr $R1 HKLM ${APP_REGKEY_SETTINGS} $R0
-  ${endif}
+  ${If} $LyXSettingValue == ""
+    ReadRegStr $LyXSettingValue HKLM ${APP_REGKEY_SETTINGS} $LyXSetting
+  ${EndIf}
   
-  Exch $R1
-  Exch 1
-  Pop $R0
+  Push $LyXSettingValue
 
 FunctionEnd
 
 Function SetEnvironmentVariable
 
-  #Sets the value of an environment variable
-  #Input on stack: name of variable, value
+  # Sets the value of an environment variable
+  # Input on stack: name of variable, value
 
-  Exch $R0
-  Exch 1
-  Exch $R1
+  Pop $EnvironmentVariableValue
+  Pop $EnvironmentVariable  
   
-  Push 'kernel32::SetEnvironmentVariable(t, t) i("$R1", "$R0")'
+  Push 'kernel32::SetEnvironmentVariable(t, t) i("$EnvironmentVariable", "$EnvironmentVariableValue")'
   CallInstDLL "$EXEDIR\System.dll" Call
-  
-  Pop $R1
-  Pop $R0
 
 FunctionEnd
index 486eb07e6145b33c27c35c63146de45c2fa8256a..bb343dc2dabfe00b6652e4fe723aafd0670413b6 100644 (file)
@@ -27,16 +27,24 @@ Var LaTeXSetup.State
 Var LaTeXExisting.State
 Var LaTeXNoInstall.State
 
+!ifndef BUNDLE_IMAGEMAGICK
+
 Var ImageMagickState
 Var ImageMagickSetup.State
 Var ImageMagickExisting.State
 Var ImageMagickNoInstall.State
 
+!endif
+
+!ifndef BUNDLE_GHOSTSCRIPT
+
 Var GhostscriptState
 Var GhostscriptSetup.State
 Var GhostscriptExisting.State
 Var GhostscriptNoInstall.State
 
+!endif
+
 Var ControlState
 Var ComponentSize
 
@@ -52,10 +60,18 @@ Var ComponentSize
   nsDialogs::Create /NOUNLOAD 1018
   Pop $ExternalPage
 
-  ${NSD_CreateLabel} 0u 0u 300u 20u $(TEXT_EXTERNAL_${COMPONENT}_INFO_${SETUPTYPE_NAME})
+  !ifdef BUNDLESETUP_${COMPONENT}
+    ${NSD_CreateLabel} 0u 0u 300u 20u $(TEXT_EXTERNAL_${COMPONENT}_INFO_INSTALL)
+  !else
+    ${NSD_CreateLabel} 0u 0u 300u 20u $(TEXT_EXTERNAL_${COMPONENT}_INFO_DOWNLOAD)
+  !endif
   Pop $ExternalPage.Info
 
-  ${NSD_CreateRadioButton} 0u 40u 300u 10u $(TEXT_EXTERNAL_${COMPONENT}_${SETUPTYPE_NAME})
+  !ifdef BUNDLESETUP_${COMPONENT}
+    ${NSD_CreateRadioButton} 0u 40u 300u 10u $(TEXT_EXTERNAL_${COMPONENT}_INSTALL)
+  !else
+    ${NSD_CreateRadioButton} 0u 40u 300u 10u $(TEXT_EXTERNAL_${COMPONENT}_DOWNLOAD)
+  !endif
   Pop $ExternalPage.Setup
   nsDialogs::OnClick /NOUNLOAD $ExternalPage.Setup $ExternalPage.RadioButton.Click
   
@@ -115,7 +131,6 @@ Var ComponentSize
     ${NSD_SetState} $ExternalPage.NoInstall $${COMPONENT}NoInstall.State
   ${EndIf}
   
-  
   Call ExternalRadioButtonClick
   
   nsDialogs::Show
@@ -223,6 +238,8 @@ Function PageExternalLaTeXValidate
   !insertmacro EXTERNAL_VALIDATEDIALOG LaTeX
 FunctionEnd
 
+!ifndef BUNDLE_IMAGEMAGICK
+
 Function PageExternalImageMagick
   !insertmacro EXTERNAL_SHOWDIALOG ImageMagick
 FunctionEnd
@@ -231,6 +248,10 @@ Function PageExternalImageMagickValidate
   !insertmacro EXTERNAL_VALIDATEDIALOG ImageMagick
 FunctionEnd
 
+!endif
+
+!ifndef BUNDLE_GHOSTSCRIPT
+
 Function PageExternalGhostscript
   !insertmacro EXTERNAL_SHOWDIALOG Ghostscript
 FunctionEnd
@@ -238,3 +259,5 @@ FunctionEnd
 Function PageExternalGhostscriptValidate
   !insertmacro EXTERNAL_VALIDATEDIALOG Ghostscript
 FunctionEnd
+
+!endif
index 13cba425c3b91160e3b21b36315145fff6a49fa4..4f00631d1f4efad5f894ba1c2eec254d94ccba33 100644 (file)
 /*
 
-declarations.nsh
+declaration.nsh
 
-Standard header files, shared variables 
+Configuration of LyX installer
 
 */
 
+SetCompressor /SOLID lzma
+
 #--------------------------------
-# Defines based on settings
+# Location of LyX files and dependencies
+
+!ifdef FilesLyX
+  !define FILES_LYX "${FilesLyX}"
+!else
+  !define FILES_LYX "..\..\..\..\build-msvc"
+!endif
 
-!ifndef SETUPTYPE_BUNDLE
-  !define SETUPTYPE_NAME DOWNLOAD
+!ifdef FilesDeps
+  !define FILES_DEPS "${FilesDeps}"
 !else
-  !define SETUPTYPE_NAME INSTALL
+  !define FILES_DEPS "..\..\..\..\lyx-windows-deps-msvc2008"
+!endif
+
+!ifdef FilesBundle
+  !define FILES_BUNDLE "${FilesBundle}"
+!else
+  !define FILES_BUNDLE "..\..\..\..\lyx-windows-bundle-deps"
 !endif
 
 #--------------------------------
-# Multi-User settings
+# File locations
+
+!define FILES_LICENSE "license.rtf"
+
+!define FILES_ICONS "..\icons"
+!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"
+!define FILES_PYTHON "${FILES_DEPS}\python"
+!define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
+!define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
+!define FILES_NETPBM "${FILES_DEPS}\netpbm"
+!define FILES_DTL "${FILES_DEPS}\dtl"
+!define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"
+!define FILES_DVIPOST "${FILES_DEPS}\dvipost"
+!define FILES_DVIPOST_PKG "${FILES_DVIPOST}"
+!define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"
+!define FILES_METAFILE2EPS "${FILES_DEPS}\metafile2eps"
+!define FILES_PSPRINTER "${FILES_DEPS}\metafile2eps\PSPrinter"
+
+!define FILES_QT "${FILES_DEPS}\qt-4"
+!define FILES_ASPELLDATA "${FILES_DEPS}\aspell"
+
+!define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"
+
+#--------------------------------
+# 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 MULTIUSER_EXECUTIONLEVEL Highest
-!define MULTIUSER_INSTALLMODE_COMMANDLINE
-!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "${APP_REGKEY}"
-!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME ""
+!macro SourceForgeMirror ID FILENAME
+  !define DOWNLOAD_${ID} "${MIRROR_SF1}/${FILENAME}"
+  !define DOWNLOADALT_${ID} "${MIRROR_SF2}/${FILENAME}"
+!macroend
 
-!define MULTIUSER_INSTALLMODE_INSTDIR "${APP_DIR}"
-!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "${APP_REGKEY}"
-!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME ""
+!insertmacro SourceForgeMirror LATEX "miktex/${SETUPFILE_LATEX}"
+!insertmacro SourceForgeMirror IMAGEMAGICK "imagemagick/${SETUPFILE_IMAGEMAGICK}"
+!insertmacro SourceForgeMirror GHOSTSCRIPT "ghostscript/${SETUPFILE_GHOSTSCRIPT}"
 
-!define MULTIUSER_INSTALLMODE_FUNCTION InitUser
-!define MULTIUSER_MUI
+!define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"
+!define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"
 
 #--------------------------------
-# Standard header files
-
-!include MUI2.nsh
-!include LogicLib.nsh
-!include StrFunc.nsh
-!include FileFunc.nsh
-!include WordFunc.nsh
-!include Sections.nsh
-!include WinVer.nsh
-!include LangFile.nsh
-!include MultiUser.nsh
-!include nsDialogs.nsh
+# Locations of setup files for components (for bundled setup)
+
+!define INSTALL_LATEX "${SETUPFILE_LATEX}"
+!define INSTALL_IMAGEMAGICK "${SETUPFILE_IMAGEMAGICK}"
+!define INSTALL_GHOSTSCRIPT "${SETUPFILE_GHOSTSCRIPT}"
 
 #--------------------------------
-# Windows constants
+# Names and version
+
+!define APP_NAME "LyX"
+!define /date APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}svn %Y%m%d"
+!define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
+!define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
+!define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
+!define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
+!define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
+!define APP_INFO "${APP_NAME} - The Document Processor"
+!define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"
+
+!define APP_RUN "bin\LyXLauncher.exe"
+
+!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
+!define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
+!define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
 
-!define SHCNE_ASSOCCHANGED 0x08000000
-!define SHCNF_IDLIST 0x0000
+!define APP_REGNAME_DOC "LyX.Document"
+
+!define APP_EXT ".lyx"
+!define APP_MIME_TYPE "application/lyx"
 
 #--------------------------------
-# Variables
+# Setup settings
+
+# Output file name can be configured using command line paramaters like
+# /DExeFile=/path/to/installer
+
+!ifndef SETUPTYPE
+  !define SETUPTYPE STANDARD
+!endif
 
-Var PathLaTeX
-Var PathLaTeXLocal
-Var PathImageMagick
-Var PathGhostscript
+!if ${SETUPTYPE} == MINIMAL
 
-Var SetupLaTeX
-Var SetupImageMagick
-Var SetupGhostscript
+  !define SETUP_EXE ${MinimalExeFile}
+!else if ${SETUPTYPE} == STANDARD
 
-Var SizeLaTeX
-Var SizeImageMagick
-Var SizeGhostscript
+  !define SETUP_EXE ${ExeFile}
+  !define BUNDLE_IMAGEMAGICK
+  !define BUNDLE_GHOSTSCRIPT
+
+!else if ${SETUPTYPE} == BUNDLE
+
+  !define SETUP_EXE ${BundleExeFile}
+  !define BUNDLE_IMAGEMAGICK
+  !define BUNDLE_GHOSTSCRIPT
+  !define BUNDLESETUP_LATEX
+
+!endif
+
+!define SETUP_ICON "${FILES_ICONS}\lyx.ico"
+!define SETUP_HEADERIMAGE "graphics\header.bmp"
+!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
+!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
+!define SETUP_UNINSTALLER_KEY "${APP_NAME}"
+
+#--------------------------------
+# Names of binaries to identify compontents
 
-Var LangName
-Var LangISOCode
+!define BIN_LATEX "tex.exe"
+!define BIN_IMAGEMAGICK "convert.exe"
+!define BIN_GHOSTSCRIPT "gswin32c.exe"
 
-Var PrinterConf
-  
 #--------------------------------
-# Include standard functions
+# Custom NSIS plug-ins
 
-!insertmacro GetParent
-!insertmacro VersionCompare
-!insertmacro WordFind2X
+!addplugindir "${FILES_NSISPLUGINS}"
index 6b36a77a9d89682e452a552e788d3403a3f78202..53f777100b206d854debdf21070bf9732f119a3c 100644 (file)
@@ -10,13 +10,14 @@ Lists of files to include in the installer
 
 !macro FileListLyXBin COMMAND DIRECTORY
 
+  ${FILE}lyx.exe"
   ${FILE}tex2lyx.exe"
 
 !macroend
 
-!macro FileListLyXScriptsCleanDVI COMMAND DIRECTORY
+!macro FileListLyXLauncher COMMAND DIRECTORY
 
-  ${FILE}clean_dvi.py"
+  ${FILE}LyXLauncher.exe"
 
 !macroend
 
@@ -40,7 +41,7 @@ Lists of files to include in the installer
   
 !macroend
 
-!macro FileListDllMSVCBin COMMAND DIRECTORY
+!macro FileListDll COMMAND DIRECTORY
 
   ${FILE}iconv.dll"
   ${FILE}intl.dll"
@@ -99,18 +100,7 @@ Lists of files to include in the installer
 !macro FileListPythonBin COMMAND DIRECTORY
 
   ${FILE}python.exe"
-
-!macroend
-
-!macro FileListPythonDll COMMAND DIRECTORY
-
   ${FILE}python25.dll"
-  ${FILE}msvcr71.dll"
-
-!macroend
-
-!macro FileListUnicodeDll COMMAND DIRECTORY
-
   ${FILE}unicodedata.pyd"
 
 !macroend
@@ -120,6 +110,7 @@ Lists of files to include in the installer
   ${FILE}__future__.py"
   ${FILE}UserDict.py"
   ${FILE}codecs.py"
+  ${FILE}compileall.py"  
   ${FILE}copy_reg.py"
   ${FILE}fnmatch.py"
   ${FILE}getopt.py"
@@ -133,6 +124,7 @@ Lists of files to include in the installer
   ${FILE}optparse.py"
   ${FILE}pipes.py"
   ${FILE}posixpath.py"
+  ${FILE}py_compile.py"  
   ${FILE}random.py"
   ${FILE}re.py"
   ${FILE}shutil.py"
@@ -147,6 +139,7 @@ Lists of files to include in the installer
   ${FILE}tempfile.py"
   ${FILE}tempfile.py"
   ${FILE}textwrap.py"
+  ${FILE}traceback.py"  
   ${FILE}types.py"
   ${FILE}warnings.py"
 
@@ -304,3 +297,862 @@ Lists of files to include in the installer
   ${FILE}metafile2eps.dat"
 
 !macroend
+
+!macro FileListImageMagick COMMAND DIRECTORY
+
+  ${FILE}analyze.dll"
+  ${FILE}coder.xml"
+  ${FILE}colors.xml"
+  ${FILE}configure.xml"
+  ${FILE}convert.exe"
+  ${FILE}CORE_RL_bzlib_.dll"
+  ${FILE}CORE_RL_jbig_.dll"
+  ${FILE}CORE_RL_jp2_.dll"
+  ${FILE}CORE_RL_jpeg_.dll"
+  ${FILE}CORE_RL_lcms_.dll"
+  ${FILE}CORE_RL_libxml_.dll"
+  ${FILE}CORE_RL_Magick++_.dll"
+  ${FILE}CORE_RL_magick_.dll"
+  ${FILE}CORE_RL_png_.dll"
+  ${FILE}CORE_RL_tiff_.dll"
+  ${FILE}CORE_RL_ttf_.dll"
+  ${FILE}CORE_RL_wand_.dll"
+  ${FILE}CORE_RL_xlib_.dll"
+  ${FILE}CORE_RL_zlib_.dll"
+  ${FILE}delegates.xml"
+  ${FILE}english.xml"
+  ${FILE}ImageMagick.rdf"
+  ${FILE}IM_MOD_RL_art_.dll"
+  ${FILE}IM_MOD_RL_avi_.dll"
+  ${FILE}IM_MOD_RL_avs_.dll"
+  ${FILE}IM_MOD_RL_bmp_.dll"
+  ${FILE}IM_MOD_RL_braille_.dll"
+  ${FILE}IM_MOD_RL_caption_.dll"
+  ${FILE}IM_MOD_RL_cin_.dll"
+  ${FILE}IM_MOD_RL_cip_.dll"
+  ${FILE}IM_MOD_RL_clipboard_.dll"
+  ${FILE}IM_MOD_RL_clip_.dll"
+  ${FILE}IM_MOD_RL_cmyk_.dll"
+  ${FILE}IM_MOD_RL_cut_.dll"
+  ${FILE}IM_MOD_RL_dcm_.dll"
+  ${FILE}IM_MOD_RL_dds_.dll"
+  ${FILE}IM_MOD_RL_dib_.dll"
+  ${FILE}IM_MOD_RL_djvu_.dll"
+  ${FILE}IM_MOD_RL_dng_.dll"
+  ${FILE}IM_MOD_RL_dot_.dll"
+  ${FILE}IM_MOD_RL_dps_.dll"
+  ${FILE}IM_MOD_RL_dpx_.dll"
+  ${FILE}IM_MOD_RL_emf_.dll"
+  ${FILE}IM_MOD_RL_ept_.dll"
+  ${FILE}IM_MOD_RL_exr_.dll"
+  ${FILE}IM_MOD_RL_fax_.dll"
+  ${FILE}IM_MOD_RL_fits_.dll"
+  ${FILE}IM_MOD_RL_fpx_.dll"
+  ${FILE}IM_MOD_RL_gif_.dll"
+  ${FILE}IM_MOD_RL_gradient_.dll"
+  ${FILE}IM_MOD_RL_gray_.dll"
+  ${FILE}IM_MOD_RL_histogram_.dll"
+  ${FILE}IM_MOD_RL_html_.dll"
+  ${FILE}IM_MOD_RL_icon_.dll"
+  ${FILE}IM_MOD_RL_info_.dll"
+  ${FILE}IM_MOD_RL_ipl_.dll"
+  ${FILE}IM_MOD_RL_jbig_.dll"
+  ${FILE}IM_MOD_RL_jp2_.dll"
+  ${FILE}IM_MOD_RL_jpeg_.dll"
+  ${FILE}IM_MOD_RL_label_.dll"
+  ${FILE}IM_MOD_RL_magick_.dll"
+  ${FILE}IM_MOD_RL_map_.dll"
+  ${FILE}IM_MOD_RL_matte_.dll"
+  ${FILE}IM_MOD_RL_mat_.dll"
+  ${FILE}IM_MOD_RL_meta_.dll"
+  ${FILE}IM_MOD_RL_miff_.dll"
+  ${FILE}IM_MOD_RL_mono_.dll"
+  ${FILE}IM_MOD_RL_mpc_.dll"
+  ${FILE}IM_MOD_RL_mpeg_.dll"
+  ${FILE}IM_MOD_RL_mpr_.dll"
+  ${FILE}IM_MOD_RL_msl_.dll"
+  ${FILE}IM_MOD_RL_mtv_.dll"
+  ${FILE}IM_MOD_RL_mvg_.dll"
+  ${FILE}IM_MOD_RL_null_.dll"
+  ${FILE}IM_MOD_RL_otb_.dll"
+  ${FILE}IM_MOD_RL_palm_.dll"
+  ${FILE}IM_MOD_RL_pattern_.dll"
+  ${FILE}IM_MOD_RL_pcd_.dll"
+  ${FILE}IM_MOD_RL_pcl_.dll"
+  ${FILE}IM_MOD_RL_pcx_.dll"
+  ${FILE}IM_MOD_RL_pdb_.dll"
+  ${FILE}IM_MOD_RL_pdf_.dll"
+  ${FILE}IM_MOD_RL_pict_.dll"
+  ${FILE}IM_MOD_RL_pix_.dll"
+  ${FILE}IM_MOD_RL_plasma_.dll"
+  ${FILE}IM_MOD_RL_png_.dll"
+  ${FILE}IM_MOD_RL_pnm_.dll"
+  ${FILE}IM_MOD_RL_preview_.dll"
+  ${FILE}IM_MOD_RL_ps2_.dll"
+  ${FILE}IM_MOD_RL_ps3_.dll"
+  ${FILE}IM_MOD_RL_psd_.dll"
+  ${FILE}IM_MOD_RL_ps_.dll"
+  ${FILE}IM_MOD_RL_pwp_.dll"
+  ${FILE}IM_MOD_RL_raw_.dll"
+  ${FILE}IM_MOD_RL_rgb_.dll"
+  ${FILE}IM_MOD_RL_rla_.dll"
+  ${FILE}IM_MOD_RL_rle_.dll"
+  ${FILE}IM_MOD_RL_scr_.dll"
+  ${FILE}IM_MOD_RL_sct_.dll"
+  ${FILE}IM_MOD_RL_sfw_.dll"
+  ${FILE}IM_MOD_RL_sgi_.dll"
+  ${FILE}IM_MOD_RL_stegano_.dll"
+  ${FILE}IM_MOD_RL_sun_.dll"
+  ${FILE}IM_MOD_RL_svg_.dll"
+  ${FILE}IM_MOD_RL_tga_.dll"
+  ${FILE}IM_MOD_RL_thumbnail_.dll"
+  ${FILE}IM_MOD_RL_tiff_.dll"
+  ${FILE}IM_MOD_RL_tile_.dll"
+  ${FILE}IM_MOD_RL_tim_.dll"
+  ${FILE}IM_MOD_RL_ttf_.dll"
+  ${FILE}IM_MOD_RL_txt_.dll"
+  ${FILE}IM_MOD_RL_uil_.dll"
+  ${FILE}IM_MOD_RL_url_.dll"
+  ${FILE}IM_MOD_RL_uyvy_.dll"
+  ${FILE}IM_MOD_RL_vicar_.dll"
+  ${FILE}IM_MOD_RL_vid_.dll"
+  ${FILE}IM_MOD_RL_viff_.dll"
+  ${FILE}IM_MOD_RL_wbmp_.dll"
+  ${FILE}IM_MOD_RL_wmf_.dll"
+  ${FILE}IM_MOD_RL_wpg_.dll"
+  ${FILE}IM_MOD_RL_xbm_.dll"
+  ${FILE}IM_MOD_RL_xcf_.dll"
+  ${FILE}IM_MOD_RL_xc_.dll"
+  ${FILE}IM_MOD_RL_xpm_.dll"
+  ${FILE}IM_MOD_RL_xps_.dll"
+  ${FILE}IM_MOD_RL_xtrn_.dll"
+  ${FILE}IM_MOD_RL_xwd_.dll"
+  ${FILE}IM_MOD_RL_x_.dll"
+  ${FILE}IM_MOD_RL_ycbcr_.dll"
+  ${FILE}IM_MOD_RL_yuv_.dll"
+  ${FILE}locale.xml"
+  ${FILE}log.xml"
+  ${FILE}magic.xml"
+  ${FILE}sRGB.icm"
+  ${FILE}stream.exe"
+  ${FILE}thresholds.xml"
+  ${FILE}type-ghostscript.xml"
+  ${FILE}type.xml"
+  ${FILE}X11.dll"
+  ${FILE}Xext.dll"
+
+!macroend
+
+!macro FileListGhostscriptBin COMMAND DIRECTORY
+
+  ${FILE}gswin32.exe"
+  ${FILE}gswin32c.exe"
+  ${FILE}gsdll32.dll"
+
+!macroend
+
+!macro FileListGhostscriptLib COMMAND DIRECTORY
+
+  ${FILE}acctest.ps"
+  ${FILE}addxchar.ps"
+  ${FILE}afmdiff.awk"
+  ${FILE}align.ps"
+  ${FILE}bdftops"
+  ${FILE}bdftops.bat"
+  ${FILE}bdftops.cmd"
+  ${FILE}bdftops.ps"
+  ${FILE}bj8.rpd"
+  ${FILE}bj8gc12f.upp"
+  ${FILE}bj8hg12f.upp"
+  ${FILE}bj8oh06n.upp"
+  ${FILE}bj8pa06n.upp"
+  ${FILE}bj8pp12f.upp"
+  ${FILE}bj8ts06n.upp"
+  ${FILE}bjc610a0.upp"
+  ${FILE}bjc610a1.upp"
+  ${FILE}bjc610a2.upp"
+  ${FILE}bjc610a3.upp"
+  ${FILE}bjc610a4.upp"
+  ${FILE}bjc610a5.upp"
+  ${FILE}bjc610a6.upp"
+  ${FILE}bjc610a7.upp"
+  ${FILE}bjc610a8.upp"
+  ${FILE}bjc610b1.upp"
+  ${FILE}bjc610b2.upp"
+  ${FILE}bjc610b3.upp"
+  ${FILE}bjc610b4.upp"
+  ${FILE}bjc610b6.upp"
+  ${FILE}bjc610b7.upp"
+  ${FILE}bjc610b8.upp"
+  ${FILE}caption.ps"
+  ${FILE}cbjc600.ppd"
+  ${FILE}cbjc800.ppd"
+  ${FILE}cdj550.upp"
+  ${FILE}cdj690.upp"
+  ${FILE}cdj690ec.upp"
+  ${FILE}cid2code.ps"
+  ${FILE}cidfmap"
+  ${FILE}decrypt.ps"
+  ${FILE}dnj750c.upp"
+  ${FILE}dnj750m.upp"
+  ${FILE}docie.ps"
+  ${FILE}dumphint"
+  ${FILE}dumphint.bat"
+  ${FILE}dumphint.ps"
+  ${FILE}dvipdf"
+  ${FILE}EndOfTask.ps"
+  ${FILE}eps2eps"
+  ${FILE}eps2eps.bat"
+  ${FILE}eps2eps.cmd"
+  ${FILE}FAPIcidfmap"
+  ${FILE}FAPIconfig"
+  ${FILE}FAPIconfig-FCO"
+  ${FILE}FAPIfontmap"
+  ${FILE}FCOfontmap-PCLPS2"
+  ${FILE}FCOfontmap-PCLPS3"
+  ${FILE}FCOfontmap-PS3"
+  ${FILE}fixmswrd.pl"
+  ${FILE}font2c"
+  ${FILE}font2c.bat"
+  ${FILE}font2c.cmd"
+  ${FILE}font2c.ps"
+  ${FILE}font2pcl.ps"
+  ${FILE}Fontmap"
+  ${FILE}Fontmap.ATB"
+  ${FILE}Fontmap.ATM"
+  ${FILE}Fontmap.GS"
+  ${FILE}Fontmap.OS2"
+  ${FILE}Fontmap.OSF"
+  ${FILE}Fontmap.SGI"
+  ${FILE}Fontmap.Sol"
+  ${FILE}Fontmap.Ult"
+  ${FILE}Fontmap.VMS"
+  ${FILE}ghostpdf.inf"
+  ${FILE}ghostpdf.ppd"
+  ${FILE}gsbj"
+  ${FILE}gsbj.bat"
+  ${FILE}gsdj"
+  ${FILE}gsdj.bat"
+  ${FILE}gsdj500"
+  ${FILE}gsdj500.bat"
+  ${FILE}gslj"
+  ${FILE}gslj.bat"
+  ${FILE}gslp"
+  ${FILE}gslp.bat"
+  ${FILE}gslp.ps"
+  ${FILE}gsnd"
+  ${FILE}gsnd.bat"
+  ${FILE}gsndt.bat"
+  ${FILE}gsnup.ps"
+  ${FILE}gssetgs.bat"
+  ${FILE}gst.bat"
+  ${FILE}gstt.bat"
+  ${FILE}gs_agl.ps"
+  ${FILE}gs_btokn.ps"
+  ${FILE}gs_ccfnt.ps"
+  ${FILE}gs_cet.ps"
+  ${FILE}gs_ce_e.ps"
+  ${FILE}gs_cff.ps"
+  ${FILE}gs_cidcm.ps"
+  ${FILE}gs_ciddc.ps"
+  ${FILE}gs_cidfm.ps"
+  ${FILE}gs_cidfn.ps"
+  ${FILE}gs_cidtt.ps"
+  ${FILE}gs_ciecs2.ps"
+  ${FILE}gs_ciecs3.ps"
+  ${FILE}gs_cmap.ps"
+  ${FILE}gs_cmdl.ps"
+  ${FILE}gs_cspace.ps"
+  ${FILE}gs_css_e.ps"
+  ${FILE}gs_dbt_e.ps"
+  ${FILE}gs_devcs.ps"
+  ${FILE}gs_devn.ps"
+  ${FILE}gs_devpxl.ps"
+  ${FILE}gs_diskf.ps"
+  ${FILE}gs_diskn.ps"
+  ${FILE}gs_dpnxt.ps"
+  ${FILE}gs_dps.ps"
+  ${FILE}gs_dps1.ps"
+  ${FILE}gs_dps2.ps"
+  ${FILE}gs_dscp.ps"
+  ${FILE}gs_epsf.ps"
+  ${FILE}gs_fapi.ps"
+  ${FILE}gs_fform.ps"
+  ${FILE}gs_fntem.ps"
+  ${FILE}gs_fonts.ps"
+  ${FILE}gs_frsd.ps"
+  ${FILE}gs_icc.ps"
+  ${FILE}gs_il1_e.ps"
+  ${FILE}gs_il2_e.ps"
+  ${FILE}gs_img.ps"
+  ${FILE}gs_indxd.ps"
+  ${FILE}gs_init.ps"
+  ${FILE}gs_kanji.ps"
+  ${FILE}gs_ksb_e.ps"
+  ${FILE}gs_l.xbm"
+  ${FILE}gs_l.xpm"
+  ${FILE}gs_l2img.ps"
+  ${FILE}gs_lev2.ps"
+  ${FILE}gs_lgo_e.ps"
+  ${FILE}gs_lgx_e.ps"
+  ${FILE}gs_ll3.ps"
+  ${FILE}gs_l_m.xbm"
+  ${FILE}gs_m.xbm"
+  ${FILE}gs_m.xpm"
+  ${FILE}gs_mex_e.ps"
+  ${FILE}gs_mgl_e.ps"
+  ${FILE}gs_mro_e.ps"
+  ${FILE}gs_m_m.xbm"
+  ${FILE}gs_patrn.ps"
+  ${FILE}gs_pdfwr.ps"
+  ${FILE}gs_pdf_e.ps"
+  ${FILE}gs_pfile.ps"
+  ${FILE}gs_rdlin.ps"
+  ${FILE}gs_res.ps"
+  ${FILE}gs_resmp.ps"
+  ${FILE}gs_resst.ps"
+  ${FILE}gs_s.xbm"
+  ${FILE}gs_s.xpm"
+  ${FILE}gs_sepr.ps"
+  ${FILE}gs_setpd.ps"
+  ${FILE}gs_statd.ps"
+  ${FILE}gs_std_e.ps"
+  ${FILE}gs_sym_e.ps"
+  ${FILE}gs_s_m.xbm"
+  ${FILE}gs_t.xbm"
+  ${FILE}gs_t.xpm"
+  ${FILE}gs_trap.ps"
+  ${FILE}gs_ttf.ps"
+  ${FILE}gs_typ32.ps"
+  ${FILE}gs_typ42.ps"
+  ${FILE}gs_type1.ps"
+  ${FILE}gs_t_m.xbm"
+  ${FILE}gs_wan_e.ps"
+  ${FILE}gs_wl1_e.ps"
+  ${FILE}gs_wl2_e.ps"
+  ${FILE}gs_wl5_e.ps"
+  ${FILE}ht_ccsto.ps"
+  ${FILE}image-qa.ps"
+  ${FILE}impath.ps"
+  ${FILE}Info-macos.plist"
+  ${FILE}jispaper.ps"
+  ${FILE}jobseparator.ps"
+  ${FILE}landscap.ps"
+  ${FILE}level1.ps"
+  ${FILE}lines.ps"
+  ${FILE}lp386.bat"
+  ${FILE}lp386r2.bat"
+  ${FILE}lpgs.bat"
+  ${FILE}lpr2.bat"
+  ${FILE}lprsetup.sh"
+  ${FILE}markhint.ps"
+  ${FILE}markpath.ps"
+  ${FILE}mkcidfm.ps"
+  ${FILE}necp2x.upp"
+  ${FILE}necp2x6.upp"
+  ${FILE}opdfread.ps"
+  ${FILE}packfile.ps"
+  ${FILE}pcharstr.ps"
+  ${FILE}pdf2dsc"
+  ${FILE}pdf2dsc.bat"
+  ${FILE}pdf2dsc.ps"
+  ${FILE}pdf2ps"
+  ${FILE}pdf2ps.bat"
+  ${FILE}pdf2ps.cmd"
+  ${FILE}PDFA_def.ps"
+  ${FILE}pdfopt"
+  ${FILE}pdfopt.bat"
+  ${FILE}pdfopt.ps"
+  ${FILE}pdfwrite.ps"
+  ${FILE}PDFX_def.ps"
+  ${FILE}pdf_base.ps"
+  ${FILE}pdf_cslayer.ps"
+  ${FILE}pdf_draw.ps"
+  ${FILE}pdf_font.ps"
+  ${FILE}pdf_main.ps"
+  ${FILE}pdf_ops.ps"
+  ${FILE}pdf_rbld.ps"
+  ${FILE}pdf_sec.ps"
+  ${FILE}pf2afm"
+  ${FILE}pf2afm.bat"
+  ${FILE}pf2afm.cmd"
+  ${FILE}pf2afm.ps"
+  ${FILE}pfbtopfa"
+  ${FILE}pfbtopfa.bat"
+  ${FILE}pfbtopfa.ps"
+  ${FILE}pftogsf.bat"
+  ${FILE}ppath.ps"
+  ${FILE}pphs"
+  ${FILE}pphs.ps"
+  ${FILE}prfont.ps"
+  ${FILE}printafm"
+  ${FILE}printafm.ps"
+  ${FILE}ps2ai.ps"
+  ${FILE}ps2ascii"
+  ${FILE}ps2ascii.bat"
+  ${FILE}ps2ascii.cmd"
+  ${FILE}ps2ascii.ps"
+  ${FILE}ps2epsi"
+  ${FILE}ps2epsi.bat"
+  ${FILE}ps2epsi.cmd"
+  ${FILE}ps2epsi.ps"
+  ${FILE}ps2pdf"
+  ${FILE}ps2pdf.bat"
+  ${FILE}ps2pdf.cmd"
+  ${FILE}ps2pdf12"
+  ${FILE}ps2pdf12.bat"
+  ${FILE}ps2pdf12.cmd"
+  ${FILE}ps2pdf13"
+  ${FILE}ps2pdf13.bat"
+  ${FILE}ps2pdf13.cmd"
+  ${FILE}ps2pdf14"
+  ${FILE}ps2pdf14.bat"
+  ${FILE}ps2pdf14.cmd"
+  ${FILE}ps2pdfwr"
+  ${FILE}ps2pdfxx.bat"
+  ${FILE}ps2ps"
+  ${FILE}ps2ps.bat"
+  ${FILE}ps2ps.cmd"
+  ${FILE}ps2ps2"
+  ${FILE}ps2ps2.bat"
+  ${FILE}ps2ps2.cmd"
+  ${FILE}pv.sh"
+  ${FILE}quit.ps"
+  ${FILE}ras1.upp"
+  ${FILE}ras24.upp"
+  ${FILE}ras3.upp"
+  ${FILE}ras32.upp"
+  ${FILE}ras4.upp"
+  ${FILE}ras8m.upp"
+  ${FILE}rinkj-2200-setup"
+  ${FILE}rollconv.ps"
+  ${FILE}showchar.ps"
+  ${FILE}showpage.ps"
+  ${FILE}st640ih.upp"
+  ${FILE}st640ihg.upp"
+  ${FILE}st640p.upp"
+  ${FILE}st640pg.upp"
+  ${FILE}st640pl.upp"
+  ${FILE}st640plg.upp"
+  ${FILE}stc.upp"
+  ${FILE}stc1520h.upp"
+  ${FILE}stc2.upp"
+  ${FILE}stc200_h.upp"
+  ${FILE}stc2s_h.upp"
+  ${FILE}stc2_h.upp"
+  ${FILE}stc300.upp"
+  ${FILE}stc300bl.upp"
+  ${FILE}stc300bm.upp"
+  ${FILE}stc500p.upp"
+  ${FILE}stc500ph.upp"
+  ${FILE}stc600ih.upp"
+  ${FILE}stc600p.upp"
+  ${FILE}stc600pl.upp"
+  ${FILE}stc640p.upp"
+  ${FILE}stc800ih.upp"
+  ${FILE}stc800p.upp"
+  ${FILE}stc800pl.upp"
+  ${FILE}stcany.upp"
+  ${FILE}stcany_h.upp"
+  ${FILE}stcinfo.ps"
+  ${FILE}stcolor.ps"
+  ${FILE}stc_h.upp"
+  ${FILE}stc_l.upp"
+  ${FILE}stocht.ps"
+  ${FILE}traceimg.ps"
+  ${FILE}traceop.ps"
+  ${FILE}type1enc.ps"
+  ${FILE}type1ops.ps"
+  ${FILE}uninfo.ps"
+  ${FILE}unix-lpr.sh"
+  ${FILE}unprot.ps"
+  ${FILE}viewcmyk.ps"
+  ${FILE}viewgif.ps"
+  ${FILE}viewjpeg.ps"
+  ${FILE}viewmiff.ps"
+  ${FILE}viewpbm.ps"
+  ${FILE}viewpcx.ps"
+  ${FILE}viewps2a.ps"
+  ${FILE}wftopfa"
+  ${FILE}wftopfa.ps"
+  ${FILE}winmaps.ps"
+  ${FILE}wmakebat.bat"
+  ${FILE}wrfont.ps"
+  ${FILE}xlatmap"
+  ${FILE}zeroline.ps"
+
+!macroend
+
+!macro FileListGhostscriptFonts COMMAND DIRECTORY
+
+  ${FILE}a010013l.afm"
+  ${FILE}a010013l.pfb"
+  ${FILE}a010013l.pfm"
+  ${FILE}a010015l.afm"
+  ${FILE}a010015l.pfb"
+  ${FILE}a010015l.pfm"
+  ${FILE}a010033l.afm"
+  ${FILE}a010033l.pfb"
+  ${FILE}a010033l.pfm"
+  ${FILE}a010035l.afm"
+  ${FILE}a010035l.pfb"
+  ${FILE}a010035l.pfm"
+  ${FILE}b018012l.afm"
+  ${FILE}b018012l.pfb"
+  ${FILE}b018012l.pfm"
+  ${FILE}b018015l.afm"
+  ${FILE}b018015l.pfb"
+  ${FILE}b018015l.pfm"
+  ${FILE}b018032l.afm"
+  ${FILE}b018032l.pfb"
+  ${FILE}b018032l.pfm"
+  ${FILE}b018035l.afm"
+  ${FILE}b018035l.pfb"
+  ${FILE}b018035l.pfm"
+  ${FILE}c059013l.afm"
+  ${FILE}c059013l.pfb"
+  ${FILE}c059016l.afm"
+  ${FILE}c059016l.pfb"
+  ${FILE}c059033l.afm"
+  ${FILE}c059033l.pfb"
+  ${FILE}c059036l.afm"
+  ${FILE}c059036l.pfb"
+  ${FILE}ChangeLog"
+  ${FILE}COPYING"
+  ${FILE}d050000l.afm"
+  ${FILE}d050000l.pfb"
+  ${FILE}fonts.dir"
+  ${FILE}fonts.scale"
+  ${FILE}n019003l.afm"
+  ${FILE}n019003l.pfb"
+  ${FILE}n019003l.pfm"
+  ${FILE}n019004l.afm"
+  ${FILE}n019004l.pfb"
+  ${FILE}n019004l.pfm"
+  ${FILE}n019023l.afm"
+  ${FILE}n019023l.pfb"
+  ${FILE}n019023l.pfm"
+  ${FILE}n019024l.afm"
+  ${FILE}n019024l.pfb"
+  ${FILE}n019024l.pfm"
+  ${FILE}n019043l.afm"
+  ${FILE}n019043l.pfb"
+  ${FILE}n019044l.afm"
+  ${FILE}n019044l.pfb"
+  ${FILE}n019063l.afm"
+  ${FILE}n019063l.pfb"
+  ${FILE}n019064l.afm"
+  ${FILE}n019064l.pfb"
+  ${FILE}n019064l.pfm"
+  ${FILE}n021003l.afm"
+  ${FILE}n021003l.pfb"
+  ${FILE}n021003l.pfm"
+  ${FILE}n021004l.afm"
+  ${FILE}n021004l.pfb"
+  ${FILE}n021004l.pfm"
+  ${FILE}n021023l.afm"
+  ${FILE}n021023l.pfb"
+  ${FILE}n021023l.pfm"
+  ${FILE}n021024l.afm"
+  ${FILE}n021024l.pfb"
+  ${FILE}n021024l.pfm"
+  ${FILE}n022003l.afm"
+  ${FILE}n022003l.pfb"
+  ${FILE}n022004l.afm"
+  ${FILE}n022004l.pfb"
+  ${FILE}n022023l.afm"
+  ${FILE}n022023l.pfb"
+  ${FILE}n022024l.afm"
+  ${FILE}n022024l.pfb"
+  ${FILE}p052003l.afm"
+  ${FILE}p052003l.pfb"
+  ${FILE}p052004l.afm"
+  ${FILE}p052004l.pfb"
+  ${FILE}p052023l.afm"
+  ${FILE}p052023l.pfb"
+  ${FILE}p052024l.afm"
+  ${FILE}p052024l.pfb"
+  ${FILE}README"
+  ${FILE}README.tweaks"
+  ${FILE}s050000l.afm"
+  ${FILE}s050000l.pfb"
+  ${FILE}TODO"
+  ${FILE}uninstal.txt"
+  ${FILE}z003034l.afm"
+  ${FILE}z003034l.pfb"
+  ${FILE}z003034l.pfm"
+
+!macroend
+
+!macro FileListGhostscriptResourceCMap COMMAND DIRECTORY
+
+  ${FILE}78-EUC-H"
+  ${FILE}78-EUC-V"
+  ${FILE}78-H"
+  ${FILE}78-RKSJ-H"
+  ${FILE}78-RKSJ-V"
+  ${FILE}78-V"
+  ${FILE}78ms-RKSJ-H"
+  ${FILE}78ms-RKSJ-V"
+  ${FILE}83pv-RKSJ-H"
+  ${FILE}90ms-RKSJ-H"
+  ${FILE}90ms-RKSJ-UCS2"
+  ${FILE}90ms-RKSJ-V"
+  ${FILE}90msp-RKSJ-H"
+  ${FILE}90msp-RKSJ-V"
+  ${FILE}90pv-RKSJ-H"
+  ${FILE}90pv-RKSJ-UCS2"
+  ${FILE}90pv-RKSJ-UCS2C"
+  ${FILE}90pv-RKSJ-V"
+  ${FILE}Add-H"
+  ${FILE}Add-RKSJ-H"
+  ${FILE}Add-RKSJ-V"
+  ${FILE}Add-V"
+  ${FILE}Adobe-CNS1-0"
+  ${FILE}Adobe-CNS1-1"
+  ${FILE}Adobe-CNS1-2"
+  ${FILE}Adobe-CNS1-3"
+  ${FILE}Adobe-CNS1-4"
+  ${FILE}Adobe-CNS1-5"
+  ${FILE}Adobe-CNS1-B5pc"
+  ${FILE}Adobe-CNS1-ETenms-B5"
+  ${FILE}Adobe-CNS1-H-CID"
+  ${FILE}Adobe-CNS1-H-Host"
+  ${FILE}Adobe-CNS1-H-Mac"
+  ${FILE}Adobe-CNS1-UCS2"
+  ${FILE}Adobe-GB1-0"
+  ${FILE}Adobe-GB1-1"
+  ${FILE}Adobe-GB1-2"
+  ${FILE}Adobe-GB1-3"
+  ${FILE}Adobe-GB1-4"
+  ${FILE}Adobe-GB1-5"
+  ${FILE}Adobe-GB1-GBK-EUC"
+  ${FILE}Adobe-GB1-GBpc-EUC"
+  ${FILE}Adobe-GB1-H-CID"
+  ${FILE}Adobe-GB1-H-Host"
+  ${FILE}Adobe-GB1-H-Mac"
+  ${FILE}Adobe-GB1-UCS2"
+  ${FILE}Adobe-Japan1-0"
+  ${FILE}Adobe-Japan1-1"
+  ${FILE}Adobe-Japan1-2"
+  ${FILE}Adobe-Japan1-3"
+  ${FILE}Adobe-Japan1-4"
+  ${FILE}Adobe-Japan1-5"
+  ${FILE}Adobe-Japan1-6"
+  ${FILE}Adobe-Japan1-90ms-RKSJ"
+  ${FILE}Adobe-Japan1-90pv-RKSJ"
+  ${FILE}Adobe-Japan1-H-CID"
+  ${FILE}Adobe-Japan1-H-Host"
+  ${FILE}Adobe-Japan1-H-Mac"
+  ${FILE}Adobe-Japan1-PS-H"
+  ${FILE}Adobe-Japan1-PS-V"
+  ${FILE}Adobe-Japan1-UCS2"
+  ${FILE}Adobe-Japan2-0"
+  ${FILE}Adobe-Korea1-0"
+  ${FILE}Adobe-Korea1-1"
+  ${FILE}Adobe-Korea1-2"
+  ${FILE}Adobe-Korea1-H-CID"
+  ${FILE}Adobe-Korea1-H-Host"
+  ${FILE}Adobe-Korea1-H-Mac"
+  ${FILE}Adobe-Korea1-KSCms-UHC"
+  ${FILE}Adobe-Korea1-KSCpc-EUC"
+  ${FILE}Adobe-Korea1-UCS2"
+  ${FILE}B5-H"
+  ${FILE}B5-V"
+  ${FILE}B5pc-H"
+  ${FILE}B5pc-UCS2"
+  ${FILE}B5pc-UCS2C"
+  ${FILE}B5pc-V"
+  ${FILE}CNS-EUC-H"
+  ${FILE}CNS-EUC-V"
+  ${FILE}CNS01-RKSJ-H"
+  ${FILE}CNS02-RKSJ-H"
+  ${FILE}CNS03-RKSJ-H"
+  ${FILE}CNS04-RKSJ-H"
+  ${FILE}CNS05-RKSJ-H"
+  ${FILE}CNS06-RKSJ-H"
+  ${FILE}CNS07-RKSJ-H"
+  ${FILE}CNS1-H"
+  ${FILE}CNS1-V"
+  ${FILE}CNS15-RKSJ-H"
+  ${FILE}CNS2-H"
+  ${FILE}CNS2-V"
+  ${FILE}ETen-B5-H"
+  ${FILE}ETen-B5-UCS2"
+  ${FILE}ETen-B5-V"
+  ${FILE}ETenms-B5-H"
+  ${FILE}ETenms-B5-V"
+  ${FILE}ETHK-B5-H"
+  ${FILE}ETHK-B5-V"
+  ${FILE}EUC-H"
+  ${FILE}EUC-V"
+  ${FILE}Ext-H"
+  ${FILE}Ext-RKSJ-H"
+  ${FILE}Ext-RKSJ-V"
+  ${FILE}Ext-V"
+  ${FILE}GB-EUC-H"
+  ${FILE}GB-EUC-V"
+  ${FILE}GB-H"
+  ${FILE}GB-RKSJ-H"
+  ${FILE}GB-V"
+  ${FILE}GBK-EUC-H"
+  ${FILE}GBK-EUC-UCS2"
+  ${FILE}GBK-EUC-V"
+  ${FILE}GBK2K-H"
+  ${FILE}GBK2K-V"
+  ${FILE}GBKp-EUC-H"
+  ${FILE}GBKp-EUC-V"
+  ${FILE}GBpc-EUC-H"
+  ${FILE}GBpc-EUC-UCS2"
+  ${FILE}GBpc-EUC-UCS2C"
+  ${FILE}GBpc-EUC-V"
+  ${FILE}GBT-EUC-H"
+  ${FILE}GBT-EUC-V"
+  ${FILE}GBT-H"
+  ${FILE}GBT-RKSJ-H"
+  ${FILE}GBT-V"
+  ${FILE}GBTpc-EUC-H"
+  ${FILE}GBTpc-EUC-V"
+  ${FILE}H"
+  ${FILE}Hankaku"
+  ${FILE}Hiragana"
+  ${FILE}HK-RKSJ-H"
+  ${FILE}HKdla-B5-H"
+  ${FILE}HKdla-B5-V"
+  ${FILE}HKdlb-B5-H"
+  ${FILE}HKdlb-B5-V"
+  ${FILE}HKgccs-B5-H"
+  ${FILE}HKgccs-B5-V"
+  ${FILE}HKm314-B5-H"
+  ${FILE}HKm314-B5-V"
+  ${FILE}HKm471-B5-H"
+  ${FILE}HKm471-B5-V"
+  ${FILE}HKscs-B5-H"
+  ${FILE}HKscs-B5-V"
+  ${FILE}Hojo-EUC-H"
+  ${FILE}Hojo-EUC-V"
+  ${FILE}Hojo-H"
+  ${FILE}Hojo-RKSJ-H"
+  ${FILE}Hojo-V"
+  ${FILE}Identity-H"
+  ${FILE}Identity-UTF16-H"
+  ${FILE}Identity-UTF16-V"
+  ${FILE}Identity-V"
+  ${FILE}Katakana"
+  ${FILE}KSC-EUC-H"
+  ${FILE}KSC-EUC-V"
+  ${FILE}KSC-H"
+  ${FILE}KSC-Johab-H"
+  ${FILE}KSC-Johab-V"
+  ${FILE}KSC-RKSJ-H"
+  ${FILE}KSC-V"
+  ${FILE}KSC2-RKSJ-H"
+  ${FILE}KSCms-UHC-H"
+  ${FILE}KSCms-UHC-HW-H"
+  ${FILE}KSCms-UHC-HW-V"
+  ${FILE}KSCms-UHC-UCS2"
+  ${FILE}KSCms-UHC-V"
+  ${FILE}KSCpc-EUC-H"
+  ${FILE}KSCpc-EUC-UCS2"
+  ${FILE}KSCpc-EUC-UCS2C"
+  ${FILE}KSCpc-EUC-V"
+  ${FILE}NWP-H"
+  ${FILE}NWP-V"
+  ${FILE}RKSJ-H"
+  ${FILE}RKSJ-V"
+  ${FILE}Roman"
+  ${FILE}TCVN-RKSJ-H"
+  ${FILE}UCS2-90ms-RKSJ"
+  ${FILE}UCS2-90pv-RKSJ"
+  ${FILE}UCS2-B5pc"
+  ${FILE}UCS2-ETen-B5"
+  ${FILE}UCS2-GBK-EUC"
+  ${FILE}UCS2-GBpc-EUC"
+  ${FILE}UCS2-KSCms-UHC"
+  ${FILE}UCS2-KSCpc-EUC"
+  ${FILE}UniCNS-UCS2-H"
+  ${FILE}UniCNS-UCS2-V"
+  ${FILE}UniCNS-UTF16-H"
+  ${FILE}UniCNS-UTF16-V"
+  ${FILE}UniCNS-UTF32-H"
+  ${FILE}UniCNS-UTF32-V"
+  ${FILE}UniCNS-UTF8-H"
+  ${FILE}UniCNS-UTF8-V"
+  ${FILE}UniGB-UCS2-H"
+  ${FILE}UniGB-UCS2-V"
+  ${FILE}UniGB-UTF16-H"
+  ${FILE}UniGB-UTF16-V"
+  ${FILE}UniGB-UTF32-H"
+  ${FILE}UniGB-UTF32-V"
+  ${FILE}UniGB-UTF8-H"
+  ${FILE}UniGB-UTF8-V"
+  ${FILE}UniHojo-UCS2-H"
+  ${FILE}UniHojo-UCS2-V"
+  ${FILE}UniHojo-UTF16-H"
+  ${FILE}UniHojo-UTF16-V"
+  ${FILE}UniHojo-UTF32-H"
+  ${FILE}UniHojo-UTF32-V"
+  ${FILE}UniHojo-UTF8-H"
+  ${FILE}UniHojo-UTF8-V"
+  ${FILE}UniJIS-UCS2-H"
+  ${FILE}UniJIS-UCS2-HW-H"
+  ${FILE}UniJIS-UCS2-HW-V"
+  ${FILE}UniJIS-UCS2-V"
+  ${FILE}UniJIS-UTF16-H"
+  ${FILE}UniJIS-UTF16-V"
+  ${FILE}UniJIS-UTF32-H"
+  ${FILE}UniJIS-UTF32-V"
+  ${FILE}UniJIS-UTF8-H"
+  ${FILE}UniJIS-UTF8-V"
+  ${FILE}UniJIS2004-UTF16-H"
+  ${FILE}UniJIS2004-UTF16-V"
+  ${FILE}UniJIS2004-UTF32-H"
+  ${FILE}UniJIS2004-UTF32-V"
+  ${FILE}UniJIS2004-UTF8-H"
+  ${FILE}UniJIS2004-UTF8-V"
+  ${FILE}UniJISPro-UCS2-HW-V"
+  ${FILE}UniJISPro-UCS2-V"
+  ${FILE}UniJISPro-UTF8-V"
+  ${FILE}UniJISX0213-UTF32-H"
+  ${FILE}UniJISX0213-UTF32-V"
+  ${FILE}UniJISX02132004-UTF32-H"
+  ${FILE}UniJISX02132004-UTF32-V"
+  ${FILE}UniKS-UCS2-H"
+  ${FILE}UniKS-UCS2-V"
+  ${FILE}UniKS-UTF16-H"
+  ${FILE}UniKS-UTF16-V"
+  ${FILE}UniKS-UTF32-H"
+  ${FILE}UniKS-UTF32-V"
+  ${FILE}UniKS-UTF8-H"
+  ${FILE}UniKS-UTF8-V"
+  ${FILE}V"
+  ${FILE}WP-Symbol"
+
+!macroend
+
+!macro FileListGhostscriptResourceColorSpace COMMAND DIRECTORY
+
+  ${FILE}DefaultCMYK"
+  ${FILE}DefaultGray"
+  ${FILE}DefaultRGB"
+  ${FILE}TrivialCMYK"
+
+!macroend
+
+!macro FileListGhostscriptResourceDecoding COMMAND DIRECTORY
+
+  ${FILE}FCO_Dingbats"
+  ${FILE}FCO_Symbol"
+  ${FILE}FCO_Unicode"
+  ${FILE}FCO_Wingdings"
+  ${FILE}Latin1"
+  ${FILE}StandardEncoding"
+  ${FILE}Unicode"
+
+!macroend
+
+!macro FileListGhostscriptResourceEncoding COMMAND DIRECTORY
+
+  ${FILE}Wingdings"
+
+!macroend
index 248ea90587eabf8ec8b99ec11b45b776c2d16f59..4815a74c01878c9da00ea2ec532b64326aff309c 100644 (file)
@@ -31,15 +31,19 @@ BrandingText " "
 # Installer\r
 \r
 !define MUI_WELCOMEPAGE_TITLE_3LINES\r
-!define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME_${SETUPTYPE_NAME})\r
+!define MUI_WELCOMEPAGE_TEXT $(TEXT_WELCOME)\r
 !insertmacro MUI_PAGE_WELCOME\r
 !insertmacro MUI_PAGE_LICENSE "${FILES_LICENSE}"\r
 !insertmacro MULTIUSER_PAGE_INSTALLMODE\r
 \r
 Page custom PageReinstall PageReinstallValidate\r
 Page custom PageExternalLaTeX PageExternalLaTeXValidate\r
+!ifndef BUNDLE_IMAGEMAGICK\r
 Page custom PageExternalImageMagick PageExternalImageMagickValidate\r
+!endif\r
+!ifndef BUNDLE_GHOSTSCRIPT\r
 Page custom PageExternalGhostscript PageExternalGhostscriptValidate\r
+!endif\r
 Page custom PageLanguage PageLanguageValidate\r
 \r
 !define MUI_PAGE_HEADER_TEXT $(TEXT_DICT_TITLE)\r
index af28c0b1e95fcbaf6289d33a031a0c62794f2a2b..e2b31be240261a457819dd1cee781ccfa62f56c7 100644 (file)
@@ -31,12 +31,15 @@ Function .onInit
   !insertmacro MULTIUSER_INIT
  
   ${IfNot} ${Silent}
+  
+    !ifndef BUNDLE_IMAGEMAGICK & BUNDLE_GHOSTSCRIPT
     # Warn the user when no Administrator or Power user privileges are available
     # These privileges are required to install ImageMagick or Ghostscript
     ${If} $MultiUser.Privileges != "Admin"
-    ${andif} $MultiUser.Privileges != "Power"
+    ${AndIf} $MultiUser.Privileges != "Power"
       MessageBox MB_OK|MB_ICONEXCLAMATION $(TEXT_NO_PRIVILEDGES)
     ${EndIf}
+    !endif
     
     # Show banner while installer is intializating 
     Banner::show /NOUNLOAD "Checking system"
diff --git a/development/Win32/packaging/installer/include/nsis.nsh b/development/Win32/packaging/installer/include/nsis.nsh
new file mode 100644 (file)
index 0000000..cf38f7a
--- /dev/null
@@ -0,0 +1,49 @@
+/*\r
+\r
+nsis.nsh\r
+\r
+Configuration of standard NSIS header files\r
+\r
+*/\r
+\r
+#--------------------------------\r
+# Multi-User settings\r
+\r
+!define MULTIUSER_EXECUTIONLEVEL Highest\r
+!define MULTIUSER_INSTALLMODE_COMMANDLINE\r
+!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "${APP_REGKEY}"\r
+!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME ""\r
+\r
+!define MULTIUSER_INSTALLMODE_INSTDIR "${APP_DIR}"\r
+!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "${APP_REGKEY}"\r
+!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME ""\r
+\r
+!define MULTIUSER_INSTALLMODE_FUNCTION InitUser\r
+!define MULTIUSER_MUI\r
+\r
+#--------------------------------\r
+# Standard header files\r
+\r
+!include MUI2.nsh\r
+!include LogicLib.nsh\r
+!include StrFunc.nsh\r
+!include FileFunc.nsh\r
+!include WordFunc.nsh\r
+!include Sections.nsh\r
+!include WinVer.nsh\r
+!include LangFile.nsh\r
+!include MultiUser.nsh\r
+!include nsDialogs.nsh\r
+\r
+#--------------------------------\r
+# Windows constants\r
+\r
+!define SHCNE_ASSOCCHANGED 0x08000000\r
+!define SHCNF_IDLIST 0x0000\r
+  \r
+#--------------------------------\r
+# Include standard functions\r
+\r
+!insertmacro GetParent\r
+!insertmacro VersionCompare\r
+!insertmacro WordFind2X\r
diff --git a/development/Win32/packaging/installer/include/variables.nsh b/development/Win32/packaging/installer/include/variables.nsh
new file mode 100644 (file)
index 0000000..9c254b1
--- /dev/null
@@ -0,0 +1,30 @@
+/*\r
+\r
+variables.nsh\r
+\r
+Variables that are shared between multiple files\r
+\r
+*/\r
+\r
+Var PathLaTeX\r
+Var PathLaTeXLocal\r
+Var PathImageMagick\r
+Var PathGhostscript\r
+\r
+Var SetupLaTeX\r
+Var SizeLaTeX\r
+\r
+!ifndef BUNDLE_IMAGEMAGICK\r
+  Var SetupImageMagick\r
+  Var SizeImageMagick\r
+!endif\r
+\r
+!ifndef BUNDLE_GHOSTSCRIPT\r
+  Var SetupGhostscript\r
+  Var SizeGhostscript\r
+!endif\r
+\r
+Var LangName\r
+Var LangISOCode\r
+\r
+Var PrinterConf\r
index b701684f7d07d86bf88c7fe652a59f3053c310f5..73fb0b821773223e7e63a5c290e4af162efcf049 100644 (file)
@@ -12,8 +12,7 @@ ${LangFileString} TEXT_NO_PRIVILEDGES "You don't have Administrator or Power Use
 
 ${LangFileString} TEXT_INSTALL_CURRENTUSER "(Installed for Current User)"
 
-${LangFileString} TEXT_WELCOME_DOWNLOAD "This wizard will guide you through the installation of $(^NameDA), the document processor that encourages an approach to writing based on the structure of your documents, not their appearance.$\r$\n$\r$\nThis installer will setup a complete environment to use ${APP_NAME} and can download missing components automatically.$\r$\n$\r$\n$(^ClickNext)"
-${LangFileString} TEXT_WELCOME_INSTALL "This wizard will guide you through the installation of $(^NameDA), the document processor that encourages an approach to writing based on the structure of your documents, not their appearance.$\r$\n$\r$\nThis installer will setup a complete environment to use ${APP_NAME} and can install missing components automatically.$\r$\n$\r$\n$(^ClickNext)"
+${LangFileString} TEXT_WELCOME "This wizard will guide you through the installation of $(^NameDA), the document processor that encourages an approach to writing based on the structure of your documents, not their appearance.$\r$\n$\r$\nThis installer will setup a complete environment to use ${APP_NAME}.$\r$\n$\r$\n$(^ClickNext)"
 
 ${LangFileString} TEXT_REINSTALL_TITLE "Reinstall"
 ${LangFileString} TEXT_REINSTALL_SUBTITLE "Choose whether you want to reinstall the $(^NameDA) program files."
@@ -85,6 +84,7 @@ ${LangFileString} TEXT_NOTINSTALLED_DICT "The setup wizard of the $DictionaryLan
 
 ${LangFileString} TEXT_CONFIGURE_MIKTEXFNDB "Updating MiKTeX filename database..."
 ${LangFileString} TEXT_CONFIGURE_LYX "Configuring LyX (MiKTeX may download missing packages, this can take some time) ..."
+${LangFileString} TEXT_CONFIGURE_PYTHON "Compiling Python scripts..."
 
 ${LangFileString} TEXT_FINISH_DESKTOP "Create desktop shortcut"
 ${LangFileString} TEXT_FINISH_WEBSITE "Visit lyx.org for the latest news, support and tips"
index 7a2b517141ae3e1f4504c8e1638cb306884cff1c..298394f1f93fe99787fc7f45e546072216558962 100644 (file)
@@ -12,8 +12,7 @@ ${LangFileString} TEXT_NO_PRIVILEDGES "Vous n'avez pas les privil
 
 ${LangFileString} TEXT_INSTALL_CURRENTUSER "(Installation pour l'utilisateur courant)"
 
-${LangFileString} TEXT_WELCOME_DOWNLOAD "Cet assistant va vous guider tout au long de l'installation de $(^NameDA), le constructeur de documents qui encourage une saisie fondée sur la structure du document plutôt que sur son apparence.$\r$\n$\r$\nCet assistant d'installation va paramétrer un environnement complet d'utilisation de ${APP_NAME} et peut télécharger automatiquement les composants manquants.$\r$\n$\r$\n$(^ClickNext)"
-${LangFileString} TEXT_WELCOME_INSTALL "Cet assistant va vous guider tout au long de l'installation de $(^NameDA), le constructeur de documents qui encourage une saisie fondée sur la structure du document plutôt que sur son apparence.$\r$\n$\r$\nCet assistant d'installation va paramétrer un environnement complet d'utilisation de ${APP_NAME} et peut installer automatiquement les composants manquants.$\r$\n$\r$\n$(^ClickNext)"
+${LangFileString} TEXT_WELCOME "Cet assistant va vous guider tout au long de l'installation de $(^NameDA), le constructeur de documents qui encourage une saisie fondée sur la structure du document plutôt que sur son apparence.$\r$\n$\r$\nCet assistant d'installation va paramétrer un environnement complet d'utilisation de ${APP_NAME}.$\r$\n$\r$\n$(^ClickNext)"
 
 ${LangFileString} TEXT_REINSTALL_TITLE "Réinstallation"
 ${LangFileString} TEXT_REINSTALL_SUBTITLE "Réinstallation éventuelle des fichiers programmes de $(^NameDA) ?"
index 687d2542c8492cd344a3a18869a62be960253a24..eac6cf2f96a82a609459c54588af453e2d9662ff 100644 (file)
@@ -10,8 +10,7 @@ Author: Andreas Deininger
 
 ${LangFileString} TEXT_NO_PRIVILEDGES "Sie gehören weder der Gruppe der Administratoren noch der Gruppe der Hauptbenutzer an.$\r$\nDie Werkzeuge zur Grafikkonvertierung können ohne diese Rechte nicht installiert werden."
 
-${LangFileString} TEXT_WELCOME_DOWNLOAD "Dieses Installationsprogramm wird Sie durch die Installation von $(^NameDA) leiten, des Dokumentenverarbeitungsprogramms welches das Verfassen von Texten basierend auf ihrer Struktur unterstützt, nicht das Verfassen von Texten ausgerichtet auf ihr Erscheinungsbild.$\r$\n$\r$\nDieses Installationsprogramm wird ein Komplettsystem zur Nutzung von ${APP_NAME} auf Ihrem Rechner erzeugen, dabei können fehlende Komponenten automatisch heruntergeladen werden.$\r$\n$\r$\n$(^ClickNext)"
-${LangFileString} TEXT_WELCOME_INSTALL "Dieses Installationsprogramm wird Sie durch die Installation von $(^NameDA) leiten, des Dokumentenverarbeitungsprogramms welches das Verfassen von Texten basierend auf ihrer Struktur unterstützt, nicht das Verfassen von Texten ausgerichtet auf ihr Erscheinungsbild.$\r$\n$\r$\nDieses Installationsprogramm wird ein Komplettsystem zur Nutzung von ${APP_NAME} auf Ihrem Rechner erzeugen, dabei können fehlende Komponenten automatisch heruntergeladen werden.$\r$\n$\r$\n$(^ClickNext)"
+${LangFileString} TEXT_WELCOME "Dieses Installationsprogramm wird Sie durch die Installation von $(^NameDA) leiten, des Dokumentenverarbeitungsprogramms welches das Verfassen von Texten basierend auf ihrer Struktur unterstützt, nicht das Verfassen von Texten ausgerichtet auf ihr Erscheinungsbild.$\r$\n$\r$\nDieses Installationsprogramm wird ein Komplettsystem zur Nutzung von ${APP_NAME} auf Ihrem Rechner erzeugen.$\r$\n$\r$\n$(^ClickNext)"
 
 ${LangFileString} TEXT_REINSTALL_TITLE "Erneute Installation"
 ${LangFileString} TEXT_REINSTALL_SUBTITLE "Wählen Sie aus, ob Sie die $(^NameDA) Programmdateien erneut installieren möchten."
index 795db2550a3be78a3bf1c4b6065c47671e935d26..3dd585a01c71ebcb7fab17ae0297767e89a2596c 100644 (file)
@@ -10,8 +10,7 @@ Author: Enrico Forestieri
 
 ${LangFileString} TEXT_NO_PRIVILEDGES "Non si hanno privilegi da amministratore o utente avanzato.$\r$\nLe utilità per la conversione delle immagini non possono essere installate senza tali privilegi."
 
-${LangFileString} TEXT_WELCOME_DOWNLOAD "Verrete guidati nell'installazione di $(^NameDA), il compilatore di documenti che incoraggia un approccio alla scrittura basato sulla struttura dei vostri testi, non sulla loro apparenza.$\r$\n$\r$\nQuesto installer preparerà un ambiente completo per usare ${APP_NAME} ed è in grado di scaricare automaticamente dalla rete i componenti mancanti.$\r$\n$\r$\n$(^ClickNext)"
-${LangFileString} TEXT_WELCOME_INSTALL "Verrete guidati nell'installazione di $(^NameDA), il compilatore di documenti che incoraggia un approccio alla scrittura basato sulla struttura dei vostri testi, non sulla loro apparenza.$\r$\n$\r$\nQuesto installer preparerà un ambiente completo per usare ${APP_NAME} ed è in grado di installare automaticamente i componenti mancanti.$\r$\n$\r$\n$(^ClickNext)"
+${LangFileString} TEXT_WELCOME "Verrete guidati nell'installazione di $(^NameDA), il compilatore di documenti che incoraggia un approccio alla scrittura basato sulla struttura dei vostri testi, non sulla loro apparenza.$\r$\n$\r$\nQuesto installer preparerà un ambiente completo per usare ${APP_NAME}.$\r$\n$\r$\n$(^ClickNext)"
 
 ${LangFileString} TEXT_REINSTALL_TITLE "Reinstallazione"
 ${LangFileString} TEXT_REINSTALL_SUBTITLE "Scegliete se volete reinstallare i file di $(^NameDA)."
index e743595c6e0bbd24aeac370d4d78ddd61cc6311c..3951e6061eacfc46d9daab555c2d48c0d39e3a8b 100644 (file)
@@ -5,6 +5,8 @@
 \pard\par\r
 \pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\fi-720\li720 LyX. You can redistribute LyX and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par\r
 {\pntext\f2\'B7\tab}Components of Python. You can redistribute Python and/or modify it under the terms of the Python Software Foundation License Version 2.\par\r
+{\pntext\f2\'B7\tab}Components of ImageMagick. You can redistribute the BaKoMa fonts under the terms of the ImageMagick license.\par\r
+{\pntext\f2\'B7\tab}Components of GPL Ghostscript. You can redistribute Netpbm and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par\r
 {\pntext\f2\'B7\tab}Components of Aspell. You can redistribute Aspell and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.\par\r
 {\pntext\f2\'B7\tab}A modified version of the BaKoMa fonts. You can redistribute the BaKoMa fonts under the terms of the BaKoMa Font License.\par\r
 {\pntext\f2\'B7\tab}The wasy font 'wasy10.ttf' from the latex-xft font bundle: http://packages.qa.debian.org/l/latex-xft-fonts.html. You can redistribute the latex-xft font bundle and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par\r
@@ -338,6 +340,57 @@ That's all there is to it!\par
 \par\r
 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.\par\r
 \par\r
+\pard\qc\b\fs24 IMAGEMAGICK LICENSE\b0\fs16\par\r
+\pard\par\r
+The legally binding and authoritative terms and conditions for use, reproduction, and distribution of ImageMagick follow:\par\r
+\par\r
+Copyright 1999-2007 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available.\par\r
+\par\r
+1. Definitions.\par\r
+\par\r
+License shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\par\r
+\par\r
+Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\par\r
+\par\r
+Legal Entity shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, control means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\par\r
+\par\r
+You (or Your) shall mean an individual or Legal Entity exercising permissions granted by this License.\par\r
+\par\r
+Source form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\par\r
+\par\r
+Object form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\par\r
+\par\r
+Work shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\par\r
+\par\r
+Derivative Works shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\par\r
+\par\r
+Contribution shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, submitted means any form of electronic, verbal, or written communication intentionally sent to the Licensor by its copyright holder or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution.\par\r
+\par\r
+Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\par\r
+\par\r
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\par\r
+\par\r
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted.\par\r
+\par\r
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\par\r
+\par\r
+a. You must give any other recipients of the Work or Derivative Works a copy of this License; and\par\r
+b. You must cause any modified files to carry prominent notices stating that You changed the files; and\par\r
+c. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\par\r
+d. If the Work includes a NOTICE text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\par\r
+\par\r
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\par\r
+\par\r
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\par\r
+\par\r
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\par\r
+\par\r
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\par\r
+\par\r
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\par\r
+\par\r
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License.\par\r
+\par\r
 \pard\qc\b\fs24 BaKoMa Fonts License\par\r
 \pard\b0\fs16\par\r
 This licence covers two font packs (known as BaKoMa Fonts Colelction, which is available at `CTAN:fonts/cm/ps-type1/bakoma/'):\par\r
@@ -350,7 +403,7 @@ AMS TeX fonts in PostScript Type 1 and TrueType font formats.\par
    \par\r
 Copyright (C) 1994, 1995, Basil K. Malyshev. All Rights Reserved.\par\r
 \par\r
-Permission to copy and distribute these fonts for any purpose is  hereby granted without fee, provided that the above copyright notice, author statement and this permission notice appear in all copies of these fonts and related documentation.\par\r
+Permission to copy and distribute these fonts for any purpose is hereby granted without fee, provided that the above copyright notice, author statement and this permission notice appear in all copies of these fonts and related documentation.\par\r
 \par\r
 Permission to modify and distribute modified fonts for any purpose is hereby granted without fee, provided that the copyright notice, author statement, this permission notice and location of original fonts (http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma) appear in all copies of modified fonts and related documentation.\par\r
 \par\r
index d65487059dc296fa4937fa9e17d79465034d919e..171e88faacb461739e7423f93b09dc72fbea805e 100644 (file)
@@ -20,37 +20,20 @@ Licence details for all installer scripts can be found in the file COPYING
 # Compile Windows PDF view helper\r
 !system '"${NSISDIR}\makensis.exe" "${FILES_PDFVIEW}\pdfview.nsi"'\r
 \r
-#--------------------------------\r
-# Output file can be specified using command line option\r
-# /DExeFile=/path/to/installer or /DBundleExeFile=/path/to/installer if \r
-# SETUPTYPE_BUNDLE is defined.\r
-\r
-!ifdef SETUPTYPE_BUNDLE\r
-  # Bundle installer\r
-  !ifdef BundleExeFile\r
-    OutFile "${BundleExeFile}"\r
-  !else\r
-    Outfile "${SETUP_EXE}"\r
- !endif \r
-!else\r
-  # Regular installer\r
-  !ifdef ExeFile\r
-    OutFile "${ExeFile}"\r
-  !else\r
-    Outfile "${SETUP_EXE}"\r
-  !endif\r
-!endif\r
-\r
 #--------------------------------\r
 # Header files  \r
 \r
 !include include\declarations.nsh\r
-!include include\detection.nsh\r
+!include include\variables.nsh\r
+!include include\nsis.nsh\r
+\r
 !include include\dictlist.nsh\r
 !include include\filelist.nsh\r
+!include include\langlist.nsh\r
+\r
+!include include\detection.nsh\r
 !include include\gui.nsh\r
 !include include\init.nsh\r
-!include include\langlist.nsh\r
 \r
 #--------------------------------\r
 # Setup\r
@@ -65,3 +48,8 @@ Licence details for all installer scripts can be found in the file COPYING
 !include gui\external.nsh\r
 !include gui\langselect.nsh\r
 !include gui\reinstall.nsh\r
+\r
+#--------------------------------\r
+# Output file\r
+\r
+Outfile "${SETUP_EXE}"\r
index 61f984c400868ca736d828b21ca29fcd814408a0..73704fede7c9498c8f485e322fe05005eb73a9ff 100644 (file)
 \r
 Settings for LyX installer\r
 \r
+These typically need to be modified for each LyX release\r
+\r
 */\r
 \r
-SetCompressor /SOLID lzma\r
+#--------------------------------\r
+# Version number\r
+\r
+!define APP_VERSION_MAJOR 1\r
+!define APP_VERSION_MINOR 6\r
+!define APP_VERSION_REVISION 0\r
+!define APP_VERSION_BUILD 0 # Start with 1 for the installer releases of each version\r
 \r
 #--------------------------------\r
-# Location of LyX files and dependencies\r
+# Installer file name\r
 \r
-!ifdef FilesLyX\r
-  !define FILES_LYX "${FilesLyX}"\r
-!else\r
-  !define FILES_LYX "..\..\..\..\build-msvc"\r
-!endif\r
+# Typical names for the release are "LyX-1.5.4-1-Installer.exe" etc.\r
 \r
-!ifdef FilesDeps\r
-  !define FILES_DEPS "${FilesDeps}"\r
-!else\r
-  !define FILES_DEPS "..\..\..\..\lyx-windows-deps-msvc2008"\r
+!ifndef ExeFile\r
+  !define /date ExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer.exe"\r
 !endif\r
-\r
-!ifdef FilesBundle\r
-  !define FILES_BUNDLE "${FilesBundle}"\r
-!else\r
-  !define FILES_BUNDLE "..\..\..\..\lyx-windows-bundle-deps"\r
+!ifndef BundleExeFile\r
+  !define /date BundleExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer-Bundle.exe"\r
 !endif\r
-\r
-#--------------------------------\r
-# Location of Python 2.5\r
-\r
-!ifdef FilesPython\r
-  !define FILES_PYTHON "${FilesPython}"\r
-!else\r
-  !define FILES_PYTHON "C:\Python25"\r
+!ifndef MinimalExeFile\r
+  !define /date MinimalExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer-Minimal.exe"\r
 !endif\r
 \r
 #--------------------------------\r
-# File locations\r
-\r
-!define FILES_LICENSE "license.rtf"\r
-\r
-!define FILES_ICONS "..\icons"\r
-!define FILES_LAUNCHER "..\..\launcher"\r
-!define FILES_PDFVIEW "..\..\pdfview"\r
-\r
-!define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375"\r
-!define FILES_NETPBM "${FILES_DEPS}\netpbm"\r
-!define FILES_DTL "${FILES_DEPS}\dtl"\r
-!define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"\r
-!define FILES_DVIPOST "${FILES_DEPS}\dvipost"\r
-!define FILES_DVIPOST_PKG "${FILES_DVIPOST}"\r
-!define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"\r
-!define FILES_METAFILE2EPS "${FILES_DEPS}\metafile2eps"\r
-!define FILES_PSPRINTER "${FILES_DEPS}\metafile2eps\PSPrinter"\r
-\r
-!define FILES_QT "${FILES_DEPS}\qt-4"\r
-!define FILES_ASPELLDATA "${FILES_DEPS}\aspell"\r
-\r
-!define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"\r
-\r
-#--------------------------------\r
-# Locations of components to download\r
+# File names of component installers\r
 \r
-!define MIRROR_SF1 "http://superb-west.dl.sourceforge.net/sourceforge"\r
-!define MIRROR_SF2 "http://mesh.dl.sourceforge.net/sourceforge"\r
-\r
-!macro SourceForgeMirror ID FILENAME\r
-  !define DOWNLOAD_${ID} "${MIRROR_SF1}/${FILENAME}"\r
-  !define DOWNLOADALT_${ID} "${MIRROR_SF2}/${FILENAME}"\r
-!macroend\r
-\r
-!insertmacro SourceForgeMirror LATEX "miktex/basic-miktex-2.7.2904.exe"\r
-!insertmacro SourceForgeMirror IMAGEMAGICK "imagemagick/ImageMagick-6.3.7-8-Q16-windows-dll.exe"\r
-!insertmacro SourceForgeMirror GHOSTSCRIPT "ghostscript/gs861w32.exe"\r
-\r
-!define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"\r
-!define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"\r
+!define SETUPFILE_LATEX "basic-miktex.2.7.2960.exe"\r
+!define SETUPFILE_IMAGEMAGEMAGICK "ImageMagick-6.4.1-0-Q16-windows-dll.exe"\r
+!define SETUPFILE_GHOSTSCRIPT "gs861w32.exe"\r
 \r
 #--------------------------------\r
-# Download size (in KB)\r
+# Download size of components (in KB)\r
 \r
 !define SIZE_DOWNLOAD_LATEX 78493\r
-!define SIZE_DOWNLOAD_IMAGEMAGICK 7330\r
+!define SIZE_DOWNLOAD_IMAGEMAGICK 8565\r
 !define SIZE_DOWNLOAD_GHOSTSCRIPT 12469\r
 \r
 #--------------------------------\r
 # Approximations of space required for components (in KB)\r
 \r
 !define SIZE_LATEX 225000\r
-!define SIZE_IMAGEMAGICK 18700\r
+!define SIZE_IMAGEMAGICK 34500\r
 !define SIZE_GHOSTSCRIPT 31500\r
-\r
-#--------------------------------\r
-# Locations of setup files for components (for bundled setup)\r
-\r
-!define INSTALL_LATEX "basic-miktex-2.7.2904.exe"\r
-!define INSTALL_IMAGEMAGICK "ImageMagick-6.3.7-8-Q16-windows-dll.exe"\r
-!define INSTALL_GHOSTSCRIPT "gs861w32.exe"\r
-\r
-#--------------------------------\r
-# Names and version\r
-\r
-!define APP_NAME "LyX"\r
-!define /date APP_VERSION "1.6svn %Y%m%d"\r
-!define APP_VERSION_NUMBER "1.6.0.0"\r
-!define APP_SERIES_NAME "1.6"\r
-!define APP_SERIES_KEY "16"\r
-!define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"\r
-!define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"\r
-!define APP_INFO "${APP_NAME} - The Document Processor"\r
-!define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"\r
-\r
-!define APP_RUN "bin\lyx.exe"\r
-\r
-!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"\r
-!define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"\r
-!define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"\r
-\r
-!define APP_REGNAME_DOC "LyX.Document"\r
-\r
-!define APP_EXT ".lyx"\r
-!define APP_MIME_TYPE "application/lyx"\r
-\r
-#--------------------------------\r
-# Setup settings\r
-\r
-# Output file name can be configured using command line paramater\r
-# /DExeFile=/path/to/installer or /DBundleExeFile=/path/to/installer if \r
-# SETUPTYPE_BUNDLE is defined.\r
-\r
-!ifndef SETUPTYPE_BUNDLE\r
-  !ifndef ExeFile\r
-    !define /date ExeFile "LyX-16svn-%Y%m%d-Installer.exe"\r
-  !endif\r
-  !define SETUP_EXE "${ExeFile}"\r
-!else\r
-  !ifndef BundleExeFile\r
-    !define /date BundleExeFile "LyX-16svn-%Y%m%d-Installer-Bundle.exe"\r
-  !endif\r
-  !define SETUP_EXE "${BundleExeFile}"  \r
-!endif\r
-\r
-!define SETUP_ICON "${FILES_ICONS}\lyx.ico"\r
-!define SETUP_HEADERIMAGE "graphics\header.bmp"\r
-!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"\r
-!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"\r
-!define SETUP_UNINSTALLER_KEY "${APP_NAME}"\r
-\r
-#--------------------------------\r
-# Names of binaries to identify compontents\r
-\r
-!define BIN_LATEX "tex.exe"\r
-!define BIN_IMAGEMAGICK "convert.exe"\r
-!define BIN_GHOSTSCRIPT "gswin32c.exe"\r
-\r
-#--------------------------------\r
-# Custom NSIS plug-ins\r
-\r
-!addplugindir "${FILES_NSISPLUGINS}"\r
index 03b43084056866e76d9870a514f983688fd298ad..2b4949d8caf1176190a9019fb013c6450dd76265 100644 (file)
@@ -22,7 +22,7 @@ Section -FileAssociations
   !define REG_FILETYPE 'WriteRegStr SHELL_CONTEXT "Software\Classes\${APP_REGNAME_DOC}'
   
   ${REG_FILETYPE}" "" "${APP_NAME} Document"
-  ${REG_FILETYPE}\DefaultIcon" "" "$INSTDIR\bin\lyx.exe,0"
+  ${REG_FILETYPE}\DefaultIcon" "" "$INSTDIR\bin\LyXLauncher.exe,0"
   ${REG_FILETYPE}\Shell\open\command" "" '"$INSTDIR\${APP_RUN}" "%1"'
   
   !define REG_FILEEXT 'WriteRegStr SHELL_CONTEXT "Software\Classes\${APP_EXT}"'
@@ -64,7 +64,7 @@ Section -InstallData
   
   ${REG_UNINSTALL} "UninstallString" '"$INSTDIR\${SETUP_UNINSTALLER}"'
   ${REG_UNINSTALL} "DisplayVersion" "${APP_VERSION}"
-  ${REG_UNINSTALL} "DisplayIcon" "$INSTDIR\bin\lyx.exe,0"
+  ${REG_UNINSTALL} "DisplayIcon" "$INSTDIR\bin\LyXLauncher,0"
   ${REG_UNINSTALL} "URLUpdateInfo" "http://www.lyx.org/"
   ${REG_UNINSTALL} "URLInfoAbout" "http://www.lyx.org/about/"
   ${REG_UNINSTALL} "Publisher" "LyX Team"
@@ -86,6 +86,13 @@ Section -Configure
 
   StrCpy $PathPrefix "$INSTDIR\bin;$INSTDIR\python"
   
+  !ifdef BUNDLE_IMAGEMAGICK
+    StrCpy $PathImageMagick "$INSTDIR\imagemagick"
+  !endif
+  !ifdef BUNDLE_GHOSTSCRIPT
+    StrCpy $PathGhostscript "$INSTDIR\ghostscript\bin"
+  !endif  
+  
   ${If} $PathLaTeX != ""
     StrCpy $PathPrefix "$PathPrefix;$PathLaTeX"
   ${EndIf}
@@ -166,13 +173,13 @@ SectionEnd
 #--------------------------------
 # Run the LyX configure.py script, so MiKTeX can download its packages
 
-Var PythonReturn
+Var ConfigureReturn
 
 Section -ConfigureScript
 
   DetailPrint $(TEXT_CONFIGURE_LYX)
   nsExec::ExecToLog '"$INSTDIR\python\python.exe" "$INSTDIR\Resources\configure.py"'
-  Pop $PythonReturn # Return value
+  Pop $ConfigureReturn # Return value
 
 SectionEnd
 
index a4a0f0d316743384b4ab764e379df997049634e3..41370f37938a9c1211ef231d721142b8ab152bac 100644 (file)
@@ -9,53 +9,98 @@ Installation of program files, dictionaries and external components
 #--------------------------------
 # Program files
 
+Var PythonCompileFile
+Var PythonCompileReturn
+
 Section -ProgramFiles SecProgramFiles
 
   # Install and register the core LyX files
+  
+  # The macros are defined in filelists.nsh
+  # the parameters are COMMAND DIRECTORY that form command '${COMMAND} "${DIRECTORY}files"  
+  
   # Initializes the plug-ins dir ($PLUGINSDIR) if not already initialized.
   # $PLUGINSDIR is automatically deleted when the installer exits.
   InitPluginsDir
   
-  # Binaries
+  # Delete stuff from previous version
+  Delete "$INSTDIR\bin\lyxc.exe"
   
+  # Binaries
   SetOutPath "$INSTDIR\bin"
-
-  # launcher becomes lyx.exe while the real lyx.exe is renamed to lyxc.exe
-  File "${FILES_LAUNCHER}\lyx.exe"
-  File /oname=lyxc.exe "${FILES_LYX}\bin\lyx.exe"
-  
-  # The macros are defined in filelists.nsh
-  # the parameters are COMMAND DIRECTORY that form command '${COMMAND} "${DIRECTORY}files"
   !insertmacro FileListLyXBin File "${FILES_LYX}\bin\"
+  !insertmacro FileListLyXLauncher File "${FILES_LAUNCHER}\"  
   !insertmacro FileListQtBin File "${FILES_QT}\bin\"
-  
-  !insertmacro FileListDllMSVCBin File "${FILES_DEPS}\bin\"
+  !insertmacro FileListDll File "${FILES_DEPS}\bin\"
   !insertmacro FileListMSVCBin File "${FILES_MSVC}\"
-  !insertmacro FileListMSVCManifest File "..\"    
-
+  !insertmacro FileListMSVCManifest File "..\"
   !insertmacro FileListNetpbmBin File "${FILES_NETPBM}\"
   !insertmacro FileListDTLBin File "${FILES_DTL}\"
   !insertmacro FileListDvipostBin File "${FILES_DVIPOST}\"
   !insertmacro FileListPDFViewBin File "${FILES_PDFVIEW}\"
   !insertmacro FileListPDFToolsBin File "${FILES_PDFTOOLS}\"
+  !insertmacro FileListNSISPluginsStandard File "${NSISDIR}\Plugins\"
+  !insertmacro FileListNSISPlugins File "${FILES_NSISPLUGINS}\"
+  !insertmacro FileListMetaFile2EPS File "${FILES_METAFILE2EPS}\"
   
   # Resources
-  
   SetOutPath "$INSTDIR"
   # recursively copy all files under Resources
   File /r "${FILES_LYX}\Resources"
   
   # Components of Python
-  
   SetOutPath "$INSTDIR\python"
   !insertmacro FileListPythonBin File "${FILES_PYTHON}\"
-  !insertmacro FileListPythonDll File "$%SystemRoot%\System32\"
-  !insertmacro FileListUnicodeDll File "${FILES_PYTHON}\DLLs\"
+  !insertmacro FileListMSVCBin File "${FILES_MSVC}\"
+  !insertmacro FileListMSVCManifest File "..\"  
   SetOutPath "$INSTDIR\python\Lib"
   !insertmacro FileListPythonLib File "${FILES_PYTHON}\Lib\"
   SetOutPath "$INSTDIR\python\Lib\encodings"
   !insertmacro FileListPythonLibEncodings File "${FILES_PYTHON}\Lib\encodings\"
   
+  # Compile all Pyton files to byte-code
+  # The user using the scripts may not have write access
+  FileOpen $PythonCompileFile "$INSTDIR\compilepy.py" w
+  FileWrite $PythonCompileFile "import compileall$\r$\n"
+  FileWrite $PythonCompileFile "compileall.compile_dir('$INSTDIR\python\Lib')$\r$\n"
+  FileWrite $PythonCompileFile "compileall.compile_dir('$INSTDIR\Resources')$\r$\n"
+  FileClose $PythonCompileFile
+  DetailPrint $(TEXT_CONFIGURE_PYTHON)
+  nsExec::ExecToLog '"$INSTDIR\python\python.exe" "$INSTDIR\compilepy.py"'
+  Pop $PythonCompileReturn # Return value
+  Delete "$INSTDIR\compilepy.py"
+  
+  !ifdef BUNDLE_IMAGEMAGICK
+  # Components of ImageMagick
+  SetOutPath "$INSTDIR\imagemagick"
+  !insertmacro FileListImageMagick File "${FILES_IMAGEMAGICK}\"
+  !insertmacro FileListMSVCBin File "${FILES_MSVC}\"
+  !insertmacro FileListMSVCManifest File "..\"
+  !endif  
+  
+  !ifdef BUNDLE_GHOSTSCRIPT
+  # Components of Ghostscript
+  SetOutPath "$INSTDIR\ghostscript"
+  SetOutPath "$INSTDIR\ghostscript\bin"
+  !insertmacro FileListGhostscriptBin File "${FILES_GHOSTSCRIPT}\bin\"
+  !insertmacro FileListMSVCBin File "${FILES_MSVC}\"
+  !insertmacro FileListMSVCManifest File "..\"  
+  SetOutPath "$INSTDIR\ghostscript\lib"
+  !insertmacro FileListGhostscriptLib File "${FILES_GHOSTSCRIPT}\lib\"
+  SetOutPath "$INSTDIR\ghostscript\fonts"
+  !insertmacro FileListGhostscriptFonts File "${FILES_GHOSTSCRIPT}\fonts\"
+  SetOutPath "$INSTDIR\ghostscript\Resource"
+  SetOutPath "$INSTDIR\ghostscript\Resource\CMap"
+  !insertmacro FileListGhostscriptResourceCMap File "${FILES_GHOSTSCRIPT}\Resource\CMap\"
+  SetOutPath "$INSTDIR\ghostscript\Resource\ColorSpace"
+  !insertmacro FileListGhostscriptResourceColorSpace File "${FILES_GHOSTSCRIPT}\Resource\ColorSpace\"
+  SetOutPath "$INSTDIR\ghostscript\Resource\Decoding"
+  !insertmacro FileListGhostscriptResourceDecoding File "${FILES_GHOSTSCRIPT}\Resource\Decoding\"
+  SetOutPath "$INSTDIR\ghostscript\Resource\Encoding"
+  !insertmacro FileListGhostscriptResourceEncoding File "${FILES_GHOSTSCRIPT}\Resource\Encoding\"
+  
+  !endif  
+  
   # Aspell
 
   # Copy installer to pluginsdir (a temp dir)
@@ -72,20 +117,9 @@ Section -ProgramFiles SecProgramFiles
   Delete "$PLUGINSDIR\AspellData.exe"
 
   # Aiksarus data
-  
   SetOutPath "$INSTDIR\aiksaurus"
   !insertmacro FileListAiksaurusData File "${FILES_AIKSAURUS}\"
   
-  # Helper DLLs for NSIS-based tools
-  
-  SetOutPath "$INSTDIR\bin"
-  !insertmacro FileListNSISPluginsStandard File "${NSISDIR}\Plugins\"
-  !insertmacro FileListNSISPlugins File "${FILES_NSISPLUGINS}\"
-  
-  # Metafile to EPS Converter
-  SetOutPath "$INSTDIR\bin"
-  !insertmacro FileListMetaFile2EPS File "${FILES_METAFILE2EPS}\"
-  
   # Postscript printer for metafile to EPS converter
   SetOutPath "$INSTDIR\PSPrinter"
   !insertmacro FileListPSPrinter File "${FILES_PSPRINTER}\"
@@ -212,14 +246,14 @@ Var PathCurrentUser
 
   # Download/Install the component
   
-  ${If} $Setup${component} == ${TRUE}
+  ${If} $Setup${COMPONENT} == ${TRUE}
   
-    StrCpy $Path${component} "" ;A new one will be installed
+    StrCpy $Path${COMPONENT} "" ;A new one will be installed
   
-    !ifndef SETUPTYPE_BUNDLE
-      !insertmacro EXTERNAL_DOWNLOAD ${component}
+    !ifndef BUNDLESETUP_${COMPONENT}
+      !insertmacro EXTERNAL_DOWNLOAD ${COMPONENT}
     !else
-      !insertmacro EXTERNAL_INSTALL ${component}
+      !insertmacro EXTERNAL_INSTALL ${COMPONENT}
     !endif
     
   ${EndIf}
@@ -249,38 +283,33 @@ Var PathCurrentUser
      
 !macroend
 
-!ifndef SETUPTYPE_BUNDLE
+!macro EXTERNAL_DOWNLOAD COMPONENT
 
-  !macro EXTERNAL_DOWNLOAD COMPONENT
+  download_${COMPONENT}:
 
-    download_${COMPONENT}:
-
-      !insertmacro DOWNLOAD_FILE $DownloadResult "${COMPONENT}" "${COMPONENT}Setup.exe" ""
+    !insertmacro DOWNLOAD_FILE $DownloadResult "${COMPONENT}" "${COMPONENT}Setup.exe" ""
  
-      ${If} $DownloadResult != "OK"
-        # Download failed
-        MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED_${COMPONENT}) ($DownloadResult)" IDYES download_${COMPONENT}
-        Goto noinstall_${COMPONENT}
-      ${EndIf}
+    ${If} $DownloadResult != "OK"
+      # Download failed
+      MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED_${COMPONENT}) ($DownloadResult)" IDYES download_${COMPONENT}
+      Goto noinstall_${COMPONENT}
+    ${EndIf}
       
-      !insertmacro EXTERNAL_RUNINSTALLER ${COMPONENT}
+    !insertmacro EXTERNAL_RUNINSTALLER ${COMPONENT}
       
-    noinstall_${COMPONENT}:
-
-  !macroend
+  noinstall_${COMPONENT}:
 
-!else
+!macroend
 
-  !macro EXTERNAL_INSTALL COMPONENT
+!macro EXTERNAL_INSTALL COMPONENT
 
-    # Extract
-    File /oname=$PLUGINSDIR\${COMPONENT}Setup.exe ${FILES_BUNDLE}\${INSTALL_${COMPONENT}}
+  # Extract
+  File /oname=$PLUGINSDIR\${COMPONENT}Setup.exe ${FILES_BUNDLE}\${INSTALL_${COMPONENT}}
     
-    !insertmacro EXTERNAL_RUNINSTALLER ${COMPONENT}
+  !insertmacro EXTERNAL_RUNINSTALLER ${COMPONENT}
     
-  !macroend
+!macroend
 
-!endif
 
 # Sections for external components
 
@@ -288,27 +317,44 @@ Section -LaTeX ExternalLaTeX
   !insertmacro EXTERNAL LaTeX
 SectionEnd
 
+!ifndef BUNDLE_IMAGEMAGICK
+
 Section -ImageMagick ExternalImageMagick
   !insertmacro EXTERNAL ImageMagick
 SectionEnd
 
+!endif
+
+!ifndef BUNDLE_GHOSTSCRIPT
+
 Section -Ghostscript ExternalGhostscript
   !insertmacro EXTERNAL Ghostscript
 SectionEnd
 
+!endif
+
 Function InitExternal
 
   # Get sizes of external component installers
   
   SectionGetSize ${ExternalLaTeX} $SizeLaTeX
-  SectionGetSize ${ExternalImageMagick} $SizeImageMagick
-  SectionGetSize ${ExternalGhostscript} $SizeGhostscript
+  !ifndef BUNDLE_IMAGEMAGICK
+    SectionGetSize ${ExternalImageMagick} $SizeImageMagick
+  !endif
+  !ifndef BUNDLE_GHOSTSCRIPT
+    SectionGetSize ${ExternalGhostscript} $SizeGhostscript
+  !endif
   
-  !ifndef SETUPTYPE_BUNDLE
-    # Add download size
+  # Add download size
+  
+  !ifndef BUNDLESETUP_MIKTEX
     IntOp $SizeLaTeX $SizeLaTeX + ${SIZE_DOWNLOAD_LATEX}
+  !endif
+  !ifndef BUNDLE_IMAGEMAGICK & BUNDLESETUP_IMAGEMAGICK
     IntOp $SizeImagemagick $SizeImagemagick + ${SIZE_DOWNLOAD_IMAGEMAGICK}
+  !endif
+  !ifndef BUNDLE_GHOSTSCRIPT & BUNDLESETUP_GHOSTSCRIPT
     IntOp $SizeGhostscript $SizeGhostscript + ${SIZE_DOWNLOAD_GHOSTSCRIPT}
   !endif
-  
+
 FunctionEnd
index 27ceb5e9321b4a571d484a82b862b301c1243607..a67e354d7f24d27e13b1c59831a7a3ef1908da8e 100644 (file)
@@ -11,62 +11,83 @@ Var FileAssociation
 Section "un.Program Files" un.SecProgramFiles
 
   # Binaries
-  
-  Delete "$INSTDIR\bin\lyx.exe"
-  Delete "$INSTDIR\bin\lyxc.exe"
   !insertmacro FileListLyXBin Delete "$INSTDIR\bin\"
+  !insertmacro FileListLyXLauncher Delete "$INSTDIR\bin\"  
   !insertmacro FileListQtBin Delete "$INSTDIR\bin\"
-  
-  !insertmacro FileListDllMSVCBin 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
-  
-  RMDir /r "$INSTDIR\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"
   
-  # Helper DLLs for NSIS-based tools
-
-  !insertmacro FileListNSISPluginsStandard Delete "$INSTDIR\bin\"
-  !insertmacro FileListNSISPlugins Delete "$INSTDIR\bin\"
-  
-  # Metafile to EPS Converter
-  !insertmacro FileListMetaFile2EPS Delete "$INSTDIR\bin\"
-  
   # Postscript printer for metafile to EPS converter
-  !insertmacro FileListPSPrinter Delete "$INSTDIR\PSPrinter\"  
+  !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}"
-  RMDir "$INSTDIR\bin"
   
   # Application folder
-  
-  SetOutPath "$PROGRAMFILES"
+  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}"
index b9aca61be6cd205be29c49146147896f37578ffb..3f5a120417ad51c2b77688ea8cbdffe277965f04 100644 (file)
@@ -125,7 +125,7 @@ def env_nsis(source, target, env, for_signature):
             ret += ' '
     # bundled?
     if '-bundle.exe' in str(target[0]):
-        ret += '/DSETUPTYPE_BUNDLE=1 '
+        ret += '/DSETUPTYPE=BUNDLE '
     for s in source:
         ret += quoteIfSpaced(str(s))
     return ret