X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vlc.win32.nsi.in;h=4b0b0e63fa7123f93a9a9ccc9769e76881987516;hb=9775069d0bd28eb34916f5721722ba5447612023;hp=476cbfa0545e769bf723af2b3c8483bce0e1832a;hpb=71abca728d56bd80220bea148ac664158c4b63e0;p=vlc diff --git a/vlc.win32.nsi.in b/vlc.win32.nsi.in index 476cbfa054..4b0b0e63fa 100644 --- a/vlc.win32.nsi.in +++ b/vlc.win32.nsi.in @@ -196,7 +196,7 @@ NoOwn: FunctionEnd !macro RegisterExtensionSection EXT - Section /o ${EXT} + Section ${EXT} SectionIn 1 3 Push $R0 StrCpy $R0 ${EXT} @@ -238,7 +238,6 @@ FunctionEnd ;;;;;;;;;;;;;;;;;;;;;;;;;; !macro delprefs - SectionIn 1 3 StrCpy $0 0 !define Index 'Line${__LINE__}' "${Index}-Loop:" @@ -437,50 +436,49 @@ Section "Desktop Shortcut" SEC02b SectionEnd Section /o "Mozilla plugin" SEC03 - SectionIn 1 3 + SectionIn 3 + SetOutPath "$INSTDIR" !insertmacro OpenUninstallLog - !insertmacro InstallFolder mozilla + !insertmacro InstallFile mozilla\npvlc.dll !insertmacro CloseUninstallLog - ; doesn't work. bug in mozilla/mozilla firefox or moz documentation (xpt file isn't loaded) - ; see mozilla bugs 184506 and 159445 - ;!define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}" - ;WriteRegStr HKLM ${Moz} "Description" "VideoLAN VLC plugin for Mozilla" - ;WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\mozilla\npvlc.dll" - ;WriteRegStr HKLM ${Moz} "Product" "VLC media player" - ;WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN" - ;WriteRegStr HKLM ${Moz} "Version" "${VERSION}" - ;WriteRegStr HKLM ${Moz} "XPTPath" "$INSTDIR\mozilla\vlcintf.xpt" + !define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}" + WriteRegStr HKLM ${Moz} "Description" "VLC Multimedia Plugin" + WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\npvlc.dll" + WriteRegStr HKLM ${Moz} "Product" "VLC media player" + WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN" + WriteRegStr HKLM ${Moz} "Version" "${VERSION}" - Push $R0 - Push $R1 - Push $R2 + ; for very old version of mozilla, these lines may be needed + ;Push $R0 + ;Push $R1 + ;Push $R2 - !define Index 'Line${__LINE__}' - StrCpy $R1 "0" + ;!define Index 'Line${__LINE__}' + ;StrCpy $R1 "0" - "${Index}-Loop:" + ;"${Index}-Loop:" - ; Check for Key - EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1" - StrCmp $R0 "" "${Index}-End" - IntOp $R1 $R1 + 1 - ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins" - StrCmp $R2 "" "${Index}-Loop" "" + ; ; Check for Key + ; EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1" + ; StrCmp $R0 "" "${Index}-End" + ; IntOp $R1 $R1 + 1 + ; ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins" + ; StrCmp $R2 "" "${Index}-Loop" "" - CopyFiles "$INSTDIR\mozilla\*" "$R2" - !ifdef LIBVLC_DLL - CopyFiles ${LIBVLC_DLL} "$R2" - !endif - Goto "${Index}-Loop" + ; CopyFiles "$INSTDIR\npvlc.dll" "$R2" + ; !ifdef LIBVLC_DLL + ; CopyFiles ${LIBVLC_DLL} "$R2" + ; !endif + ; Goto "${Index}-Loop" - "${Index}-End:" - !undef Index + ;"${Index}-End:" + ;!undef Index SectionEnd -Section /o "ActiveX plugin" SEC04 +Section "ActiveX plugin" SEC04 SectionIn 1 3 SetOutPath "$INSTDIR" !insertmacro OpenUninstallLog @@ -634,6 +632,7 @@ Section "Uninstall" SEC91 !insertmacro MacroAllExtensions UnRegisterExtensionSection !insertmacro DeleteContextMenu "Directory" + ;remove activex plugin UnRegDLL "$INSTDIR\axvlc.dll" Delete /REBOOTOK "$INSTDIR\axvlc.dll" @@ -654,11 +653,15 @@ Section "Uninstall" SEC91 ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins" StrCmp $R2 "" "${Index}-Loop" "" - Delete "$R2\npvlc.dll" + ; old files (0.8.5 and before) that may be lying around + Delete /REBOOTOK "$R2\npvlc.dll" + Delete /REBOOTOK "$R2\libvlc.dll" + Delete /REBOOTOK "$R2\vlcintf.xpt" Goto "${Index}-Loop" "${Index}-End:" !undef Index + Delete /REBOOTOK "$INSTDIR\npvlc.dll" RMDir "$SMPROGRAMS\VideoLAN" RMDir /r $SMPROGRAMS\VideoLAN @@ -706,7 +709,6 @@ Section "Uninstall" SEC91 SectionEnd Section /o "un.Delete preferences and cache" SEC92 - SectionIn 1 3 !insertmacro delprefs SectionEnd