Hi,
I am using Visual Studio 2005 Tools for Office.
I am writing a COM add-in for Office 2002.
I have downloaded and installed the Office 2002 PIAs successfully and can
get everything to work fine.
I would like to place the Extensibility.dll file into the GAC (and register
it) when the addin is redistributed.
At the moment I am putting this file into the Application folder.
Does anyone know how I can register this in the GAC ?
many thanks
Russell
Matthew Etter - 20 Oct 2006 14:32 GMT
What are you using for your installer? We use Windows Installer (via the Wix
toolkit), an we use the RegistrySearch table to look for the user's
installation of the .NET framework SDK, and call out to gacutil.exe. Of
course, we can get away with that because we're installing an extension to
VS2005.
In short we look at the InstallationFolder registry value under the
HKLM\SOFTWARE\Microsoft\Microsoft SDKs\.NETFramework\v2.0 registry key.
gacutil.exe should be under the \bin directory.
For installations of assemblies on systems that do not have Visual
Studio/gacutil available, you can use some of the tables in Windows
Installer directly. (Look at the reference for the MsiAssemblyName table)
--Matthew
> Hi,
>
[quoted text clipped - 11 lines]
> many thanks
> Russell
Russell - 20 Oct 2006 16:57 GMT
Hi Matthew,
Thanks for the reply.
I am using a Setup project which generates an MSI file.
I have been able to download the registry files for the other Office XP
PIAs.
I just need to the registry file to register the Extensibility.dll once I
put it in the GAC
many thanks
Russell
> What are you using for your installer? We use Windows Installer (via the
> Wix toolkit), an we use the RegistrySearch table to look for the user's
[quoted text clipped - 27 lines]
>> many thanks
>> Russell
Mythran - 25 Oct 2006 16:45 GMT
> Hi,
>
[quoted text clipped - 11 lines]
> many thanks
> Russell
My department uses InnoSetup to create our setup packages for web controls
and libraries. We wrote our own in-house assembly installer (installs into
GAC, COM, etc based on command-line switches)...
Anywho, for future reference, look into
System.EnterpriseServices.Internal.Publish for methods on how to install
assemblies into different areas of your OS (including those mentioned
above).
Mythran