you won't find the helper.exe if user installed firefox as user rights. You know, you can install firefox as admin or as user.
For uninstall user rights installed firefox you can use this powershell script. Remember Installation behavior: Install for System.
#Uninstall Firefox User rights installed
get-childitem "C:\users" firefox.exe -Recurse -Force | foreach-object {
$setup = $_.directory.tostring() + "\uninstall\helper.exe"
$args = " /s"
$uninst = Start-Process $setup -PassThru -ArgumentList $args -wait
$uninst.WaitForExit()
}
#Delete registry key
$null = New-PSDrive -Name HKU -PSProvider Registry -Root Registry::HKEY_USERS
Set-Location HKU:
Get-ChildItem -path HKU: | ForEach-Object {
$uninstall = $_.Name + "\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"
$firefox = get-ChildItem -path $uninstall | ?{$_.Name -match "Mozilla Firefox"}
write-host $firefox
Remove-Item -path $firefox -Recurse -ErrorAction SilentlyContinue
}
Dectetion can use:
$firefox = Get-Item "c:\Users\*\Appdata\Local\Mozilla Firefox\firefox.exe"
if ($firefox -eq $null) {
write-host not installed}
For uninstall Admin rights installed firefox, you can use helper.exe, as you already tested that yourself.