Author Topic: Registry key question (EAAddins)  (Read 6944 times)

Johann Schweigl

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Registry key question (EAAddins)
« on: October 09, 2011, 04:31:50 am »
Dear all,

I'm currently learning to build C# addins.

The EA User Guide says: "Add a new key value EAAddIns under the location: HKEY_CURRENT_USER\Software\Sparx Systems for single users"

But all I have is HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA. Is this the place to add EAAddins?

I'm using EA 9.1 build 910 on Windows 7 Ultimate x64.

Best regards
Johann

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Registry key question (EAAddins)
« Reply #1 on: October 09, 2011, 04:59:10 am »
Hi Johann,

i'm also very new to this matter and got my information about the addin at http://geertbellekens.wordpress.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-addin-in-10-minutes/

This helped a lot for the startup.

Have fun.
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Johann Schweigl

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Registry key question (EAAddins)
« Reply #2 on: October 09, 2011, 05:07:46 am »
Hello Sethor,

I'm using Geert's excellent tutorial right now. I'm just not sure if I should add the EAAddins key underneath HKEY_CURRENT_USER\Software\Sparx Systems as described, or HKEY_CURRENT_USER\Software\Sparx Systems\EA400.

In all the examples I saw, EAAddins is at the same level as the EA key, including on Geert's tutorial and the EA Users Guide. Google does not return anything about "HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EAAddins".

Best regards
Johann

Emgie

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Registry key question (EAAddins)
« Reply #3 on: October 10, 2011, 01:29:55 am »
I have EA 9.0.900 and Windows 7 x64.
I use this registry entry:

[HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins\MyPlugin]
@="MyPlugin.Main"

...and it works. Though I also have EA400 dir.
Some other plugins (Corba, Eclipse) also use "EAAddins" location, so I presume this is the right location.

Johann Schweigl

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Registry key question (EAAddins)
« Reply #4 on: October 10, 2011, 02:10:30 am »
Thanks a lot - success! I tried before, but I had an yet unnoticed typo in the key name. Now after your confirmation that it should work this way I double-checked and found the error.

Best regards
Johann

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Registry key question (EAAddins)
« Reply #5 on: October 10, 2011, 06:08:22 pm »
Just some additional information. Since version 9.0 you can also add the registry key's to [HKEY_LOCAL_MACHINE\SOFTWARE\Sparx Systems\EAAddins] which can be useful when you are distributing your addin in an enterprise environment.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Registry key question (EAAddins)
« Reply #6 on: October 11, 2011, 08:09:24 am »
To add to that additional information. There is a "gotcha" on 64 bit versions of Windows. Instead of [HKEY_LOCAL_MACHINE\SOFTWARE\Sparx Systems\EAAddins] you'll need to use [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sparx Systems\EAAddins].

That's the key that Windows gives EA when it queries for the first key.
« Last Edit: October 11, 2011, 08:11:20 am by simonm »