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
30 Name "VLC media player"
\r
31 Caption "VLC '${VERSION}' for Win32 Setup"
\r
32 ;Icon ../share/gvlc32x32.ico
\r
36 InstallDir "$PROGRAMFILES\VideoLAN\VLC"
\r
38 ; check if the program has already been installed, if so, take this dir
\r
40 InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
\r
41 DirText "Choose a directory to install in to:"
\r
43 AutoCloseWindow false
\r
44 ShowInstDetails show
\r
46 SetOverwrite ifnewer
\r
47 SetDatablockOptimize on
\r
51 UninstallText "This will uninstall the VLC media player."
\r
53 ;;;;;;;;;;;;;;;;;;;;
\r
54 ; Install settings ;
\r
55 ;;;;;;;;;;;;;;;;;;;;
\r
68 CreateDirectory "$SMPROGRAMS\VideoLAN"
\r
69 CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe"
\r
70 CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (wxwindows).lnk" \
\r
71 "$INSTDIR\vlc.exe" "--intf wxwin"
\r
72 CreateShortCut "$SMPROGRAMS\VideoLAN\vlc (skins).lnk" \
\r
73 "$INSTDIR\vlc.exe" "--intf skins"
\r
74 CreateShortCut "$SMPROGRAMS\VideoLAN\FAQ.lnk" "$INSTDIR\FAQ.htm"
\r
77 SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \
\r
78 "DisplayName" "VideoLAN VLC media player"
\r
80 SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN \
\r
81 "UninstallString" '"$INSTDIR\uninstall.exe"'
\r
82 WriteUninstaller "uninstall.exe"
\r
84 WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
\r
85 WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"
\r
87 Exec "explorer $SMPROGRAMS\VideoLAN\"
\r
90 ;;;;;;;;;;;;;;;;;;;;;;
\r
91 ; Uninstall settings ;
\r
92 ;;;;;;;;;;;;;;;;;;;;;;
\r
95 RMDir /r $SMPROGRAMS\VideoLAN
\r
97 DeleteRegKey HKLM SOFTWARE\VideoLAN
\r
99 Software\Microsoft\Windows\CurrentVersion\Uninstall\VideoLAN
\r