Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on September 27, 2012, 09:09:07 pm

Title: HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins
Post by: zalbina on September 27, 2012, 09:09:07 pm
Hello,

I've created my own Add In and would like to register it, but I did not found the directory HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins. The actually EAAddins does not exist, rest of it on the right place.

I'm waiting for your responses and help.
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: zalbina on September 27, 2012, 09:36:30 pm
I've got the idea and created EAAddin key by myself, but when I'm trying to register my C# dll within VS 10, I've got the message: "access denied. Please, make sure you're running the application as administrator."

What should I check?
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: zalbina on September 27, 2012, 10:06:16 pm
OK. I've solved this problem also, but the EA does not see my Add-In any way :(. Right click does not bring the Add-In sub menu.
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: bctm on September 28, 2012, 12:34:00 am
Do you see your AddIn unter "Add-Ins -> Manage Add-Ins" (might have another name in EA9)?

Do you start it via debugger out of Visual Studio?
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: zalbina on October 11, 2012, 01:56:04 am
Yes, I do see it, but the status of it is ""Error - Missing" :(.
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: qwerty on October 11, 2012, 11:28:00 pm
That means you made some error in your add-in. And EA lets you guess what. My advice: put in trace messages and log them to a file. Good luck!

q.
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: zalbina on October 12, 2012, 01:05:54 am
How can I do it? I'm pretty new in such a things :(.
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: qwerty on October 12, 2012, 09:55:28 pm
Ask in a forum about the language you are using.

q.
Title: Re: HKEY_CURRENT_USER\Software\Sparx Systems\EAAdd
Post by: Gary on November 24, 2012, 11:02:04 pm
We had this issue recently. When you are prompted to input your admin password you switch users. So you are a different HKCurrentUser. then when you go back to your previous login the addin will not be recognised.

So what you have to do is login as the admin and then look in the HKUsers area and look through all of the entries that start something like HKEY_USERS\S-1-5-18, HKEY_USERS\S-1-5-19 etc. and find the ones with a key entry silmilar to Software\Sparx Systems\EAAddins and add the entry in those. One of them will be associated with your normal login.

I believe this is because when you login the profile in HKEY_USers that corresponds to you is copied into HKCurrentUser.
Hope this helps.