!insertmacro ${_action} ".mp2"
!insertmacro ${_action} ".mp3"
!insertmacro ${_action} ".oma"
- !insertmacro ${_action} ".ogg"
+ !insertmacro ${_action} ".oga"
!insertmacro ${_action} ".spx"
!insertmacro ${_action} ".wav"
!insertmacro ${_action} ".wma"
- !insertmacro ${_action} ".wma"
!insertmacro ${_action} ".xm"
!macroend
!insertmacro ${_action} ".mpg"
!insertmacro ${_action} ".mts"
!insertmacro ${_action} ".mxf"
+ !insertmacro ${_action} ".nuv"
+ !insertmacro ${_action} ".ogg"
!insertmacro ${_action} ".ogm"
+ !insertmacro ${_action} ".ogx"
+ !insertmacro ${_action} ".ogv"
!insertmacro ${_action} ".ts"
!insertmacro ${_action} ".vob"
!insertmacro ${_action} ".wmv"
; Generic function for adding the context menu for one ext.
!macro AddContextMenuExt EXT
WriteRegStr HKCR ${EXT}\shell\PlayWithVLC "" $ContextMenuEntry_PlayWith
- WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '$INSTDIR\vlc.exe --started-from-file --no-playlist-enqueue "%1"'
+ WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --no-playlist-enqueue "%1"'
WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC "" $ContextMenuEntry_AddToPlaylist
- WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '$INSTDIR\vlc.exe --started-from-file --playlist-enqueue "%1"'
+ WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --playlist-enqueue "%1"'
!macroend
!macro AddContextMenu EXT
WriteRegStr HKCR Applications\vlc.exe "FriendlyAppName" "VLC media player"
WriteRegStr HKCR Applications\vlc.exe\shell\Play "" $ContextMenuEntry_PlayWith
WriteRegStr HKCR Applications\vlc.exe\shell\Play\command "" \
- '$INSTDIR\vlc.exe --started-from-file "%1"'
+ '"$INSTDIR\vlc.exe" --started-from-file "%1"'
!insertmacro MacroAllExtensions WriteRegStrSupportedTypes
; Vista Registration
SetOutPath "$INSTDIR"
!insertmacro OpenUninstallLog
!insertmacro InstallFile mozilla\npvlc.dll
+ !insertmacro InstallFile mozilla\npvlc.dll.manifest
!insertmacro CloseUninstallLog
!define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}"
SectionEnd
-Section $Name_Section04 SEC04
- SectionIn 1 3
+Section /o $Name_Section04 SEC04
+ SectionIn 3
SetOutPath "$INSTDIR"
!insertmacro OpenUninstallLog
!insertmacro InstallFile activex\axvlc.dll
+ !insertmacro InstallFile activex\axvlc.dll.manifest
!insertmacro CloseUninstallLog
RegDLL "$INSTDIR\axvlc.dll"
SectionEnd
-Section $Name_Section05 SEC05
+SectionGroup /e !$Name_Section06 SEC05
+ SectionGroup $Name_SectionGroupAudio
+ !insertmacro MacroAudioExtensions RegisterExtensionSection
+ SectionGroupEnd
+ SectionGroup $Name_SectionGroupVideo
+ !insertmacro MacroVideoExtensions RegisterExtensionSection
+ SectionGroupEnd
+ SectionGroup $Name_SectionGroupOther
+ !insertmacro MacroOtherExtensions RegisterExtensionSection
+ SectionGroupEnd
+SectionGroupEnd
+
+
+Section $Name_Section05 SEC06
SectionIn 1 2 3
WriteRegStr HKCR "AudioCD\shell\PlayWithVLC" "" $ContextMenuEntry_PlayWith
WriteRegStr HKCR "AudioCD\shell\PlayWithVLC\command" "" \
- "$INSTDIR\vlc.exe --started-from-file cdda://%1"
+ '"$INSTDIR\vlc.exe" --started-from-file "cdda://%1"'
WriteRegStr HKCR "DVD\shell\PlayWithVLC" "" $ContextMenuEntry_PlayWith
WriteRegStr HKCR "DVD\shell\PlayWithVLC\command" "" \
- "$INSTDIR\vlc.exe --started-from-file dvd://%1"
+ '"$INSTDIR\vlc.exe" --started-from-file "dvd://%1"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" "VLCPlayDVDMovieOnArrival" ""
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "Action" $Action_OnArrivalDVD
WriteRegStr HKCR "VLC.DVDMovie" "" "VLC DVD Movie"
WriteRegStr HKCR "VLC.DVDMovie\shell" "" "Play"
WriteRegStr HKCR "VLC.DVDMovie\shell\Play\command" "" \
- '$INSTDIR\vlc.exe --started-from-file dvd://%1'
+ '"$INSTDIR\vlc.exe" --started-from-file "dvd://%1"'
WriteRegStr HKCR "VLC.DVDMovie\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
WriteRegStr HKCR "VLC.CDAudio" "" "VLC CD Audio"
WriteRegStr HKCR "VLC.CDAudio\shell" "" "Play"
WriteRegStr HKCR "VLC.CDAudio\shell\Play\command" "" \
- '$INSTDIR\vlc.exe --started-from-file cdda://%1'
+ '"$INSTDIR\vlc.exe" --started-from-file "cdda://%1"'
WriteRegStr HKCR "VLC.CDAudio\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
SectionEnd
-SectionGroup $Name_Section06 SEC06
- SectionGroup $Name_SectionGroupAudio
- !insertmacro MacroAudioExtensions RegisterExtensionSection
- SectionGroupEnd
- SectionGroup $Name_SectionGroupVideo
- !insertmacro MacroVideoExtensions RegisterExtensionSection
- SectionGroupEnd
- SectionGroup $Name_SectionGroupOther
- !insertmacro MacroOtherExtensions RegisterExtensionSection
- SectionGroupEnd
-SectionGroupEnd
-
Section $Name_Section07 SEC07
- SectionIn 3
+ SectionIn 1 3
!insertmacro MacroAllExtensions AddContextMenu
!insertmacro AddContextMenuExt "Directory"
SectionEnd
-Section /o $Name_Section08 SEC08
+Section $Name_Section08 SEC08
!insertmacro delprefs
SectionEnd
;;; Start function
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
-
+
!include "languages\english.nsh"
StrCmp $LANGUAGE ${LANG_FRENCH} French EndLanguageCmp
French:
ClearErrors
ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file
done:
-
+
FunctionEnd
;; End function
;remove activex plugin
UnRegDLL "$INSTDIR\axvlc.dll"
Delete /REBOOTOK "$INSTDIR\axvlc.dll"
+ Delete /REBOOTOK "$INSTDIR\axvlc.dll.manifest"
;remove mozilla plugin
Push $R0
"${Index}-End:"
!undef Index
Delete /REBOOTOK "$INSTDIR\npvlc.dll"
+ Delete /REBOOTOK "$INSTDIR\npvlc.dll.manifest"
RMDir "$SMPROGRAMS\VideoLAN"
RMDir /r $SMPROGRAMS\VideoLAN