[vlmc-devel] commit: nsis: add license page. (Ludovic Fauvet )

git at videolan.org git at videolan.org
Mon Mar 29 00:45:59 CEST 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Mon Mar 29 00:45:36 2010 +0200| [061391e46b351dc7bfd834aa90c4d1c23833fdfc] | committer: Ludovic Fauvet 

nsis: add license page.

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

 nsis/installer.nsi |  213 ++++++++++++++++++++++++++++++---------------------
 1 files changed, 125 insertions(+), 88 deletions(-)

diff --git a/nsis/installer.nsi b/nsis/installer.nsi
index 94ed23a..07b3fcf 100644
--- a/nsis/installer.nsi
+++ b/nsis/installer.nsi
@@ -1,88 +1,125 @@
-Name "VideoLAN Movie Creator"
-
-OutFile "@NSIS_OUTPUT_FILE@"
-
-InstallDir "$PROGRAMFILES\@PROJECT_NAME_SHORT@"
-InstallDirRegKey HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir"
-
-RequestExecutionLevel admin
-
-Page components
-Page directory
-Page instfiles
-
-UninstPage uninstConfirm
-UninstPage instfiles
-
-Section "@PROJECT_NAME_SHORT@ (required)"
-
-  SectionIn RO
-  
-  ; Set output path to the installation directory.
-  SetOutPath $INSTDIR
-  
-  ; Put file there
-  File "libvlc.dll"
-  File "libvlccore.dll"
-  File "mingwm10.dll"
-  File "libgcc_s_dw2-1.dll"
-  File "QtCore4.dll"
-  File "QtGui4.dll"
-  File "QtSvg4.dll"
-  File "QtXml4.dll"
-  File "vlmc.exe"
-  File "@CMAKE_SOURCE_DIR@/share/vlmc.ico"
-  File /r "plugins"
-  File /r "effects"
-  
-  ; Write the installation path into the registry
-  WriteRegStr HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir" "$INSTDIR"
-  
-  ; Write the uninstall keys for Windows
-  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayName" "@PROJECT_NAME_LONG@"
-  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "UninstallString" '"$INSTDIR\uninstall.exe"'
-  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoModify" 1
-  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoRepair" 1
-  WriteUninstaller "uninstall.exe"
-  
-SectionEnd
-
-Section "Start Menu Shortcuts"
-
-  CreateDirectory "$SMPROGRAMS\@PROJECT_NAME_LONG@"
-  CreateShortCut "$SMPROGRAMS\@PROJECT_NAME_LONG@\@PROJECT_NAME_SHORT at .lnk" "$INSTDIR\vlmc.exe" "" "$INSTDIR\vlmc.ico" 0
-  CreateShortCut "$SMPROGRAMS\@PROJECT_NAME_LONG@\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
-  
-SectionEnd
-
-Section "Uninstall"
-  
-  ; Remove registry keys
-  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@"
-  DeleteRegKey HKLM "Software\@PROJECT_NAME_SHORT@"
-
-  ; Remove files and uninstaller
-  Delete "$INSTDIR\vlmc.exe"
-  Delete "$INSTDIR\vlmc.ico"
-  Delete "$INSTDIR\uninstall.exe"
-  Delete "$INSTDIR\libvlc.dll"
-  Delete "$INSTDIR\libvlccore.dll"
-  Delete "$INSTDIR\mingwm10.dll"
-  Delete "$INSTDIR\QtCore4.dll"
-  Delete "$INSTDIR\QtGui4.dll"
-  Delete "$INSTDIR\QtSvg4.dll"
-  Delete "$INSTDIR\QtXml4.dll"
-  Delete "$INSTDIR\plugins\*.*"
-  Delete "$INSTDIR\effects\*.*"
-  RMDir "$INSTDIR\plugins"
-  RMDir "$INSTDIR\effects"
-  
-
-  ; Remove shortcuts, if any
-  Delete "$SMPROGRAMS\@PROJECT_NAME_LONG@\*.*"
-
-  ; Remove directories used
-  RMDir "$SMPROGRAMS\@PROJECT_NAME_LONG@"
-  RMDir "$INSTDIR"
-
-SectionEnd
+; VideoLAN Movie Creator
+;
+; NSIS Script by:
+; Ludovic Fauvet <etix at l0cal.com>
+
+;--------------------------------
+; General
+
+; Name
+Name "VideoLAN Movie Creator"
+
+; Output file
+OutFile "@NSIS_OUTPUT_FILE@"
+
+; Get installation folder from registry if available
+InstallDirRegKey HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir"
+
+; Install directory
+InstallDir "$PROGRAMFILES\@PROJECT_NAME_SHORT@"
+
+; Request admin permissions for Vista and higher
+RequestExecutionLevel admin
+
+
+;--------------------------------
+; Interface
+
+; Warn the user if he try to close the installer
+!define MUI_ABORTWARNING
+
+LicenseText "License"
+LicenseData "COPYING"
+
+;--------------------------------
+; Pages
+
+; Install
+Page license
+Page components
+Page directory
+Page instfiles
+
+; Uninstall
+UninstPage uninstConfirm
+UninstPage instfiles
+
+;--------------------------------
+; Installer sections
+
+Section "@PROJECT_NAME_SHORT@ (required)"
+
+  SectionIn RO
+
+  ; Set output path to the installation directory.
+  SetOutPath $INSTDIR
+
+  ; Put file there
+  File "libvlc.dll"
+  File "libvlccore.dll"
+  File "mingwm10.dll"
+  File "libgcc_s_dw2-1.dll"
+  File "QtCore4.dll"
+  File "QtGui4.dll"
+  File "QtSvg4.dll"
+  File "QtXml4.dll"
+  File "vlmc.exe"
+  File "@CMAKE_SOURCE_DIR@/share/vlmc.ico"
+  File /r "plugins"
+  File /r "effects"
+
+  ; Write the installation path into the registry
+  WriteRegStr HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir" "$INSTDIR"
+
+  ; Write the uninstall keys for Windows
+  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayName" "@PROJECT_NAME_LONG@"
+  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "UninstallString" '"$INSTDIR\uninstall.exe"'
+  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoModify" 1
+  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoRepair" 1
+  WriteUninstaller "uninstall.exe"
+
+SectionEnd
+
+Section "Start Menu Shortcuts"
+
+  CreateDirectory "$SMPROGRAMS\@PROJECT_NAME_LONG@"
+  CreateShortCut "$SMPROGRAMS\@PROJECT_NAME_LONG@\@PROJECT_NAME_SHORT at .lnk" "$INSTDIR\vlmc.exe" "" "$INSTDIR\vlmc.ico" 0
+  CreateShortCut "$SMPROGRAMS\@PROJECT_NAME_LONG@\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
+
+SectionEnd
+
+
+;--------------------------------
+; Uninstaller sections
+
+Section "Uninstall"
+
+  ; Remove registry keys
+  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@"
+  DeleteRegKey HKLM "Software\@PROJECT_NAME_SHORT@"
+
+  ; Remove files and uninstaller
+  Delete "$INSTDIR\vlmc.exe"
+  Delete "$INSTDIR\vlmc.ico"
+  Delete "$INSTDIR\uninstall.exe"
+  Delete "$INSTDIR\libvlc.dll"
+  Delete "$INSTDIR\libvlccore.dll"
+  Delete "$INSTDIR\mingwm10.dll"
+  Delete "$INSTDIR\QtCore4.dll"
+  Delete "$INSTDIR\QtGui4.dll"
+  Delete "$INSTDIR\QtSvg4.dll"
+  Delete "$INSTDIR\QtXml4.dll"
+  Delete "$INSTDIR\plugins\*.*"
+  Delete "$INSTDIR\effects\*.*"
+  RMDir "$INSTDIR\plugins"
+  RMDir "$INSTDIR\effects"
+
+
+  ; Remove shortcuts, if any
+  Delete "$SMPROGRAMS\@PROJECT_NAME_LONG@\*.*"
+
+  ; Remove directories used
+  RMDir "$SMPROGRAMS\@PROJECT_NAME_LONG@"
+  RMDir "$INSTDIR"
+
+SectionEnd



More information about the Vlmc-devel mailing list