]> git.sesse.net Git - vlc/blob - install-win32
Tarkin, Tremor and Theora are only available when compiling from sources.
[vlc] / install-win32
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
2 ; NSIS installer script for vlc ;\r
3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
4 \r
5 ;;;;;;;;;;;;;\r
6 ; CHANGELOG ;\r
7 ;;;;;;;;;;;;;\r
8 ; modifications by Samuel Hocevar <sam@zoy.org> 05 Apr 2002\r
9 ; . no need for @VERSION@ anymore\r
10 ; . updated script for NSIS 1.96.\r
11 ; modifications by Samuel Hocevar <sam@zoy.org> 12 Nov 2001\r
12 ; . removed version information.\r
13 ; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2\r
14 ; . lists all installed files so as to prevent installer.nsi to be included\r
15 ;   in the release.\r
16 ; . really remove the shortcuts.\r
17 ; . added an exec command to display the program file folder. (grOovy)\r
18 \r
19 ;;;;;;;;;;;;;;;;;;;;;;;;;\r
20 ; General configuration ;\r
21 ;;;;;;;;;;;;;;;;;;;;;;;;;\r
22 \r
23 OutFile ..\vlc-${VERSION}-win32.exe\r
24 \r
25 Name "the VideoLAN Client"\r
26 Caption "VideoLAN Client '${VERSION}' for Win32 Setup"\r
27 ;Icon ../share/gvlc32x32.ico\r
28 \r
29 CRCCheck on\r
30 \r
31 InstallDir "$PROGRAMFILES\VideoLAN\VideoLAN Client"\r
32 ; check if the program has already been installed, if so, take this dir\r
33 ; as install dir\r
34 InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"\r
35 DirText "Choose a directory to install in to:"\r
36 \r
37 AutoCloseWindow false\r
38 ShowInstDetails show\r
39 \r
40 SetOverwrite ifnewer\r
41 SetDatablockOptimize on\r
42 SetDateSave off\r
43 SetCompress auto\r
44 \r
45 UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."\r
46 \r
47 ;;;;;;;;;;;;;;;;;;;;\r
48 ; Install settings ;\r
49 ;;;;;;;;;;;;;;;;;;;;\r
50 \r
51 Section "Install"\r
52         SetOutPath $INSTDIR\r
53 \r
54         File  vlc.exe\r
55         File  *.txt\r
56 \r
57         File  /r share\r
58         File  /r plugins\r
59 \r
60         CreateDirectory "$SMPROGRAMS\VideoLAN"\r
61         CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe" \r
62         CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\uninstall.exe"\r
63         WriteUninstaller "uninstall.exe"\r
64 \r
65         WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR\r
66         WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"\r
67 \r
68         Exec "explorer $SMPROGRAMS\VideoLAN\"\r
69 SectionEnd\r
70 \r
71 ;;;;;;;;;;;;;;;;;;;;;;\r
72 ; Uninstall settings ;\r
73 ;;;;;;;;;;;;;;;;;;;;;;\r
74 \r
75 Section "Uninstall"\r
76         Delete $SMPROGRAMS\VideoLAN\*\r
77         RMDir $SMPROGRAMS\VideoLAN\r
78         Delete $INSTDIR\share\*\r
79         RMDir $INSTDIR\share\r
80         Delete $INSTDIR\plugins\*\r
81         RMDir $INSTDIR\plugins\r
82         Delete $INSTDIR\*\r
83         RMDir $INSTDIR\r
84         DeleteRegKey HKLM SOFTWARE\VideoLAN\r
85 SectionEnd\r
86 \r