]> git.lyx.org Git - features.git/commitdiff
fix 2 more installer issues
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 26 Jun 2012 23:58:04 +0000 (01:58 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 26 Jun 2012 23:58:04 +0000 (01:58 +0200)
- LaTeX.nsh: the registry cannot be a variable
- declarations.nsh: remove doubled folder

development/Win32/packaging/installer/include/LaTeX.nsh
development/Win32/packaging/installer/include/declarations.nsh

index 929531e4c9881a5a12f537cba472d716967ef3a8..d1b0168192220b3af8cd24a7544c4e755692e9c5 100644 (file)
@@ -129,7 +129,11 @@ 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"
     StrCpy $MiKTeXVersion ${MiKTeXDeliveredVersion}
    ${else}
index 0735617839a3f095d0992934f8ffb919e95ed85a..dd420ac88c2fd0e7eb7d9448e45bc83d5314aff9 100644 (file)
@@ -54,8 +54,8 @@ Configuration of LyX installer
 !define APP_RUN "bin\lyx.exe"
 
 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200"
-!define APP_REGKEY_SETUP "Software\${APP_REGKEY}\Setup"
-!define APP_REGKEY_SETTINGS "Software\${APP_REGKEY}\Settings"
+!define APP_REGKEY_SETUP "${APP_REGKEY}\Setup"
+!define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings"
 
 !define APP_REGNAME_DOC "${APP_NAME}.Document"