Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Johann Schweigl 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
-
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.
-
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
-
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.
-
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
-
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
-
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.