X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=install-win32;h=4a463ea77cdbbce09ffefeb18c84dd05183de33f;hb=cf88959b3653c81d177525be2a0142b55efbb762;hp=4a0a144ec6bbfe36f863c4f9fa65b0cadee7478d;hpb=ca194833350ebd9c14ba32929ab8fc4071e4d7c7;p=vlc diff --git a/install-win32 b/install-win32 index 4a0a144ec6..4a463ea77c 100644 --- a/install-win32 +++ b/install-win32 @@ -1,26 +1,40 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; NSIS installer script for vlc ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; written by Pierre Baillet 29/7/01 v0.2 -; modifications by Samuel Hocevar 12/11/01 ;;;;;;;;;;;;; ; CHANGELOG ; ;;;;;;;;;;;;; +; modifications by Gildas Bazin 01 Mar 2003 +; . added a shortcut to the faq in the menu. +; modifications by Gildas Bazin 26 Feb 2003 +; . added the locale directory. +; modifications by Samuel Hocevar 05 Apr 2002 +; . no need for @VERSION@ anymore +; . updated script for NSIS 1.96. +; modifications by Samuel Hocevar 12 Nov 2001 ; . removed version information. +; written by Pierre Baillet 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) -OutFile vlc-@VERSION@.exe -Name "the VideoLAN Client" -Caption "vlc @VERSION@ for Win32 Setup" -;Icon ../share/gvlc_win32.ico +;;;;;;;;;;;;;;;;;;;;;;;;; +; 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\vlc +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" @@ -29,60 +43,59 @@ DirText "Choose a directory to install in to:" AutoCloseWindow false ShowInstDetails show -; uninstall stuff -UninstallText "This will uninstall the VideoLAN Client. Hit next to continue." -UninstallExeName "vlc-uninst.exe" - 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 directx.so - File gtk.so - File sdl.so - - File INSTALL-win32.txt - File AUTHORS - File COPYING - File ChangeLog - File ChangeLog.libdvdcss - File README - File README.libdvdcss - File FAQ - File TODO - - File SDL.dll - File gtk-1.3.dll - File gdk-1.3.dll - File glib-1.3.dll - File gmodule-1.3.dll - File gnu-intl.dll - - ;File README-GTK.txt - File README-SDL.txt + File *.txt + File *.htm File /r share + File /r plugins + File /r locale + File /r skins CreateDirectory "$SMPROGRAMS\VideoLAN" - CreateShortCut "$SMPROGRAMS\VideoLAN\vlc_@VERSION@.lnk" "$INSTDIR\vlc.exe" - CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\vlc-uninst.exe" + CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe" + CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (wxwindows).lnk" \ + "$INSTDIR\vlc.exe" "--intf wxwin" + CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (skins).lnk" \ + "$INSTDIR\vlc.exe" "--intf skins" + CreateShortCut "$SMPROGRAMS\VideoLAN\FAQ.lnk" "$INSTDIR\FAQ.htm" + + WriteRegStr HKLM \ + SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \ + "DisplayName" "VideoLAN VLC media player" + WriteRegStr HKLM \ + SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \ + "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteUninstaller "uninstall.exe" + WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR - WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "@VERSION@" + WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}" + Exec "explorer $SMPROGRAMS\VideoLAN\" SectionEnd +;;;;;;;;;;;;;;;;;;;;;; +; Uninstall settings ; +;;;;;;;;;;;;;;;;;;;;;; + Section "Uninstall" - Delete $SMPROGRAMS\VideoLAN\* - RMDir $SMPROGRAMS\VideoLAN - Delete $INSTDIR\share\* - RMDir $INSTDIR\share - Delete $INSTDIR\* - RMDir $INSTDIR + RMDir /r $SMPROGRAMS\VideoLAN + RMDir /r $INSTDIR DeleteRegKey HKLM SOFTWARE\VideoLAN + DeleteRegKey HKLM \ + Software\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN SectionEnd -