Book a Demo

Author Topic: Copying a Dll for use on another Computer  (Read 6152 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Copying a Dll for use on another Computer
« on: February 28, 2016, 11:36:32 pm »
Hi,

I have places the NewAddIn dll and exported the registry of my current EAAddin setup for the 2nd computer use.
Can someone provide the full necessary steps that are needed in order to install the dll on the 2nd computer?

Thanks.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copying a Dll for use on another Computer
« Reply #1 on: February 29, 2016, 03:09:07 am »
\WINDOWS\system32\regsvr32.exe /i your.dll

or what are you after?

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Copying a Dll for use on another Computer
« Reply #2 on: February 29, 2016, 03:56:12 am »
I want to run my NewAddIn on another computer.
Is that all you need to do?
Place is in the registry with path to the dll...


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copying a Dll for use on another Computer
« Reply #4 on: February 29, 2016, 07:18:53 am »
I want to run my NewAddIn on another computer.
Is that all you need to do?
Place is in the registry with path to the dll...
Yes. If your add-in works and the other machine has EA installed it will run after registering it this way.

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Copying a Dll for use on another Computer
« Reply #5 on: February 29, 2016, 07:46:48 am »
I follow Geert  instructions first:
1. Copied the dll, pdb and tlb files from Visual Studio bin\debug directory to a specific location on the 2nd computer
2. Run regasm MyAddin.dll /codebase from that specified location
3. Created a .reg file from 1st computer location, and run it on the 2nd computer. double clicked and it put it in the registry of the 2nd computer.

I saw that the new addin appeared on the 2nd computer with an error:
Error - missing (0x800401F3).
Reading about it in google said that registry went wrong (Invalid class string)

Since the dll is working ok on the 1st computer, any ideas what went wrong with this procedure?

thanks,
tzafrir

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Copying a Dll for use on another Computer
« Reply #6 on: February 29, 2016, 02:31:55 pm »
There's a tool from Adrian that might help you with that.
http://community.sparxsystems.com/community-resources/772-ea-installation-inspector

Geert

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Copying a Dll for use on another Computer
« Reply #7 on: March 03, 2016, 06:01:40 pm »
Thanks a lot Geert.
I was able to create an msi file with your detailed guide.

Tzafrir