Question Emanuel Lazar · Aug 28, 2018

Activate Wizard by-pass - how to do it programmatic way ?

Activate Wizard by-pass

Cache-2016-1.2

1. how to bypass the Activate wizard ?, and run directly the Activate on: .NET x64 COM Assembly (.dll,.tlb)

with object script , something like :

D Activate^%CacheActivate("MyAssembly.tlb")

the MyAssembly.tlb , is ofcourse , a visible Element  in activate Wizard table list

2. activate Wizard table list, sometimes throws an error #6101 ?

regards,

Emanuel

Comments

Evgeny Shvarov · Sep 4, 2018

Hi, Emanuel!

You put this post into Community Feedback group, so nobody saw it. Changed to Caché, hope guys will answer you now.

0
Eduard Lebedyuk · Sep 4, 2018

You can use methods of %Activate.TLEnumerator class to load libraries programmatically.

0
Emanuel Lazar  Sep 5, 2018 to Emanuel Lazar

Hi Eduard,

at last I found, and got same results as from Activate Wizard, the two lines of code , that you should advice :

set Location="c:\myPath\Mylib.tlb"

set Package = "Activate" ; (if you want the package under activate)

Set o = ##class(%Activate.TLEnumerator).%New()

do o.LoadTypeLibrary(Location, Package)

0
Emanuel Lazar · Sep 4, 2018

hello Eduard,

thanks for info,

I am not familier with  %Activate.TLEnumerator, I looked in documentation, with no result,

can you give code exmaple (step-by-step), or link to code, how I set "MyAssembly.tlb" to %activate list ?, so after setting I view the list and see it in the %activate list

0