install-win32 2.39 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS installer script for vlc ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; written by Pierre Baillet <oct@zoy.org> 29/7/01 v0.2
; modifications by Samuel Hocevar <sam@zoy.org> 12/11/01

;;;;;;;;;;;;;
; CHANGELOG ;
;;;;;;;;;;;;;
; . removed version information.
; . 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)

16 17 18 19
;;;;;;;;;;;;;;;;;;;;;;;;;
; General configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;;

20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
OutFile vlc-@VERSION@.exe
Name "the VideoLAN Client"
Caption "vlc @VERSION@ for Win32 Setup"
;Icon ../share/gvlc_win32.ico

CRCCheck on

InstallDir $PROGRAMFILES\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

; 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

45 46 47 48
;;;;;;;;;;;;;;;;;;;;
; Install settings ;
;;;;;;;;;;;;;;;;;;;;

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
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  /r share

	CreateDirectory "$SMPROGRAMS\VideoLAN"
	CreateShortCut "$SMPROGRAMS\VideoLAN\vlc_@VERSION@.lnk" "$INSTDIR\vlc.exe" 
	CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\vlc-uninst.exe"
	WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
	WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "@VERSION@"
	Exec "explorer $SMPROGRAMS\VideoLAN\"
SectionEnd

87 88 89 90
;;;;;;;;;;;;;;;;;;;;;;
; Uninstall settings ;
;;;;;;;;;;;;;;;;;;;;;;

91 92 93 94 95 96 97 98 99 100
Section "Uninstall"
	Delete $SMPROGRAMS\VideoLAN\*
	RMDir $SMPROGRAMS\VideoLAN
	Delete $INSTDIR\share\*
	RMDir $INSTDIR\share
	Delete $INSTDIR\*
	RMDir $INSTDIR
	DeleteRegKey HKLM SOFTWARE\VideoLAN
SectionEnd