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