Re: Unable to run Outlook 2000 com addin built via .NET/VS 2003
- From: "www.VoiceInformation.com" <AMichalik@xxxxxxxxx>
- Date: 16 Jun 2005 11:44:50 -0700
Gary -
I've been working on a C# Outlook PlugIn for the past (too long to
say!).
It's installing and working on W2K and XP, Outlook 2000 - 2003. I had a
similiar problem, and found I had to modify the Install to include the
call to base.Install(stateSaver);
You can also download and install the "main function" source code for
the PlugIn from www.TekGuard.com.
public class AppInstaller : Installer
{
private System.ComponentModel.IContainer components;
public override void Install(System.Collections.IDictionary
stateSaver)
{
base.Install(stateSaver);
RegistrationServices regsrv = new RegistrationServices();
if (!regsrv.RegisterAssembly(this.GetType().Assembly,
AssemblyRegistrationFlags.SetCodeBase))
{
throw new InstallException("Failed To Register for COM");
}
}
public override void Uninstall(System.Collections.IDictionary
savedState)
{
base.Uninstall(savedState);
RegistrationServices regsrv = new RegistrationServices();
if (!regsrv.UnregisterAssembly(this.GetType().Assembly))
{
throw new InstallException("Failed To Unregister for COM");
}
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
Posted by www.AndrewM.com [wwwAndrewMCom Post# 20050616]
Software Entrepreneurs, ISV's, Developers - Sell & Support your
programs with an 800# virtual auto-attendant:
www.VoiceInfo.com - <a href="http://www.VoiceInfo.com">
Virtual Office, Automated Phone Assistant, Web Access </a><br>
Developers, ISP's, Small Business Owners - Need a starting point for an
anti-spam email server, Outlook client, WebMail?
www.TekGuard.com - <a href="http://www.TekGuard.com">
Free Mail Server, Outlook PlugIn, WebMail, C# Source Code </a>
.
- References:
- Unable to run Outlook 2000 com addin built via .NET/VS 2003
- From: Gary Bentley
- Unable to run Outlook 2000 com addin built via .NET/VS 2003
- Prev by Date: Re: Multifile Assembly with Compiled DLL?
- Next by Date: How to get MAC address of windows client.
- Previous by thread: Unable to run Outlook 2000 com addin built via .NET/VS 2003
- Next by thread: Error reading Value of a Custom PerformanceCounter
- Index(es):
Relevant Pages
|