]> git.lyx.org Git - lyx.git/commitdiff
installer: rename install folder as discussed
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 8 Jul 2012 13:48:26 +0000 (15:48 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 8 Jul 2012 13:48:26 +0000 (15:48 +0200)
- 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)

development/Win32/packaging/installer/include/declarations.nsh
development/Win32/packaging/installer/setup/configure.nsh

index dd420ac88c2fd0e7eb7d9448e45bc83d5314aff9..5095ca335f8637f84c73f6e5986051c1268988bc 100644 (file)
@@ -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"
index 6d90669e31d0b1d82b9494ea267a75fc84a23a59..925b432fa0cef487924e2fb4f5ead44fa1b346c6 100644 (file)
@@ -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"