Uwe Stöhr | 27 Jun 2012 01:58
Favicon

[LyX master] fix 2 more installer issues

The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 6ea89fa2551ee419bc7deedc0bac32c210aaacee
Author: Uwe Stöhr <uwestoehr <at> lyx.org>
Date:   Wed Jun 27 01:58:04 2012 +0200

    fix 2 more installer issues

    - LaTeX.nsh: the registry cannot be a variable
    - declarations.nsh: remove doubled folder

diff --git a/development/Win32/packaging/installer/include/LaTeX.nsh b/development/Win32/packaging/installer/include/LaTeX.nsh
index 929531e..d1b0168 100644
--- a/development/Win32/packaging/installer/include/LaTeX.nsh
+++ b/development/Win32/packaging/installer/include/LaTeX.nsh
 <at>  <at>  -129,7 +129,11  <at>  <at>  FunctionEnd
    ${endif}
    ${if} $PathLaTeX != ""
     # set package repository (MiKTeX's primary package repository)
-    WriteRegStr $MiKTeXUser "SOFTWARE\MiKTeX.org\MiKTeX" "OnlyWithLyX" "Yes${APP_SERIES_KEY}" #
special entry to tell the uninstaller that it was installed with LyX
+    ${if} $MiKTeXUser == "HKCU"
+     WriteRegStr HKCU "SOFTWARE\MiKTeX.org\MiKTeX" "OnlyWithLyX" "Yes${APP_SERIES_KEY}" # special
entry to tell the uninstaller that it was installed with LyX
+    ${else}
+     WriteRegStr HKLM "SOFTWARE\MiKTeX.org\MiKTeX" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
+    ${endif}
     StrCpy $LaTeXInstalled "MiKTeX"
(Continue reading)


Gmane