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
10 ; . removed version information.
\r
11 ; . lists all installed files so as to prevent installer.nsi to be included
\r
13 ; . really remove the shortcuts.
\r
14 ; . added an exec command to display the program file folder. (grOovy)
\r
16 ;;;;;;;;;;;;;;;;;;;;;;;;;
\r
17 ; General configuration ;
\r
18 ;;;;;;;;;;;;;;;;;;;;;;;;;
\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
27 InstallDir $PROGRAMFILES\vlc
\r
28 ; check if the program has already been installed, if so, take this dir
\r
30 InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
\r
31 DirText "Choose a directory to install in to:"
\r
33 AutoCloseWindow false
\r
34 ShowInstDetails show
\r
37 UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."
\r
38 UninstallExeName "vlc-uninst.exe"
\r
40 SetOverwrite ifnewer
\r
41 SetDatablockOptimize on
\r
45 ;;;;;;;;;;;;;;;;;;;;
\r
46 ; Install settings ;
\r
47 ;;;;;;;;;;;;;;;;;;;;
\r
60 File ChangeLog.libdvdcss
\r
62 File README.libdvdcss
\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
76 ;;;;;;;;;;;;;;;;;;;;;;
\r
77 ; Uninstall settings ;
\r
78 ;;;;;;;;;;;;;;;;;;;;;;
\r
81 Delete $SMPROGRAMS\VideoLAN\*
\r
82 RMDir $SMPROGRAMS\VideoLAN
\r
83 Delete $INSTDIR\share\*
\r
84 RMDir $INSTDIR\share
\r
87 DeleteRegKey HKLM SOFTWARE\VideoLAN
\r