* ./include/os_specific.h: got it wrong once again... alcohol is bad, kids.
[vlc.git] / install-win32
blob91dec7758c19f3170c22601731b678e92fb67373
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
19 ;;;;;;;;;;;;;;;;;;;;;;;;;\r
20 ; General configuration ;\r
21 ;;;;;;;;;;;;;;;;;;;;;;;;;\r
23 OutFile ..\vlc-${VERSION}-win32.exe\r
25 Name "the VideoLAN Client"\r
26 Caption "VideoLAN Client '${VERSION}' for Win32 Setup"\r
27 ;Icon ../share/gvlc32x32.ico\r
29 CRCCheck on\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
37 AutoCloseWindow false\r
38 ShowInstDetails show\r
40 SetOverwrite ifnewer\r
41 SetDatablockOptimize on\r
42 SetDateSave off\r
43 SetCompress auto\r
45 UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."\r
47 ;;;;;;;;;;;;;;;;;;;;\r
48 ; Install settings ;\r
49 ;;;;;;;;;;;;;;;;;;;;\r
51 Section "Install"\r
52         SetOutPath $INSTDIR\r
54         File  vlc.exe\r
55         File  *.txt\r
57         File  /r share\r
58         File  /r plugins\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
65         WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR\r
66         WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"\r
68         Exec "explorer $SMPROGRAMS\VideoLAN\"\r
69 SectionEnd\r
71 ;;;;;;;;;;;;;;;;;;;;;;\r
72 ; Uninstall settings ;\r
73 ;;;;;;;;;;;;;;;;;;;;;;\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