From 88513c0a90d825eff86bd20fafa1463f8cf76afd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 8 Jul 2012 15:48:26 +0200 Subject: [PATCH] installer: rename install folder as discussed - the proposed install folder is now "LyX 2.0" as discussed - promote our wiki and also our website (as almost all other programs do as well and which is quite helpful) --- .../Win32/packaging/installer/include/declarations.nsh | 8 +++++++- development/Win32/packaging/installer/setup/configure.nsh | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/development/Win32/packaging/installer/include/declarations.nsh b/development/Win32/packaging/installer/include/declarations.nsh index dd420ac88c..5095ca335f 100644 --- a/development/Win32/packaging/installer/include/declarations.nsh +++ b/development/Win32/packaging/installer/include/declarations.nsh @@ -43,12 +43,18 @@ Configuration of LyX installer !define APP_NAME "LyX" !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}.${APP_VERSION_REVISION}" +# for the proposed install folder we use the scheme "LyX 2.0" while we need for the registry the scheme "LyX 2.0.4" +# to check if it is exactly this version (to support side by side installations) +!define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}" !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 "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}" !define APP_INFO "${APP_NAME} - The Document Processor" +!define APP_WEBPAGE "http://www.lyx.org/" +!define APP_WEBPAGE_INFO "${APP_NAME} Website" +!define APP_WIKI "http://wiki.lyx.org" +!define APP_WIKI_INFO "${APP_NAME} Wiki" !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team" !define APP_RUN "bin\lyx.exe" diff --git a/development/Win32/packaging/installer/setup/configure.nsh b/development/Win32/packaging/installer/setup/configure.nsh index 6d90669e31..925b432fa0 100644 --- a/development/Win32/packaging/installer/setup/configure.nsh +++ b/development/Win32/packaging/installer/setup/configure.nsh @@ -6,7 +6,6 @@ Write registry information and configure LyX */ -#Var DistFile Var PathPrefix #!define SHORTCUT '${APP_NAME} ${APP_SERIES_NAME}.lnk" "$INSTDIR\${APP_RUN}" "" "$INSTDIR\${APP_RUN}" "" "" "" "${APP_INFO}"' @@ -22,10 +21,12 @@ Section -InstallData WriteRegStr SHCTX ${APP_REGKEY_SETUP} "LaTeX Path" $PathLaTeX # Start Menu shortcut - # There is only one shortcut to the application, so it should be in the main group SetOutPath "$INSTDIR\bin" # this is the folder in which the shortcut is executed CreateDirectory "$SMPROGRAMS\$StartmenuFolder" CreateShortCut "$SMPROGRAMS\$StartmenuFolder\${APP_NAME}.lnk" "$INSTDIR\${APP_RUN}" "" "$INSTDIR\${APP_RUN}" "" "" "" "${APP_INFO}" + # Link to www.lyx.org and to the Wiki + WriteINIStr "$SMPROGRAMS\$StartmenuFolder\${APP_WEBPAGE_INFO}.url" "InternetShortcut" "URL" "${APP_WEBPAGE}" + WriteINIStr "$SMPROGRAMS\$StartmenuFolder\${APP_WIKI_INFO}.url" "InternetShortcut" "URL" "${APP_WIKI}" # create desktop icon ${if} $CreateDesktopIcon == "true" SetOutPath "$INSTDIR\bin" -- 2.39.2