Forum Discussion

robmo's avatar
robmo
Brass Contributor
Jan 25, 2023
Solved

Remove extra set of double quotes in string

Hi, I am writing a PowerShell script that needs to remove Firefox that is less than or equal to a specific version. I have the script working up to where it reads the uninstall string from the regis...
  • robmo's avatar
    robmo
    Jan 30, 2023
    I did some inspection of Firefox installations and it turns out that they use the same uninstall string for every version. The only difference is if helper.exe is in Program Files (x86) or Program Files:

    C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe OR
    C:\Program Files\Mozilla Firefox\uninstall\helper.exe

    Since I have this information, I will just set some variables for these strings and then I won't have to deal with string handling when reading from the registry. This will simplify the development of this script.

    Thank you for your help!

Resources