Book a Demo

Author Topic: Manage Add-Ins status?  (Read 4127 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Manage Add-Ins status?
« on: May 14, 2010, 01:56:16 pm »
I've got a few Add-Ins I'm currently developing and I enable/disable them as needed for testing etc.

In the Add-Ins|Manage Add-Ins... dialog, the one's I've enabled and are loaded, the status is correctly shown as Enabled.

However, for the ones that are disabled, the status shows Error or Disabled apparently at random.  In one invocation it shows Disabled, the next (where I haven't changed anything with that Add-In it shows Error) :-?

Can anybody enlighten me as to what's going on?

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Manage Add-Ins status?
« Reply #1 on: May 14, 2010, 03:22:10 pm »
Error - Missing usually means that there is an entry in HKCU\Software\Sparx Systems\EAAddins for the addin, however the path to the component library is invalid.

If you're building COM dlls in Visual Studio then it usually registers them on your behalf on a successful build. If you have a debug/release build with the same name the last one built (viz registered by Visual Studio) will be used.

You can check what the current path is for the component by:

1. In regedit, navigate to HKCU\Software\Sparx Systems\EAAddins\YourAddin
2. Note the data of the default value under this key (the COM component name eg YourAddin.Main)
3. Perform a search for the name found in step 2. You should end up somewhere in HKLM\Software\Classes\CLSID\{component-guid}. If it does not appear under HKLM it may be a permissions problem caused by a mixture of Vista/.NET
4. Check the InprocServer32 subkey of the key found in step 3. If it's a .Net assembly it should have a CodeBase value that points to the addin's DLL. If this is invalid then you'll need to run regasm on the correct DLL.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Manage Add-Ins status?
« Reply #2 on: May 14, 2010, 05:28:43 pm »
Hi Michael,

I wasn't clear enough - the status is Error (just one word) - not Error - Missing.

Error - Missing is pretty self-explanatory and does come up when appropriate.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!