]> git.lyx.org Git - features.git/commitdiff
installer:
authorUwe Stöhr <uwestoehr@web.de>
Wed, 29 Feb 2012 22:40:03 +0000 (22:40 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 29 Feb 2012 22:40:03 +0000 (22:40 +0000)
- fix an uninstallation bug that user settings were not remove if requested
- whitespace fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40814 a592a061-630c-0410-9148-cb99ea01b6c8

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

index 1bccc0cd5b357cb3ab5c6c0d34398f94ddf2f5b9..a95668aa17bc943ca7e5e4131b15c89f1be1fd87 100644 (file)
@@ -44,7 +44,7 @@ Configuration of LyX installer
 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}"
 !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
 !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
-!define APP_DIR_USERDATA "lyx${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
+!define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
 !define APP_INFO "${APP_NAME} - The Document Processor"
 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team"
 
index 7801423daa549924a25ef91ad4466e4462a1e902..33b0c7dac6cc167b6f5405f293dcb19d2ba964ec 100644 (file)
@@ -39,8 +39,8 @@ Function MissingPrograms
   GSloop:
   EnumRegKey $1 HKLM "Software\GPL Ghostscript" $3
   ${if} $1 != ""
-    ReadRegStr $2 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript $1" "DisplayName"
-    StrCpy $0 "Software\GPL Ghostscript\$1"
+   ReadRegStr $2 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript $1" "DisplayName"
+   StrCpy $0 "Software\GPL Ghostscript\$1"
    ${if} $2 == "" # if nothing was found in the uninstall section
     ReadRegStr $2 HKLM "SOFTWARE\GPL Ghostscript" "OnlyWithLyX" # check if Ghostscript was installed together with LyX
    ${endif}