From 4b6dec6a12806b17f6735619d0398eb20fcedd56 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 13 Apr 2015 14:13:09 -0400 Subject: [PATCH] Windows: Renamed start menu file to avoid loop in some versions of Windows where the menu file is treated as a git-annex program. --- Build/NullSoftInstaller.hs | 11 +++++++++-- debian/changelog | 2 ++ ...ts_are_missing___34__Start_in__34___parameter.mdwn | 3 +++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Build/NullSoftInstaller.hs b/Build/NullSoftInstaller.hs index 846c8d6217..42260bd3f0 100644 --- a/Build/NullSoftInstaller.hs +++ b/Build/NullSoftInstaller.hs @@ -85,8 +85,14 @@ uninstaller = "git-annex-uninstall.exe" gitInstallDir :: Exp FilePath gitInstallDir = fromString "$PROGRAMFILES\\Git" +-- This intentionall has a different name than git-annex or +-- git-annex-webapp, since it is itself treated as an executable file. +-- Also, on XP, the filename is displayed, not the description. startMenuItem :: Exp FilePath -startMenuItem = "$SMPROGRAMS/git-annex.lnk" +startMenuItem = "$SMPROGRAMS/Git Annex (Webapp).lnk" + +oldStartMenuItem :: Exp FilePath +oldStartMenuItem = "$SMPROGRAMS/git-annex.lnk" autoStartItem :: Exp FilePath autoStartItem = "$SMSTARTUP/git-annex-autostart.lnk" @@ -125,8 +131,9 @@ makeInstaller gitannex license htmlhelp extrabins launchers = nsis $ do , StartOptions "SW_SHOWNORMAL" , IconFile "$INSTDIR/cmd/git-annex.exe" , IconIndex 2 - , Description "git-annex webapp" + , Description "Git Annex (Webapp)" ] + delete [RebootOK] $ oldStartMenuItem createShortcut autoStartItem [ Target "wscript.exe" , Parameters "\"$INSTDIR/git-annex-autostart.vbs\"" diff --git a/debian/changelog b/debian/changelog index 79f3c47128..f1be1fd03a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ git-annex (5.20150410) UNRELEASED; urgency=medium * info dir: Added information about repositories that contain files in the specified directory. * info: Added --bytes option. + * Windows: Renamed start menu file to avoid loop in some versions + of Windows where the menu file is treated as a git-annex program. -- Joey Hess Thu, 09 Apr 2015 20:59:43 -0400 diff --git a/doc/bugs/windows_start_menu_shortcuts_are_missing___34__Start_in__34___parameter.mdwn b/doc/bugs/windows_start_menu_shortcuts_are_missing___34__Start_in__34___parameter.mdwn index 72f0794a57..a28e35adf4 100644 --- a/doc/bugs/windows_start_menu_shortcuts_are_missing___34__Start_in__34___parameter.mdwn +++ b/doc/bugs/windows_start_menu_shortcuts_are_missing___34__Start_in__34___parameter.mdwn @@ -10,3 +10,6 @@ git version 1.9.5.msysgit.1. git-annex version: 5.20150317-g237d5b0. Windows 7 P ### Please provide any additional information below. This seems to be fixed by editing the shortcuts and setting the "Start in" parameter to the git installation directory. For me this is "C:\Program Files (x86)\Git". + +> I've renamed it. The old git-annex.lnk will be +> deleted by the installer if it exists.