ReadRegStr $0 HKCR "VLC$R0" ""\r
WriteRegStr HKCR "VLC$R0" "" "VLC media file"\r
WriteRegStr HKCR "VLC$R0\shell" "" "Play"\r
- WriteRegStr HKCR "VLC$R0\shell\Play\command" "" '$INSTDIR\vlc.exe "%1"'\r
- WriteRegStr HKCR "VLC$R0\DefaultIcon" "" "$INSTDIR\vlc.exe,0"\r
+ WriteRegStr HKCR "VLC$R0\shell\Play\command" "" '"$INSTDIR\vlc.exe" "%1"'\r
+ WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'\r
FunctionEnd\r
\r
Function un.RegisterExtension\r
File /r plugins\r
File /r locale\r
File /r skins\r
- File /r skins2\r
File /r http\r
\r
WriteRegStr HKCR Applications\vlc.exe "" ""\r
\r
WriteRegStr HKCR "AudioCD\shell\PlayWithVLC" "" "Play with VLC media player"\r
WriteRegStr HKCR "AudioCD\shell\PlayWithVLC\command" "" \\r
- '$INSTDIR\vlc.exe cdda:%1'\r
+ "$INSTDIR\vlc.exe cdda:%1"\r
WriteRegStr HKCR "DVD\shell\PlayWithVLC" "" "Play with VLC media player"\r
WriteRegStr HKCR "DVD\shell\PlayWithVLC\command" "" \\r
- '$INSTDIR\vlc.exe dvd:%1'\r
+ "$INSTDIR\vlc.exe dvd:%1"\r
+\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" "VLCPlayDVDMovieOnArrival" ""\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "Action" "Play DVD movie"\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "DefaultIcon" '"$INSTDIR\vlc.exe",0'\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "InvokeProgID" "VLC.DVDMovie"\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "InvokeVerb" "play"\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "Provider" "VideoLAN VLC media player"\r
+\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival" "VLCPlayCDAudioOnArrival" ""\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "Action" "Play CD audio"\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "DefaultIcon" '"$INSTDIR\vlc.exe",0'\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "InvokeProgID" "VLC.CDAudio"\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "InvokeVerb" "play"\r
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "Provider" "VideoLAN VLC media player"\r
+ WriteRegStr HKCR "VLC.DVDMovie" "" "VLC DVD Movie"\r
+ WriteRegStr HKCR "VLC.DVDMovie\shell" "" "Play"\r
+ WriteRegStr HKCR "VLC.DVDMovie\shell\Play\command" "" \\r
+ '$INSTDIR\vlc.exe dvd:%1@1:0'\r
+ WriteRegStr HKCR "VLC.DVDMovie\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'\r
+ WriteRegStr HKCR "VLC.CDAudio" "" "VLC CD Audio"\r
+ WriteRegStr HKCR "VLC.CDAudio\shell" "" "Play"\r
+ WriteRegStr HKCR "VLC.CDAudio\shell\Play\command" "" \\r
+ '$INSTDIR\vlc.exe cdda:%1'\r
+ WriteRegStr HKCR "VLC.CDAudio\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'\r
\r
SectionEnd\r
\r
SectionIn 1 2 3\r
CreateDirectory "$SMPROGRAMS\VideoLAN"\r
CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" \\r
- "$INSTDIR\vlc.exe" "--intf wxwin"\r
+ "$INSTDIR\vlc.exe" "--intf wxwin --wxwin-embed"\r
+ CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player (alt).lnk" \\r
+ "$INSTDIR\vlc.exe" "--intf wxwin --no-wxwin-embed"\r
CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player (skins).lnk" \\r
"$INSTDIR\vlc.exe" "--intf skins"\r
- CreateShortCut "$DESKTOP\VLC media player.lnk" "$INSTDIR\vlc.exe"\r
+ CreateShortCut "$DESKTOP\VLC media player.lnk" \\r
+ "$INSTDIR\vlc.exe" "--intf wxwin"\r
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" \\r
"${PRODUCT_WEB_SITE}"\r
CreateShortCut "$SMPROGRAMS\VideoLAN\Website.lnk" \\r
\r
Section /o "Mozilla plugin" SEC03\r
SectionIn 2 3\r
- File /r mozilla\r
+ File /r mozilla\r
\r
WriteRegStr HKLM \\r
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION} \\r
"Path" '"$INSTDIR\mozilla\npvlc.dll"'\r
SectionEnd\r
\r
-SubSection "File type associations" SEC04\r
+Section /o "ActiveX plugin" SEC04\r
+ SectionIn 2 3\r
+ SetOutPath "$INSTDIR"\r
+ File activex\axvlc.dll\r
+ RegDLL "$INSTDIR\axvlc.dll"\r
+SectionEnd\r
+\r
+SubSection "File type associations" SEC05\r
; Make sure we have the same list in uninstall\r
!insertmacro RegisterExtensionSection ".a52"\r
!insertmacro RegisterExtensionSection ".aac"\r
!insertmacro RegisterExtensionSection ".avi"\r
!insertmacro RegisterExtensionSection ".bin"\r
!insertmacro RegisterExtensionSection ".cue"\r
- !insertmacro RegisterExtensionSection ".dat"\r
!insertmacro RegisterExtensionSection ".divx"\r
!insertmacro RegisterExtensionSection ".dts"\r
!insertmacro RegisterExtensionSection ".dv"\r
!insertmacro RegisterExtensionSection ".pls"\r
!insertmacro RegisterExtensionSection ".spx"\r
!insertmacro RegisterExtensionSection ".vob"\r
+ !insertmacro RegisterExtensionSection ".vlc"\r
!insertmacro RegisterExtensionSection ".wav"\r
!insertmacro RegisterExtensionSection ".wma"\r
!insertmacro RegisterExtensionSection ".wmv"\r
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} \\r
"The VLC mozilla plugin"\r
!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} \\r
+ "The VLC ActiveX plugin"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} \\r
"Sets VLC media player as the default application for the specified file type"\r
!insertmacro MUI_FUNCTION_DESCRIPTION_END\r
\r
!insertmacro UnRegisterExtensionSection ".avi"\r
!insertmacro UnRegisterExtensionSection ".bin"\r
!insertmacro UnRegisterExtensionSection ".cue"\r
- !insertmacro UnRegisterExtensionSection ".dat"\r
!insertmacro UnRegisterExtensionSection ".divx"\r
!insertmacro UnRegisterExtensionSection ".dts"\r
!insertmacro UnRegisterExtensionSection ".dv"\r
!insertmacro UnRegisterExtensionSection ".pls"\r
!insertmacro UnRegisterExtensionSection ".spx"\r
!insertmacro UnRegisterExtensionSection ".vob"\r
+ !insertmacro UnRegisterExtensionSection ".vlc"\r
!insertmacro UnRegisterExtensionSection ".wav"\r
!insertmacro UnRegisterExtensionSection ".wma"\r
!insertmacro UnRegisterExtensionSection ".wmv"\r
\r
+ UnRegDLL "$INSTDIR\axvlc.dll"\r
+ Delete /REBOOTOK "$INSTDIR\axvlc.dll"\r
+\r
RMDir "$SMPROGRAMS\VideoLAN"\r
RMDir /r $SMPROGRAMS\VideoLAN\r
RMDir /r $INSTDIR\r
DeleteRegKey HKCR Applications\vlc.exe\r
DeleteRegKey HKCR AudioCD\shell\PlayWithVLC\r
DeleteRegKey HKCR DVD\shell\PlayWithVLC\r
+ DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" "VLCPlayDVDMovieOnArrival"\r
+ DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival\r
+ DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival" "VLCPlayCDAudioOnArrival"\r
+ DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival\r
+ DeleteRegKey HKCR "VLC.MediaFile"\r
\r
DeleteRegKey HKLM \\r
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}\r