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 OutFile vlc-@VERSION@.exe
\r
17 Name "the VideoLAN Client"
\r
18 Caption "vlc @VERSION@ for Win32 Setup"
\r
19 ;Icon ../share/gvlc_win32.ico
\r
23 InstallDir $PROGRAMFILES\vlc
\r
24 ; check if the program has already been installed, if so, take this dir
\r
26 InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
\r
27 DirText "Choose a directory to install in to:"
\r
29 AutoCloseWindow false
\r
30 ShowInstDetails show
\r
33 UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."
\r
34 UninstallExeName "vlc-uninst.exe"
\r
36 SetOverwrite ifnewer
\r
37 SetDatablockOptimize on
\r
49 File INSTALL-win32.txt
\r
53 File ChangeLog.libdvdcss
\r
55 File README.libdvdcss
\r
63 File gmodule-1.3.dll
\r
66 ;File README-GTK.txt
\r
71 CreateDirectory "$SMPROGRAMS\VideoLAN"
\r
72 CreateShortCut "$SMPROGRAMS\VideoLAN\vlc_@VERSION@.lnk" "$INSTDIR\vlc.exe"
\r
73 CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\vlc-uninst.exe"
\r
74 WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
\r
75 WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "@VERSION@"
\r
76 Exec "explorer $SMPROGRAMS\VideoLAN\"
\r
80 Delete $SMPROGRAMS\VideoLAN\*
\r
81 RMDir $SMPROGRAMS\VideoLAN
\r
82 Delete $INSTDIR\share\*
\r
83 RMDir $INSTDIR\share
\r
86 DeleteRegKey HKLM SOFTWARE\VideoLAN
\r