[vlmc-devel] commit: nsis: add a desktop shortcut (fixes #75) (Ludovic Fauvet )

git at videolan.org git at videolan.org
Fri Apr 16 15:55:48 CEST 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Fri Apr 16 14:10:21 2010 +0200| [32c8635af5aef7cbc6f1ecc599ee643817917291] | committer: Ludovic Fauvet 

nsis: add a desktop shortcut (fixes #75)

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=32c8635af5aef7cbc6f1ecc599ee643817917291
---

 nsis/installer.nsi |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/nsis/installer.nsi b/nsis/installer.nsi
index e7b8bfc..aa6bd0f 100644
--- a/nsis/installer.nsi
+++ b/nsis/installer.nsi
@@ -92,6 +92,11 @@ Section "Start Menu Shortcuts"
 
 SectionEnd
 
+Section "Desktop Shortcut"
+
+  CreateShortCut "$DESKTOP\@PROJECT_NAME_LONG at .lnk" "$INSTDIR\vlmc.exe" "" "$INSTDIR\vlmc.ico" 0
+
+SectionEnd
 
 ;--------------------------------
 ; Uninstaller sections
@@ -125,6 +130,7 @@ Section "Uninstall"
 
   ; Remove shortcuts, if any
   Delete "$SMPROGRAMS\@PROJECT_NAME_LONG@\*.*"
+  Delete "$DESKTOP\@PROJECT_NAME_LONG at .lnk"
 
   ; Remove directories used
   RMDir "$SMPROGRAMS\@PROJECT_NAME_LONG@"



More information about the Vlmc-devel mailing list