]> git.lyx.org Git - features.git/commitdiff
installer: some simplifications
authorUwe Stöhr <uwestoehr@lyx.org>
Thu, 22 Nov 2012 19:17:45 +0000 (20:17 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Thu, 22 Nov 2012 19:17:45 +0000 (20:17 +0100)
development/Win32/packaging/installer/ChangeLog.txt
development/Win32/packaging/installer/include/detection.nsh
development/Win32/packaging/installer/include/init.nsh
development/Win32/packaging/installer/settings.nsh
development/Win32/packaging/installer/setup/install.nsh

index 86a30a43ae4333a05b637c29ed9dc27278cd5326..74219ab484894996fff06ce19de98efd0c21f58c 100644 (file)
@@ -3,7 +3,7 @@
   (To benefit from them you must uninstall an already installed LyX 2.0.x and
    then use this installer.)
 - updated thesaurus for Slovenian
-  (need to uninstall to benefit from this)
+  (need to reinstall LyX to benefit from this)
 
 
 Changelog for LyX-205-4:
@@ -38,7 +38,7 @@ Changelog for LyX-205-2:
   (To benefit from them you must uninstall an already installed LyX 2.0.x and
    then use this installer.)
 - updated thesaurus for German
-  (need to uninstall to benefit from this)
+  (need to reinstall LyX to benefit from this)
 - bugfix: remove registry entries of existing LyX version when installing over it
 - don't allow to install an older LyX version over an existing newer one
 
index 3f792dac5d2d955df714a789f18f90ca0cd268ed..b9f61af0ed9c3c6f3dc0c673f07fb365bb060be1 100644 (file)
@@ -24,9 +24,6 @@ Detection of external component locations
 #
 #--------------------------
 
-#Var ReportReturn
-#Var CommandLineOutput
-
 Function SearchExternal
   Call LaTeXActions # function from LaTeX.nsh
   Call MissingPrograms
@@ -150,9 +147,9 @@ Function MissingPrograms
    ReadRegStr $PathBibTeXEditor HKLM "Software\JabRef" "Path"
   ${endif}
 
-  ${IfNot} ${FileExists} "$PathBibTeXEditor\${BIN_BIBTEXEDITOR}"
-    StrCpy $PathBibTeXEditor ""
-    StrCpy $JabRefInstalled == "No"
+  ${ifnot} ${FileExists} "$PathBibTeXEditor\${BIN_BIBTEXEDITOR}"
+   StrCpy $PathBibTeXEditor ""
+   StrCpy $JabRefInstalled == "No"
   ${else}
    StrCpy $JabRefInstalled == "Yes"
   ${endif}
index c3876af0dae02a3b75590393d7076ca2c7b1e81c..b7403a5b50f32cc4c9f7cd3d2c01b455b5fe791c 100644 (file)
@@ -58,7 +58,7 @@ SectionEnd
 
 !if ${SETUPTYPE} == BUNDLE
  Section /o "$(SecInstJabRefTitle)" SecInstJabRef
-  AddSize 12400
+  AddSize ${SIZE_JABREF}
   StrCpy $InstallJabRef "true"
  SectionEnd
 !endif
@@ -637,7 +637,6 @@ Function .onInit
   ${EndIf}
  
   Call SearchExternal
-  #Call InitExternal
   
   !if ${SETUPTYPE} == BUNDLE
    # don't let the installer sections appear when the programs are already installed
index 54734b065fe252d3c156f708cd84ee4a144bd8de..a318f244b9266ca1f4c8e036486ef9250052e62c 100644 (file)
@@ -19,7 +19,7 @@ These typically need to be modified for each LyX release
 #--------------------------------
 # Installer file name
 
-# Typical names for the release are "LyX-201-1-Installer.exe" etc.
+# Typical names for the release are "LyX-201-Installer-1.exe" etc.
 
 !ifndef ExeFile
   !define ExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}-Installer-${APP_VERSION_BUILD}.exe"
@@ -55,8 +55,9 @@ These typically need to be modified for each LyX release
 # definitions for the Complete installer
 !if ${SETUPTYPE} == BUNDLE
  !define JabRefInstall "external\JabRef-2.8.1-setup.exe"
+ !define SIZE_JABREF 12400
  !define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.9.4521.exe"
- !define SIZE_DOWNLOAD_LATEX 162476
!define SIZE_LATEX 380000
+ #!define SIZE_DOWNLOAD_LATEX 157100
#!define SIZE_LATEX 600000
 !endif
 
index 9eb51e199f6162b1fcc34ab6591d7c1318d16e70..ba499651b3ffc941a5c2e26075e5fbce0b65dfcb 100644 (file)
@@ -11,7 +11,6 @@ Installation of program files, dictionaries and external components
 
 Var PythonCompileFile
 Var PythonCompileReturn
-#Var DownloadResult
 
 Section -ProgramFiles SecProgramFiles
 
@@ -103,34 +102,33 @@ Section -ProgramFiles SecProgramFiles
    # install JabRef if not already installed and the user selected it
    # if no BibTeX editor is installed
    ${if} $PathBibTeXEditor == ""
-    ${if} $InstallJabRef == "true"
-     # launch installer
-     MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
-     ExecWait "$INSTDIR\${JabRefInstall}"
-     # test if JabRef is now installed
-     StrCpy $PathBibTeXEditor ""
+   ${andif} $InstallJabRef == "true"
+    # launch installer
+    MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
+    ExecWait "$INSTDIR\${JabRefInstall}"
+    # test if JabRef is now installed
+    StrCpy $PathBibTeXEditor ""
+    ${if} $MultiUser.Privileges == "Admin"
+     ${orif} $MultiUser.Privileges == "Power"
+     ReadRegStr $PathBibTeXEditor HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "UninstallString"
+     StrCpy $PathBibTeXEditor $PathBibTeXEditor -14 # remove "\uninstall.exe"
+    ${else}
+     # for non-admin users we can only check if it is in the start menu
+     ReadRegStr $PathBibTeXEditor HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "StartMenu"
+    ${endif}
+    ${if} $PathBibTeXEditor == ""
+     MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
+    ${else}
+     # special entry that it was installed together with LyX
+     # so that we can later uninstall it together with LyX
      ${if} $MultiUser.Privileges == "Admin"
-      ${orif} $MultiUser.Privileges == "Power"
-      ReadRegStr $PathBibTeXEditor HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "UninstallString"
-      StrCpy $PathBibTeXEditor $PathBibTeXEditor -14 # remove "\uninstall.exe"
+     ${orif} $MultiUser.Privileges == "Power"
+      WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
      ${else}
-      # for non-admin users we can only check if it is in the start menu
-      ReadRegStr $PathBibTeXEditor HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "StartMenu"
+      WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
      ${endif}
-     ${if} $PathBibTeXEditor == ""
-      MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
-     ${else}
-      # special entry that it was installed together with LyX
-      # so that we can later uninstall it together with LyX
-      ${if} $MultiUser.Privileges == "Admin"
-      ${orif} $MultiUser.Privileges == "Power"
-       WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
-      ${else}
-       WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
-      ${endif}
-     ${endif} # end if PathBibTeXEditor
-    ${endif}
-   ${endif}
+    ${endif} 
+   ${endif} # end if PathBibTeXEditor
   !endif # end if BUNDLE
   
    # install eLyXer