2001-11-12 06:15:39 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; NSIS installer script for vlc ;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;
|
|
|
|
; CHANGELOG ;
|
|
|
|
;;;;;;;;;;;;;
|
2003-07-06 18:13:11 +02:00
|
|
|
; modifications by Gildas Bazin <gbazin@netcourrier.com> 6 Jul 2003
|
|
|
|
; . Start menu shortcuts now created in the "All Users" section.
|
|
|
|
; modifications by Gildas Bazin <gbazin@netcourrier.com> 6 Apr 2003
|
|
|
|
; . added shortcut to the skins interface, added the default skin.
|
2003-02-26 20:39:43 +01:00
|
|
|
; modifications by Gildas Bazin <gbazin@netcourrier.com> 26 Feb 2003
|
|
|
|
; . added the locale directory.
|
2002-04-05 22:44:23 +02:00
|
|
|
; modifications by Samuel Hocevar <sam@zoy.org> 05 Apr 2002
|
|
|
|
; . no need for @VERSION@ anymore
|
|
|
|
; . updated script for NSIS 1.96.
|
|
|
|
; modifications by Samuel Hocevar <sam@zoy.org> 12 Nov 2001
|
2001-11-12 06:15:39 +01:00
|
|
|
; . removed version information.
|
2002-04-05 22:44:23 +02:00
|
|
|
; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2
|
2001-11-12 06:15:39 +01:00
|
|
|
; . lists all installed files so as to prevent installer.nsi to be included
|
|
|
|
; in the release.
|
|
|
|
; . really remove the shortcuts.
|
|
|
|
; . added an exec command to display the program file folder. (grOovy)
|
|
|
|
|
2001-11-12 21:16:33 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; General configuration ;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2002-04-05 22:44:23 +02:00
|
|
|
OutFile ..\vlc-${VERSION}-win32.exe
|
2003-04-05 14:32:19 +02:00
|
|
|
SetCompressor bzip2
|
2002-04-05 22:44:23 +02:00
|
|
|
|
2003-02-02 05:01:29 +01:00
|
|
|
Name "VLC media player"
|
|
|
|
Caption "VLC '${VERSION}' for Win32 Setup"
|
2002-04-05 22:44:23 +02:00
|
|
|
;Icon ../share/gvlc32x32.ico
|
2001-11-12 06:15:39 +01:00
|
|
|
|
|
|
|
CRCCheck on
|
|
|
|
|
2003-02-02 05:01:29 +01:00
|
|
|
InstallDir "$PROGRAMFILES\VideoLAN\VLC"
|
2003-04-05 14:32:19 +02:00
|
|
|
|
2001-11-12 06:15:39 +01:00
|
|
|
; check if the program has already been installed, if so, take this dir
|
|
|
|
; as install dir
|
|
|
|
InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
|
|
|
|
DirText "Choose a directory to install in to:"
|
|
|
|
|
|
|
|
AutoCloseWindow false
|
|
|
|
ShowInstDetails show
|
|
|
|
|
|
|
|
SetOverwrite ifnewer
|
|
|
|
SetDatablockOptimize on
|
|
|
|
SetDateSave off
|
|
|
|
SetCompress auto
|
|
|
|
|
2003-04-05 14:32:19 +02:00
|
|
|
UninstallText "This will uninstall the VLC media player."
|
2002-04-05 22:44:23 +02:00
|
|
|
|
2001-11-12 21:16:33 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; Install settings ;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2001-11-12 06:15:39 +01:00
|
|
|
Section "Install"
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
|
|
|
|
File vlc.exe
|
2003-12-20 23:57:36 +01:00
|
|
|
File vlc.exe.manifest
|
2001-12-18 04:07:21 +01:00
|
|
|
File *.txt
|
2001-11-12 06:15:39 +01:00
|
|
|
|
2002-04-05 22:44:23 +02:00
|
|
|
File /r plugins
|
2003-02-26 20:39:43 +01:00
|
|
|
File /r locale
|
2003-04-06 19:14:43 +02:00
|
|
|
File /r skins
|
2003-07-21 19:29:58 +02:00
|
|
|
File /r http
|
2003-10-20 23:48:46 +02:00
|
|
|
File /r mozilla
|
2001-11-12 06:15:39 +01:00
|
|
|
|
2003-07-06 20:20:32 +02:00
|
|
|
SetShellVarContext all
|
|
|
|
|
2001-11-12 06:15:39 +01:00
|
|
|
CreateDirectory "$SMPROGRAMS\VideoLAN"
|
2003-05-18 01:57:35 +02:00
|
|
|
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" \
|
2003-04-05 14:32:19 +02:00
|
|
|
"$INSTDIR\vlc.exe" "--intf wxwin"
|
|
|
|
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (skins).lnk" \
|
|
|
|
"$INSTDIR\vlc.exe" "--intf skins"
|
|
|
|
|
|
|
|
WriteRegStr HKLM \
|
|
|
|
SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \
|
2003-07-21 19:29:58 +02:00
|
|
|
"DisplayName" "VideoLAN VLC media player ${VERSION}"
|
2003-04-05 14:32:19 +02:00
|
|
|
WriteRegStr HKLM \
|
|
|
|
SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \
|
|
|
|
"UninstallString" '"$INSTDIR\uninstall.exe"'
|
2002-04-05 22:44:23 +02:00
|
|
|
WriteUninstaller "uninstall.exe"
|
|
|
|
|
2003-09-27 12:09:57 +02:00
|
|
|
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "InstallDir" $INSTDIR
|
|
|
|
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Version" "${VERSION}"
|
2002-04-05 22:44:23 +02:00
|
|
|
|
2003-11-24 01:36:37 +01:00
|
|
|
WriteRegStr HKLM \
|
|
|
|
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION} \
|
|
|
|
"Path" '"$INSTDIR\mozilla\npvlc.dll"'
|
|
|
|
|
2001-11-12 06:15:39 +01:00
|
|
|
Exec "explorer $SMPROGRAMS\VideoLAN\"
|
|
|
|
SectionEnd
|
|
|
|
|
2001-11-12 21:16:33 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; Uninstall settings ;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2001-11-12 06:15:39 +01:00
|
|
|
Section "Uninstall"
|
2003-07-06 20:20:32 +02:00
|
|
|
SetShellVarContext all
|
2003-04-05 14:32:19 +02:00
|
|
|
RMDir /r $SMPROGRAMS\VideoLAN
|
|
|
|
RMDir /r $INSTDIR
|
2001-11-12 06:15:39 +01:00
|
|
|
DeleteRegKey HKLM SOFTWARE\VideoLAN
|
2003-11-24 01:36:37 +01:00
|
|
|
DeleteRegKey HKLM \
|
|
|
|
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}
|
|
|
|
|
2003-04-05 14:32:19 +02:00
|
|
|
DeleteRegKey HKLM \
|
|
|
|
Software\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN
|
2001-11-12 06:15:39 +01:00
|
|
|
SectionEnd
|