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