mirror of
https://github.com/videolan/vlc.git
synced 2024-12-04 23:35:52 +08:00
1b0868ed29
* ./Makefile: we don't include the Gtk+ and SDL DLLs in the win32 package anymore, the package is now 700k instead of 4MB. * ./configure.in, ./Makefile, ./Makefile.opts.in: replaced LIB_FOO with foo_LDFLAGS and CFLAGS_BAR with bar_CFLAGS for faster builds, and moved a lot of stuff from Makefile.opts.in back to configure.in. * ./install-win32: updated script for NSIS 1.96. I hope this doesn't break too many other architectures...
87 lines
2.3 KiB
Plaintext
87 lines
2.3 KiB
Plaintext
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; NSIS installer script for vlc ;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;;;;;;;;;;;;
|
|
; CHANGELOG ;
|
|
;;;;;;;;;;;;;
|
|
; 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
|
|
|
|
Name "the VideoLAN Client"
|
|
Caption "VideoLAN Client '${VERSION}' for Win32 Setup"
|
|
;Icon ../share/gvlc32x32.ico
|
|
|
|
CRCCheck on
|
|
|
|
InstallDir "$PROGRAMFILES\VideoLAN\VideoLAN Client"
|
|
; 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 VideoLAN Client. Hit next to continue."
|
|
|
|
;;;;;;;;;;;;;;;;;;;;
|
|
; Install settings ;
|
|
;;;;;;;;;;;;;;;;;;;;
|
|
|
|
Section "Install"
|
|
SetOutPath $INSTDIR
|
|
|
|
File vlc.exe
|
|
File *.txt
|
|
|
|
File /r share
|
|
File /r plugins
|
|
|
|
CreateDirectory "$SMPROGRAMS\VideoLAN"
|
|
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe"
|
|
CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\uninstall.exe"
|
|
WriteUninstaller "uninstall.exe"
|
|
|
|
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
|
|
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\plugins\*
|
|
RMDir $INSTDIR\plugins
|
|
Delete $INSTDIR\*
|
|
RMDir $INSTDIR
|
|
DeleteRegKey HKLM SOFTWARE\VideoLAN
|
|
SectionEnd
|
|
|