Prev Next

Deploy Add-Ins

Deploy Add-Ins to Users' Sites

Step

Action

See also

1

Add the Add-In DLL file to an appropriate directory on the user's computer; that is:

     C:\Program Files\(new dir)

2

Register the DLL as appropriate to your platform:

  • If compiled as a native Win32 DDL, such as VB or C++, register the DDL using the regsvr32 command from the command prompt
          regsvr32 "C:\Program Files\MyCompany\EAAddin\EAAddin.dll"
  • If compiled as a .NET DLL, such as C# or VB.NET, register the DLL using the RegAsm command from the command prompt
         C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe
         "C:\Program Files\MyCompany\EAAddin\EAAddin.dll" /codebase

3

Place a new entry into the registry using the registry editor (run regedit) so that Enterprise Architect recognizes the presence of your Add-In.

4

Add a new key 'EAAddIns' under one of these locations:

  • For the current user only
         -  On Enterprise Architect 32 bit
                 [HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins]
         -  On  Enterprise Architect 64 bit
                 [HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins64]
  • For multiple users on a machine
         -  On Enterprise Architect 32 bit
                 [HKEY_LOCAL_MACHINE\Software\Sparx Systems\EAAddins]
         -  On Enterprise Architect 64 bit
                 [HKEY_LOCAL_MACHINE\Software\Sparx Systems\EAAddins64]

    Registry key for Sparx Systems Enterprise Architect add-ins.

Note: the Enterprise Architect 32 and 64 bit editions will only attempt to load Add-Ins under the corresponding key - EAAddIns or EAAddIns64, respectively.

5

Add a new key under this key with the project name.

Adding a new add-in key to the registry

(ProjectName) is not necessarily the name of your DLL, but the name of the Project; in Visual Basic, this is the value for the property Name corresponding to the project file.

6

Specify the default value by modifying the default value of the key.

Modifying a Registry Key Value

7

Enter the value of the key by typing in the (project name).(class name), such as:

      EaRequirements.Requirements

where EaRequirements is the project name, as shown in this example:

Adding a registry key value