1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
2 ; NSIS installer script for vlc ;
\r
3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
8 ; modifications by Gildas Bazin <gbazin@netcourrier.com> 01 Mar 2003
\r
9 ; . added a shortcut to the faq in the menu.
\r
10 ; modifications by Gildas Bazin <gbazin@netcourrier.com> 26 Feb 2003
\r
11 ; . added the locale directory.
\r
12 ; modifications by Samuel Hocevar <sam@zoy.org> 05 Apr 2002
\r
13 ; . no need for @VERSION@ anymore
\r
14 ; . updated script for NSIS 1.96.
\r
15 ; modifications by Samuel Hocevar <sam@zoy.org> 12 Nov 2001
\r
16 ; . removed version information.
\r
17 ; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2
\r
18 ; . lists all installed files so as to prevent installer.nsi to be included
\r
20 ; . really remove the shortcuts.
\r
21 ; . added an exec command to display the program file folder. (grOovy)
\r
23 ;;;;;;;;;;;;;;;;;;;;;;;;;
\r
24 ; General configuration ;
\r
25 ;;;;;;;;;;;;;;;;;;;;;;;;;
\r
27 OutFile ..\vlc-${VERSION}-win32.exe
\r
29 Name "VLC media player"
\r
30 Caption "VLC '${VERSION}' for Win32 Setup"
\r
31 ;Icon ../share/gvlc32x32.ico
\r
35 InstallDir "$PROGRAMFILES\VideoLAN\VLC"
\r
36 ; check if the program has already been installed, if so, take this dir
\r
38 InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
\r
39 DirText "Choose a directory to install in to:"
\r
41 AutoCloseWindow false
\r
42 ShowInstDetails show
\r
44 SetOverwrite ifnewer
\r
45 SetDatablockOptimize on
\r
49 UninstallText "This will uninstall the VLC media player. Hit next to continue."
\r
51 ;;;;;;;;;;;;;;;;;;;;
\r
52 ; Install settings ;
\r
53 ;;;;;;;;;;;;;;;;;;;;
\r
66 CreateDirectory "$SMPROGRAMS\VideoLAN"
\r
67 CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe"
\r
68 CreateShortCut "$SMPROGRAMS\VideoLAN\FAQ.lnk" "$INSTDIR\FAQ.htm"
\r
69 CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\uninstall.exe"
\r
70 WriteUninstaller "uninstall.exe"
\r
72 WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
\r
73 WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"
\r
75 Exec "explorer $SMPROGRAMS\VideoLAN\"
\r
78 ;;;;;;;;;;;;;;;;;;;;;;
\r
79 ; Uninstall settings ;
\r
80 ;;;;;;;;;;;;;;;;;;;;;;
\r
83 Delete $SMPROGRAMS\VideoLAN\*
\r
84 RMDir $SMPROGRAMS\VideoLAN
\r
85 Delete $INSTDIR\share\*
\r
86 RMDir $INSTDIR\share
\r
87 Delete $INSTDIR\plugins\*
\r
88 RMDir $INSTDIR\plugins
\r
89 Delete $INSTDIR\locale\*
\r
90 RMDir $INSTDIR\locale
\r
93 DeleteRegKey HKLM SOFTWARE\VideoLAN
\r