If you are trying to identify if the addon is installed from outside the Firefox environment, you can do so by reading from the file system.
You would open the extensions.json in the profile folder, for instance like this:
C:\Users\Noitidart\AppData\Roaming\Mozilla\Firefox\Profiles\392laks.default\extensions.json
Then parse that json, it is an array of objects, find the entry with the addon id you are looking for. If it’s not there, its not installed. If its there but userDisabled
is true, then the user disabled it. If appDisabled
is true then the addon is likely not compatible with the last version of firefox they ran in. softDisabled
true means the user clicked uninstall but 1) if addon is a non-restartless addon - then it is waiting for user to restart browser and then it will be uninstalled 2) if the addon is restartless - then it is waiting for user to close the addon manager tab then it will be uninstalled completely
If you need help identifying the path to profiles, you should go to the profiles.ini
this is always located in the user application data dir. That holds infos on the profiles.