Author Topic: Addins on EA v16 beta 64 bit  (Read 24665 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 967
  • Karma: +42/-1
    • View Profile
Re: Addins on EA v16 beta 64 bit
« Reply #15 on: November 09, 2021, 07:27:56 am »
Hello Geert,

I've updated GITHub (https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoReverse/releases/tag/V3.20).

The WIX Setup projects:
- HoReverse_Setup
- HoReverse_SetupX64

In the accompanying files, you find the two *.msi files (x86+x64). Keep in mind the x64 Addin is only to show how it works.

If you have any questions or advice keep in touch.

Good luck and best regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13226
  • Karma: +550/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Addins on EA v16 beta 64 bit
« Reply #16 on: November 09, 2021, 04:11:55 pm »
Thanks Helmut

Geert

marc.zeller

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Addins on EA v16 beta 64 bit
« Reply #17 on: June 15, 2022, 09:41:46 pm »
Dear all,

I try to migrate my currently working Add-in to EA v16. But although I build the Add-in for x64, I still get as status "Error - Missing (0x80040154)". Is there anything else which must be updated from 32- to 64-bit?

Regards,
Marc

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13226
  • Karma: +550/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Addins on EA v16 beta 64 bit
« Reply #18 on: June 15, 2022, 09:48:33 pm »
Marc,

Your dll should be registered for COM interop for both 32 as 64 bit.
If you use VS 2022 it will automatically be registered for 64 bit (if you check the Register for COM interop checkbox)
If you also want to register for 32 bit you need to add a command to the post build event

"%windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe" "$(TargetPath)" /codebase /tlb

Geert

marc.zeller

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Addins on EA v16 beta 64 bit
« Reply #19 on: June 16, 2022, 04:31:00 am »
Hi Geert,

thank you. This solves the issue. Can this additional step also be included in a WiX based msi installer?

Regards,
Marc

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8052
  • Karma: +118/-20
    • View Profile
Re: Addins on EA v16 beta 64 bit
« Reply #20 on: June 16, 2022, 11:35:13 am »
https://stackoverflow.com/questions/567925/typelib-generation-and-installation-with-wix

tldr - Run heat on your generated tlb file and include the resulting file in your installer.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13226
  • Karma: +550/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Addins on EA v16 beta 64 bit
« Reply #21 on: June 16, 2022, 01:56:51 pm »
You need some other bits and pieces for Wix.
I'm writing an article on that, but in the meantime you can look at what I'm doing for EA Toolpack:

https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/tree/master/EAToolPack_Setup

Geert

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Addins on EA v16 beta 64 bit
« Reply #22 on: July 07, 2022, 08:22:18 pm »
@Sparx - is there a plan for you to create a 'Migrating your 32-bit addins to 64-bit' guide? Given that I suspect we all use Visual Studio, this shouldn't be too hard. I think this would be Sparx' best interests, as you probably want us all to move over to 64 bit, if that's the future.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

DeBAAT

  • EA User
  • **
  • Posts: 60
  • Karma: +2/-0
    • View Profile
Re: Addins on EA v16 beta 64 bit
« Reply #23 on: July 10, 2022, 01:57:30 am »
A very good suggestion Ian.
Especially since I still have issues getting eaUtils working  :(