Commit 32a31f32 authored by Damien Fouilleul's avatar Damien Fouilleul

mozilla: use 'MozillaPlugins' registry entry to register VLC plugin dll, which...

mozilla: use 'MozillaPlugins' registry entry to register VLC plugin dll, which means plugin no longer needs be copied to FireFox/Mozilla plugins folder
parent 79c0abe7
...@@ -440,43 +440,43 @@ SectionEnd ...@@ -440,43 +440,43 @@ SectionEnd
Section /o "Mozilla plugin" SEC03 Section /o "Mozilla plugin" SEC03
SectionIn 1 3 SectionIn 1 3
SetOutPath "$INSTDIR"
!insertmacro OpenUninstallLog !insertmacro OpenUninstallLog
!insertmacro InstallFolder mozilla !insertmacro InstallFile mozilla\npvlc.dll
!insertmacro CloseUninstallLog !insertmacro CloseUninstallLog
; doesn't work. bug in mozilla/mozilla firefox or moz documentation (xpt file isn't loaded) !define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}"
; see mozilla bugs 184506 and 159445 WriteRegStr HKLM ${Moz} "Description" "VLC Multimedia Plugin"
;!define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}" WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\npvlc.dll"
;WriteRegStr HKLM ${Moz} "Description" "VideoLAN VLC plugin for Mozilla" WriteRegStr HKLM ${Moz} "Product" "VLC media player"
;WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\mozilla\npvlc.dll" WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN"
;WriteRegStr HKLM ${Moz} "Product" "VLC media player" WriteRegStr HKLM ${Moz} "Version" "${VERSION}"
;WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN"
;WriteRegStr HKLM ${Moz} "Version" "${VERSION}"
Push $R0 ; for very old version of mozilla, these lines may be needed
Push $R1 ;Push $R0
Push $R2 ;Push $R1
;Push $R2
!define Index 'Line${__LINE__}' ;!define Index 'Line${__LINE__}'
StrCpy $R1 "0" ;StrCpy $R1 "0"
"${Index}-Loop:" ;"${Index}-Loop:"
; Check for Key ; ; Check for Key
EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1" ; EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1"
StrCmp $R0 "" "${Index}-End" ; StrCmp $R0 "" "${Index}-End"
IntOp $R1 $R1 + 1 ; IntOp $R1 $R1 + 1
ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins" ; ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
StrCmp $R2 "" "${Index}-Loop" "" ; StrCmp $R2 "" "${Index}-Loop" ""
CopyFiles "$INSTDIR\mozilla\*" "$R2" ; CopyFiles "$INSTDIR\npvlc.dll" "$R2"
!ifdef LIBVLC_DLL ; !ifdef LIBVLC_DLL
CopyFiles ${LIBVLC_DLL} "$R2" ; CopyFiles ${LIBVLC_DLL} "$R2"
!endif ; !endif
Goto "${Index}-Loop" ; Goto "${Index}-Loop"
"${Index}-End:" ;"${Index}-End:"
!undef Index ;!undef Index
SectionEnd SectionEnd
...@@ -634,6 +634,7 @@ Section "Uninstall" SEC91 ...@@ -634,6 +634,7 @@ Section "Uninstall" SEC91
!insertmacro MacroAllExtensions UnRegisterExtensionSection !insertmacro MacroAllExtensions UnRegisterExtensionSection
!insertmacro DeleteContextMenu "Directory" !insertmacro DeleteContextMenu "Directory"
;remove activex plugin
UnRegDLL "$INSTDIR\axvlc.dll" UnRegDLL "$INSTDIR\axvlc.dll"
Delete /REBOOTOK "$INSTDIR\axvlc.dll" Delete /REBOOTOK "$INSTDIR\axvlc.dll"
...@@ -659,6 +660,7 @@ Section "Uninstall" SEC91 ...@@ -659,6 +660,7 @@ Section "Uninstall" SEC91
"${Index}-End:" "${Index}-End:"
!undef Index !undef Index
Delete /REBOOTOK "$INSTDIR\npvlc.dll"
RMDir "$SMPROGRAMS\VideoLAN" RMDir "$SMPROGRAMS\VideoLAN"
RMDir /r $SMPROGRAMS\VideoLAN RMDir /r $SMPROGRAMS\VideoLAN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment