The steps of upgrading my firebreath plugin is
- Make the plugin installer by NSIS.
- In the begining of installing, detect whether the plugin is occupied by any browser or not.
- Closing all browsers who are using the plugin at the moment.
- Uninstall the previous version of pluin.
- Install the new version of plugin in the folder with latest version number.
- At the end of installing, restart browsers that is closed previously, and navigate to the URL you want.
By the way, just as Georg mentioned, you don't need to restart Chrome and Firefox after checking the version of the plugin, which means you have the routine to upgrade plugin and use the new one immediately.
However, you have to restart IE, as when you get the version of an activex control, you have to instantiate it, which makes the plugin loaded first.
Right now, it work well and as expected.