1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00
vlc/install-win32
Boris Dorès 78ffa46b5e * libvlc.h input.c headphone.c:
fix support of audio channel mixers, like the headphone channel mixer
    for instance, which was broken since the introduction of user audio
    filters; if specified by the user and compatible with the audio
    pipeline, we add the channel mixer after the user filters.
    -> unfortunately, this fix removed two strings and introduced 4 new
       ones
    -> TODO: allow the user to choose only amongst channel mixers, not
       all available audio filters

* vlc.exe.manifest Makefile.am install-win32 :
    add a manifest file to allow the win32 gui to use Windows XP visual
    styles when available.
2003-12-20 22:57:36 +00:00

113 lines
3.3 KiB
Plaintext

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS installer script for vlc ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;
; CHANGELOG ;
;;;;;;;;;;;;;
; 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.
; modifications by Gildas Bazin <gbazin@netcourrier.com> 26 Feb 2003
; . added the locale directory.
; 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
; . removed version information.
; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2
; . 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)
;;;;;;;;;;;;;;;;;;;;;;;;;
; General configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;;
OutFile ..\vlc-${VERSION}-win32.exe
SetCompressor bzip2
Name "VLC media player"
Caption "VLC '${VERSION}' for Win32 Setup"
;Icon ../share/gvlc32x32.ico
CRCCheck on
InstallDir "$PROGRAMFILES\VideoLAN\VLC"
; 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
UninstallText "This will uninstall the VLC media player."
;;;;;;;;;;;;;;;;;;;;
; Install settings ;
;;;;;;;;;;;;;;;;;;;;
Section "Install"
SetOutPath $INSTDIR
File vlc.exe
File vlc.exe.manifest
File *.txt
File /r plugins
File /r locale
File /r skins
File /r http
File /r mozilla
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\VideoLAN"
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" \
"$INSTDIR\vlc.exe" "--intf wxwin"
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (skins).lnk" \
"$INSTDIR\vlc.exe" "--intf skins"
WriteRegStr HKLM \
SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \
"DisplayName" "VideoLAN VLC media player ${VERSION}"
WriteRegStr HKLM \
SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \
"UninstallString" '"$INSTDIR\uninstall.exe"'
WriteUninstaller "uninstall.exe"
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "InstallDir" $INSTDIR
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Version" "${VERSION}"
WriteRegStr HKLM \
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION} \
"Path" '"$INSTDIR\mozilla\npvlc.dll"'
Exec "explorer $SMPROGRAMS\VideoLAN\"
SectionEnd
;;;;;;;;;;;;;;;;;;;;;;
; Uninstall settings ;
;;;;;;;;;;;;;;;;;;;;;;
Section "Uninstall"
SetShellVarContext all
RMDir /r $SMPROGRAMS\VideoLAN
RMDir /r $INSTDIR
DeleteRegKey HKLM SOFTWARE\VideoLAN
DeleteRegKey HKLM \
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}
DeleteRegKey HKLM \
Software\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN
SectionEnd