Which conditions are checked by Petrel in the plug-in manager to see if a plug-in is already installed?

201 Views Asked by At

I created two different plug-ins to load into the plug-in manager in Petrel 2018. They are coming from the same "code base" even if they are in two different solutions.

So I have two different PIP with different : name, version and all the categories you can find in the plugin.xml.

My problem is that when I load both of them, Petrel (2018) is automatically uninstalling/disabling the first one.

Then, my question is, how does Petrel find that plug-ins are related and that it needs to remove one to install the other one ? This would allow me to change one of this two plu-ins to be able to have them at the same time in Petrel.

Thank you in advance !

Victor

3

There are 3 best solutions below

0
Web On

I would check to make sure that your plug-ins are registered with Petrel correctly by checking the PluginManagerSettings.xml. Verify that the PluginId property is different between both plugins.

I suspect that the issue is with the Slb.Ocean.Core.IModule. Are you reusing the same module?

0
Vic c's On

Thank you for your answer !

My PluginId properties are differents in PluginManagerSettings.xml but you are right this probably comes from IModule. What should I put in Initialize() method to be sure that I create a new one when I generate a PIP ?

Thank you again !

Victor

0
Francisco Xavier Vera Carrión On

You are doing well, I think the problem is the modules load. You can attach VS before to open the project and debug the flow.

Put breakpoints in

Initialize()
Integrate()
WorkspaceOpened()

Also, if you are using canned workflows take in account that they "reopen" the project, so take care the methods that load the persistence.

I suppose you are generating 2 .pip, if not you only will have 1 plugin.