Patch My PC Feature and Application Request

A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize request, please see:

Mozilla Firefox Older Version Uninstall

Would there be a way to script an uninstall of all older versions of Mozilla Firefox that would remove the files and the registry entry?

  • Guest
  • Jul 27 2021
  • NO GO :(
  • Attach files
  • Rob Gura commented
    26 Aug, 2021 06:44pm

    you could write your own custom pre-install script to remove all old versions.

    I usually use

    $ARPName = "Firefox"

    $AppProd = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -match $ARPName}

    $AppProd.Uninstall()

  • Admin
    Adam Cook commented
    28 Jul, 2021 06:21am

    I recommend updating them all to the latest version and deploying an uninstall assignment/deployment with the App once they're updated. It's unlikely we will provide a script within our catalogue to uninstall any version of Firefox when the functionality exists today by deploying uninstalls of Apps.

  • Guest commented
    27 Jul, 2021 01:52pm

    Thanks, Adam. More so we have multi Firefox version being detected with RAPID7. The idea is to have a general uninstall script that would remove files and registry entries for all older version.

  • Admin
    Adam Cook commented
    27 Jul, 2021 01:16pm

    For ConfigMgr Apps and Intune Apps, we populate the uninstall string so it is possible to uninstall Firefox. However the applications will only run the uninstall if it detects that version of the app itself to be installed - to work around this, customers first update the software to the latest version and then deploy an uninstall of the application.