Using registry free COM

Add-in Express™ Support Service
That's what is more important than anything else

Using registry free COM
 
MW23




Posts: 71
Joined: 2007-01-11
Hi,

I have an Outlook C#/ADX addin and would like to use registry free COM for a COM dll (MyCustomDLL.dll).

For an application I can use a manifest file like below.
How do I add the necessary entries to the adxloader.dll.manifest file?
Seems not to work if I just add the "file" entry within the "configuration" tag of the adxloader.dll.manifest file (getting an exception while ADX is starting the addin).

Thanks!



<?xml version="1.0" encoding="utf-8"?>
<assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1
assembly.adaptive.xsd" manifestVersion="1.0"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity name="Application.exe" version="1.0.0.0" type="win32" />

<file name="MyCustomDLL.dll">
<comClass clsid="..." threadingModel="Apartment" progid="..." />
</file>

</assembly>

Posted 17 Jan, 2008 08:23:33 Top
Sergey Grischenko


Add-in Express team


Posts: 7230
Joined: 2004-07-05
Hi Martin.

The adxloader.dll.manifest file is not designed to use it in this way.
What is the goal of using the schema above for Add-in Express based add-ins?
Posted 17 Jan, 2008 10:15:57 Top
MW23




Posts: 71
Joined: 2007-01-11
Hello Sergey,

I'm using Redemption and would like to minimize possible installation problems on the customer site, including the com registration process for the Redemption dll on the addins installation.

If it is not possible to use the adxloader.dll.manifest: is there another way?
Can I manually load and register the dll within the addins startup?

If I would use ClickOnce, I would have to create an dependentAssembly entry for the redemption.dll and use ComRegisterFunction, if it is not possible to use registry free com, right?

Thanks!
Posted 21 Jan, 2008 03:36:50 Top
Sergey Grischenko


Add-in Express team


Posts: 7230
Joined: 2004-07-05
Hi Martin.

Please try to use the ClickOnce Module ('Add New Item' wizard) to develop the custom workflow for ClickOnce based installers.
There is the OnClickOnceAction event in the ClickOnce Module. You can use it to add/remove registry entries to the HKEY_CURRENT_USER key via the code. You can also run other applications (.exe) in that event.
Please note, you can't register any COM objects in the HKEY_CLASSES_ROOT if you install the add-in via ClickOnce. It is possible to do in the 'HKEY_CURRENT_USER\Software\Classes' key only.

Posted 21 Jan, 2008 07:30:07 Top