remove unused extensions

This commit is contained in:
David Rose 2011-08-31 21:39:44 +00:00
parent c43d6a969f
commit 6c2494be17

View File

@ -1,6 +1,5 @@
!include "MUI.nsh" !include "MUI.nsh"
!include LogicLib.nsh !include LogicLib.nsh
!include FileFunc.nsh
!include FileAssociation.nsh !include FileAssociation.nsh
; Several variables are assumed to be pre-defined by the caller. See ; Several variables are assumed to be pre-defined by the caller. See
@ -12,8 +11,6 @@
!define WEBSITE_LINK_NAME "Website" !define WEBSITE_LINK_NAME "Website"
!define PLID "@panda3d.org/Panda3D Runtime,version=0.0" !define PLID "@panda3d.org/Panda3D Runtime,version=0.0"
!insertmacro GetOptions
; HM NIS Edit Wizard helper defines ; HM NIS Edit Wizard helper defines
!define APP_INTERNAL_NAME "Panda3D" !define APP_INTERNAL_NAME "Panda3D"
@ -209,11 +206,11 @@ Mozilla-Uninstall-Loop:
StrCmp $0 "" Mozilla-Uninstall-End StrCmp $0 "" Mozilla-Uninstall-End
IntOp $1 $1 + 1 IntOp $1 $1 + 1
ReadRegStr $2 HKLM "SOFTWARE\Mozilla\$0\Extensions" "Plugins" ReadRegStr $2 HKLM "SOFTWARE\Mozilla\$0\Extensions" "Plugins"
${If} $2 != "" ${If} $2 != ""
Delete "$2\${NPAPI}" Delete "$2\${NPAPI}"
# We can't delete the dependency files, because who knows--maybe # We can't delete the dependency files, because who knows--maybe
# some other plugins are also using the same files. # some other plugins are also using the same files.
${EndIf} ${EndIf}
goto Mozilla-Uninstall-Loop goto Mozilla-Uninstall-Loop
Mozilla-Uninstall-End: Mozilla-Uninstall-End: