1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
2 ; NSIS installer script for vlc ;
\r
3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\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
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
31 InstallDir "$PROGRAMFILES\VideoLAN\VideoLAN Client"
\r
32 ; check if the program has already been installed, if so, take this 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
45 UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."
\r
47 ;;;;;;;;;;;;;;;;;;;;
\r
48 ; Install settings ;
\r
49 ;;;;;;;;;;;;;;;;;;;;
\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
71 ;;;;;;;;;;;;;;;;;;;;;;
\r
72 ; Uninstall settings ;
\r
73 ;;;;;;;;;;;;;;;;;;;;;;
\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
84 DeleteRegKey HKLM SOFTWARE\VideoLAN
\r