Uninstall Firefox through Package Method ,Uninstall Firefox failed with exit code 1605

Question
I am trying to uninstall Firefox through package Method but I am getting this error, and the Firefox didn’t get uninstalled.
I have shared the Uninstall snap of Uninstall.
Posted by Danish Afzal in HTMD FB Group
in progress 0
Vidya M A 2022-03-16T09:38:51+05:30 7 Answers 84 views 0

Answers ( 7 )

    0
    2022-03-17T11:00:59+05:30

    Replied by Jared Freeman

    Jose is true and I’ll concede the point.

    I guess what I was driving at was that there’s no reason to explicitly define the uninstall command when all that’s going to remove is that one version of the application.

    I’d be likelier to use a registry query to get the uninstall command myself.

    0
    2022-03-17T11:00:57+05:30

    Replied by Jared Freeman

    Jose is true and I’ll concede the point.

    I guess what I was driving at was that there’s no reason to explicitly define the uninstall command when all that’s going to remove is that one version of the application.

    I’d be likelier to use a registry query to get the uninstall command myself.

    0
    2022-03-17T10:59:52+05:30

    Replied by Jared Freeman

    Yes, I’ve seen the warnings about not using WMIC to remove an application before and ordinarily wouldn’t recommend it but we’ve used it for certain apps in the past without issue.

    Alternatively, it wouldn’t be difficult to just do a PowerShell script that finds the Uninstall registry key for Firefox in HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall, grabs the UninstallString, and runs that with a /s at the end.

    In most cases it’s just:
    “C:Program FilesMozilla Firefoxuninstallhelper.exe” /s

    Replied by Jose Espitia

    Jared Freeman querying the registry really should be the primary method unless you have something like an InstallShield installer that requires a response file to uninstall.

    There is no reason to use WMI to uninstall the software when you can accomplish the same goal in other ways.

    Using WMI will force a check on all of your apps which you can see happening from the event viewer.

    If any installer detects a problem it will run a repair which can potentially wipe out any customizations that you configured, etc. Why risk a problem when there are much better alternatives?

    0
    2022-03-17T10:57:50+05:30

    Replied by Jason Santoro
    Use the application method or script method. I would stay away from the package for uninstall.

    Replied by Dany Bouchard
    I always use PSADT intelligence to uninstall apps. It has everything you need.

    Replied by Garth Jones
    Add the command line to create a log file and see what the real error is within it. Using a package for this is fine.

    Replied by Brett Dawson
    I would do it as an application VS a package

    0
    2022-03-16T09:49:44+05:30

    Replied by Jose Espitia

    Jared Freeman you shouldn’t use the Win32_Product class to uninstall software. Query the uninstall GUID in the registry and use that instead.

    https://gregramsey.net/2012/02/20/win32_product-is-evil/amp/
    Win32_Product Is Evil.
    GREGRAMSEY.NET
    Win32_Product Is Evil.
    Win32_Product Is Evil.

    Replied by Jaghaddeesh Jagha

    I have done this exercise in the company I used the simple method of uninstallation of Firefox
    1. log in to the SQL database and write an ARP query with firefox product name and software code(MSI code) and uninstall string
    2. Copied to excel and captured the required software code.
    3. Created a custom batch script
    Msiexec /x “softwarecode1” /qn
    Msiexec/x “softwarecode2” /qn
    4. Created as a package model and deployed to that Target PC’s.
    Note: if you have a firefox uninstalled on a client’s pc using exe you can get the uninstall string from that SQL query
    For the faster uninstallation method, I used a PowerShell for MSI uninstall and used scripts method in SCCM and triggered to PC or collection right click and run the script.

    0
    2022-03-16T09:47:19+05:30

    Replied by Jared Freeman

    Instead of specifying your command line for uninstall, you could do a PowerShell script to retrieve the local uninstall string from the computer and run it.
    Something like
    $application = Get-WmiObject -Class Win32_Product -Filter “Name = ‘Mozilla Firefox (x64 en-US)'”
    $application.Uninstall()

    Replied by Jared Freeman
    Or perhaps…

    (Get-WmiObject -Query “SELECT * FROM Win32_Product WHERE Name like ‘%Mozilla Firefox%'”).uninstall()
    …so you get everything named Mozilla Firefox?

    0
    2022-03-16T09:45:53+05:30

    Replied by Darrell Shand

    Why the package method why not application/ MSI methods must be easier

    Replied by Danish Afzal
    Author

    Darrell Shand, I am testing both methods first I used the application and got success then I switched to the package method install gets clear but I am stuck at uninstalling part.

Leave an answer

Sorry, you do not have a permission to answer to this question .