Community
Showing results for 
Search instead for 
Do you mean 
Reply

ACT Add-ons

JW
Copper Contributor
Posts: 78
Country: USA

ACT Add-ons

How can I see what add-ons are installed w/ACT? 
Nickel Super Contributor
Posts: 441
Country: UK

Re: ACT Add-ons

Take a look in the plugins folder for ACT! (by default c:\program files\act\act for windows\plugins).  Is this Jeremy Wesley or someone else?

 

Tom

JW
Copper Contributor
Posts: 78
Country: USA

Re: ACT Add-ons

Someone else.  Thanks though.
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: ACT Add-ons

Try something like this.

 

'-------------------------------------------------------------- ' Loop thru all the DLL in the plugins folder ' and try to load them using reflection '-------------------------------------------------------------- Dim di As New System.IO.DirectoryInfo("C:\Program Files\ACT\Act for Windows\Plugins\")

 

For Each fi As System.IO.FileInfo In di.GetFiles("*.dll") Try '-------------------------------------------------------------- ' Get all the types from the assembly '-------------------------------------------------------------- For Each Type As Type In Reflection.Assembly.LoadFrom(fi.FullName).GetTypes()

'-------------------------------------------------------------- ' check if the ACT iPlugin interface is implemented '-------------------------------------------------------------- If Not (Type.GetInterface("Act.UI.IPlugin") Is Nothing) Then

'-------------------------------------------------------------- ' Its a plugin! '-------------------------------------------------------------- MessageBox.Show(fi.FullName + " is an ACT plugin that supports iPlugin interface.")

End If

Next Catch ex As Exception '------------------------------------- ' Some assemblies may fail to load. ' Your results may vary. '------------------------------------- End Try Next

 

  Hope this helps. It won't tell you if the plugin as actually loaded since ACT! can bypass it using the "depenedentDLL.XML" black hole file.

-- Jim Durkin