]> git.sesse.net Git - vlc/blob - install-win32
* ./toolbox: implemented toolbox --distclean to clean the tree without
[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 Gildas Bazin <gbazin@netcourrier.com> 01 Mar 2003\r
9 ; . added a shortcut to the faq in the menu.\r
10 ; modifications by Gildas Bazin <gbazin@netcourrier.com> 26 Feb 2003\r
11 ; . added the locale directory.\r
12 ; modifications by Samuel Hocevar <sam@zoy.org> 05 Apr 2002\r
13 ; . no need for @VERSION@ anymore\r
14 ; . updated script for NSIS 1.96.\r
15 ; modifications by Samuel Hocevar <sam@zoy.org> 12 Nov 2001\r
16 ; . removed version information.\r
17 ; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2\r
18 ; . lists all installed files so as to prevent installer.nsi to be included\r
19 ;   in the release.\r
20 ; . really remove the shortcuts.\r
21 ; . added an exec command to display the program file folder. (grOovy)\r
22 \r
23 ;;;;;;;;;;;;;;;;;;;;;;;;;\r
24 ; General configuration ;\r
25 ;;;;;;;;;;;;;;;;;;;;;;;;;\r
26 \r
27 OutFile ..\vlc-${VERSION}-win32.exe\r
28 SetCompressor bzip2\r
29 \r
30 Name "VLC media player"\r
31 Caption "VLC '${VERSION}' for Win32 Setup"\r
32 ;Icon ../share/gvlc32x32.ico\r
33 \r
34 CRCCheck on\r
35 \r
36 InstallDir "$PROGRAMFILES\VideoLAN\VLC"\r
37 \r
38 ; check if the program has already been installed, if so, take this dir\r
39 ; as install dir\r
40 InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"\r
41 DirText "Choose a directory to install in to:"\r
42 \r
43 AutoCloseWindow false\r
44 ShowInstDetails show\r
45 \r
46 SetOverwrite ifnewer\r
47 SetDatablockOptimize on\r
48 SetDateSave off\r
49 SetCompress auto\r
50 \r
51 UninstallText "This will uninstall the VLC media player."\r
52 \r
53 ;;;;;;;;;;;;;;;;;;;;\r
54 ; Install settings ;\r
55 ;;;;;;;;;;;;;;;;;;;;\r
56 \r
57 Section "Install"\r
58         SetOutPath $INSTDIR\r
59 \r
60         File  vlc.exe\r
61         File  *.txt\r
62         File  *.htm\r
63 \r
64         File  /r share\r
65         File  /r plugins\r
66         File  /r locale\r
67         File  /r skins\r
68 \r
69         CreateDirectory "$SMPROGRAMS\VideoLAN"\r
70         CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe" \r
71         CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (wxwindows).lnk" \\r
72                        "$INSTDIR\vlc.exe" "--intf wxwin"\r
73         CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (skins).lnk" \\r
74                        "$INSTDIR\vlc.exe" "--intf skins"\r
75         CreateShortCut "$SMPROGRAMS\VideoLAN\FAQ.lnk" "$INSTDIR\FAQ.htm"\r
76 \r
77         WriteRegStr HKLM \\r
78             SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \\r
79             "DisplayName" "VideoLAN VLC media player"\r
80         WriteRegStr HKLM \\r
81             SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \\r
82             "UninstallString" '"$INSTDIR\uninstall.exe"'\r
83         WriteUninstaller "uninstall.exe"\r
84 \r
85         WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR\r
86         WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"\r
87 \r
88         Exec "explorer $SMPROGRAMS\VideoLAN\"\r
89 SectionEnd\r
90 \r
91 ;;;;;;;;;;;;;;;;;;;;;;\r
92 ; Uninstall settings ;\r
93 ;;;;;;;;;;;;;;;;;;;;;;\r
94 \r
95 Section "Uninstall"\r
96         RMDir /r $SMPROGRAMS\VideoLAN\r
97         RMDir /r $INSTDIR\r
98         DeleteRegKey HKLM SOFTWARE\VideoLAN\r
99         DeleteRegKey HKLM \\r
100             Software\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN\r
101 SectionEnd\r