[vlmc-devel] nsis: Give user choice to install frei0r plugins and qt translation in the installer .

Rohit Yadav git at videolan.org
Thu Jul 28 10:01:41 CEST 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Thu Jul 28 13:46:22 2011 +0530| [73ac3f9cc7e454feae433cb9ab6947ee8309b146] | committer: Rohit Yadav

nsis: Give user choice to install frei0r plugins and qt translation in the installer.

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

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

diff --git a/nsis/installer.nsi b/nsis/installer.nsi
index c05ece1..ee3c2e6 100644
--- a/nsis/installer.nsi
+++ b/nsis/installer.nsi
@@ -76,7 +76,6 @@ Section "@PROJECT_NAME_SHORT@ (required)"
   File "@CMAKE_SOURCE_DIR@/TRANSLATORS"
   File "@CMAKE_SOURCE_DIR@/NEWS"
   File /r "plugins"
-  File /r "effects"
 
   ; Write the installation path into the registry
   WriteRegStr HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir" "$INSTDIR"
@@ -97,6 +96,13 @@ Section "@PROJECT_NAME_SHORT@ (required)"
 
 SectionEnd
 
+Section "Frei0r effects & Qt translations"
+  ; Set output path to the installation directory.
+  SetOutPath $INSTDIR
+  File /r "effects"
+  File /r "ts"
+SectionEnd
+
 Section "Start Menu Shortcuts"
 
   CreateDirectory "$SMPROGRAMS\@PROJECT_NAME_LONG@"
@@ -140,8 +146,10 @@ Section "Uninstall"
   Delete "$INSTDIR\NEWS"
   Delete "$INSTDIR\plugins\*.*"
   Delete "$INSTDIR\effects\*.*"
+  Delete "$INSTDIR\ts\*.*"
   RMDir "$INSTDIR\plugins"
   RMDir "$INSTDIR\effects"
+  RMDir "$INSTDIR\ts"
 
   ; Remove shortcuts, if any
   Delete "$SMPROGRAMS\@PROJECT_NAME_LONG@\*.*"



More information about the Vlmc-devel mailing list