Hi Eugene,

I proposed in another discussion to add the version in all shortcuts
created by the installer, for specifically the case where the user has
several versions of LyX (or just updated, in which case there will be a
delay before the new shortcut gets into the search cache of the Start menu).

Here is the patch I propose. I am by no means a NSIS expert, I don't know
if this will work, but I think there is a probability that it does.

What do you think of this?
Thibaut Cuvelier
Index: development/Win32/packaging/installer/src/main.nsh
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/development/Win32/packaging/installer/src/main.nsh b/development/Win32/packaging/installer/src/main.nsh
--- a/development/Win32/packaging/installer/src/main.nsh	(revision 6f4bc061788c08fde3738dc3800fc35845ee6ff3)
+++ b/development/Win32/packaging/installer/src/main.nsh	(date 1613080716757)
@@ -913,9 +913,9 @@
   !insertmacro MUI_STARTMENU_WRITE_BEGIN startmenuPage # This macro also assures that the folder is not empty for us
     SetOutPath "$INSTDIR\bin" # Need to set this so that the shortcut to lyx.exe is executed in the bin folder
     CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
-    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\LyX.lnk" "$INSTDIR\bin\LyX.exe" "" "" "" "" "" "LyX - The Document Processor" # Last parameter is the comment of the shortcut
+    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\LyX ${APP_VERSION}.lnk" "$INSTDIR\bin\LyX.exe" "" "" "" "" "" "LyX - The Document Processor" # Last parameter is the comment of the shortcut
     SetOutPath $INSTDIR
-    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall LyX.lnk" "$INSTDIR\Uninstall-LyX.exe"
+    CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall LyX ${APP_VERSION}.lnk" "$INSTDIR\Uninstall-LyX.exe"
     WriteINIStr "$SMPROGRAMS\$StartMenuFolder\LyX Website.url" "InternetShortcut" "URL" "https://www.lyx.org/";
     WriteINIStr "$SMPROGRAMS\$StartMenuFolder\LyX Wiki.url" "InternetShortcut" "URL" "https://wiki.lyx.org";
   !insertmacro MUI_STARTMENU_WRITE_END
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to