Silent installation through registry for all users not able to override existing local (App-profile) extension version

We are trying to do a silent installation of our extension using Registry key method for all users.
This method is working fine when system doesn’t have any extension installed already using normal method through XPI file like browser normally installs.

Issue here is that when the user already has the older or any version of extension installed in “C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\profile\extensions”

then Firefox picks the extension from this location , even if did the silent installation using registry key method, However as soon as we uninstall the local profile extension , it picks the extension to which registry key points.

Is there any way in which we can make Firefox to pick the registry key extension in place of local profile extension.
As we cannot delete the existing local profile extension files as we will never know that inside which user profile it is present through silent installation.