install-win32 2.25 KB
Newer Older
Sam Hocevar's avatar
 
Sam Hocevar committed
1 2 3 4 5 6 7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS installer script for vlc ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;
; CHANGELOG ;
;;;;;;;;;;;;;
Sam Hocevar's avatar
 
Sam Hocevar committed
8 9 10 11
; 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
Sam Hocevar's avatar
 
Sam Hocevar committed
12
; . removed version information.
Sam Hocevar's avatar
 
Sam Hocevar committed
13
; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2
Sam Hocevar's avatar
 
Sam Hocevar committed
14 15 16 17 18
; . 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)

Sam Hocevar's avatar
 
Sam Hocevar committed
19 20 21 22
;;;;;;;;;;;;;;;;;;;;;;;;;
; General configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;;

Sam Hocevar's avatar
 
Sam Hocevar committed
23 24
OutFile ..\vlc-${VERSION}-win32.exe

Sam Hocevar's avatar
 
Sam Hocevar committed
25
Name "the VideoLAN Client"
Sam Hocevar's avatar
 
Sam Hocevar committed
26 27
Caption "VideoLAN Client '${VERSION}' for Win32 Setup"
;Icon ../share/gvlc32x32.ico
Sam Hocevar's avatar
 
Sam Hocevar committed
28 29 30

CRCCheck on

Sam Hocevar's avatar
 
Sam Hocevar committed
31
InstallDir "$PROGRAMFILES\VideoLAN\VideoLAN Client"
Sam Hocevar's avatar
 
Sam Hocevar committed
32 33 34 35 36 37 38 39 40 41 42 43 44
; 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

Sam Hocevar's avatar
 
Sam Hocevar committed
45 46
UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."

Sam Hocevar's avatar
 
Sam Hocevar committed
47 48 49 50
;;;;;;;;;;;;;;;;;;;;
; Install settings ;
;;;;;;;;;;;;;;;;;;;;

Sam Hocevar's avatar
 
Sam Hocevar committed
51 52 53 54
Section "Install"
	SetOutPath $INSTDIR

	File  vlc.exe
Sam Hocevar's avatar
 
Sam Hocevar committed
55
	File  *.txt
Sam Hocevar's avatar
 
Sam Hocevar committed
56 57

	File  /r share
Sam Hocevar's avatar
 
Sam Hocevar committed
58
	File  /r plugins
Sam Hocevar's avatar
 
Sam Hocevar committed
59 60

	CreateDirectory "$SMPROGRAMS\VideoLAN"
Sam Hocevar's avatar
 
Sam Hocevar committed
61 62 63 64
	CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe" 
	CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\uninstall.exe"
	WriteUninstaller "uninstall.exe"

Sam Hocevar's avatar
 
Sam Hocevar committed
65
	WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
Sam Hocevar's avatar
 
Sam Hocevar committed
66 67
	WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"

Sam Hocevar's avatar
 
Sam Hocevar committed
68 69 70
	Exec "explorer $SMPROGRAMS\VideoLAN\"
SectionEnd

Sam Hocevar's avatar
 
Sam Hocevar committed
71 72 73 74
;;;;;;;;;;;;;;;;;;;;;;
; Uninstall settings ;
;;;;;;;;;;;;;;;;;;;;;;

Sam Hocevar's avatar
 
Sam Hocevar committed
75 76 77 78 79
Section "Uninstall"
	Delete $SMPROGRAMS\VideoLAN\*
	RMDir $SMPROGRAMS\VideoLAN
	Delete $INSTDIR\share\*
	RMDir $INSTDIR\share
Sam Hocevar's avatar
 
Sam Hocevar committed
80 81
	Delete $INSTDIR\plugins\*
	RMDir $INSTDIR\plugins
Sam Hocevar's avatar
 
Sam Hocevar committed
82 83 84 85 86
	Delete $INSTDIR\*
	RMDir $INSTDIR
	DeleteRegKey HKLM SOFTWARE\VideoLAN
SectionEnd