Unable to uninstall the addin

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

Unable to uninstall the addin
 
srikanth g




Posts: 34
Joined: 2010-12-31
Hi Every one,
I have created a addin for MSWord.And i have created an installer for that addin.
when install the addin using MSI file its working fine.But when i am trying to uninstall the addin from Add/Remove programs its showing the error (Some times).Please help me to over come this project.But i am able to uninstall it from the Visulstudio(right clicking on the addin Setup project then uninstall).


Thanks In Advance
Srikanth G
Posted 13 Feb, 2011 23:25:01 Top
Eugene Astafiev


Guest


Hi Srikanth,

1. Are you able to reproduce the issue with a newly created add-in project?
2. What version and build number of Add-in Express do you use?
3. What OS do you use? Did you install the latest service packs for Office and OS?
Posted 14 Feb, 2011 06:22:43 Top
srikanth g




Posts: 34
Joined: 2010-12-31
Hi Eugene,
Thanks for your quick reply...
its solved already..
But i have another question for you..

As i told you i have created addin for msword application.But its registered into outlook also
when click on new in the compose window.

May i know whats wrong i did .

Thanks in advance.
Posted 15 Feb, 2011 04:28:40 Top
Eugene Astafiev


Guest


Hi Srikanth,

Do you use Word as an e-mail editor in Outlook?
Posted 15 Feb, 2011 08:16:54 Top
srikanth g




Posts: 34
Joined: 2010-12-31
Hi Eugene,
Now i have removed that.Now my addin is not registering into the outlook.
Thanks for your reply.
I have another one.
My new requirement is i need to add folders to the left panel of the outlook.Can you guide me how to start this.
Thanks in advance.

Srikanth G
Posted 16 Feb, 2011 01:03:06 Top
Eugene Astafiev


Guest


Hi Srikanth,

It looks like you mean the navigation pane in Outlook. Am I right?

Anyway, you can add a folder using the Add function of the Folders class in the Outlook Object Model. Note that the Folder class provides you with the Folders property. For example:

Outlook.NameSpace ns = OutlookApp.GetNamespace("MAPI");
Outlook.MAPIFolder folderInbox = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
Outlook.Folders folders = folderInbox.Folders;
Outlook.MAPIFolder newFolder = folders.Add("Test"); 

// do some additional logic here and then release underlying COM objects

if (newFolder != null) Marshal.ReleaseComObject(newFolder);
if (folders != null) Marshal.ReleaseComObject(folders);
if (folderInbox != null) Marshal.ReleaseComObject(folderInbox);
if (ns != null) Marshal.ReleaseComObject(ns);


To get assistance with host applications?Â?Ð?é objects, their properties, and methods as well as help info, use the Object Browser. Go to the VBA environment (in the host application, choose menu Tools | Macro | Visual Basic Editor or just press {Alt+F11}), press {F2}, select the host application in the topmost combo and/or specify a search string in the search combo. Select a class/property/method and press {F1} to get the help topic that relates to the object.
Posted 16 Feb, 2011 10:44:05 Top
srikanth g




Posts: 34
Joined: 2010-12-31
Thanks Eugene,
yeah you are right adding folders to the navigation pane.
I added that code in AddinModule_AddinStartupComplete event..
but for folders object the Add method taking two parameter 1 is name of the folder as string and another is type as object..
can you please help me...

Thanks alot...

Srikanth G
Posted 16 Feb, 2011 23:59:37 Top
Eugene Astafiev


Guest


Hi Srikanth,

You can use any of the OlDefaultFolders constants (for example, the olFolderInbox one). Please find all the constants in the Object Browser of the host application.
Posted 17 Feb, 2011 06:49:19 Top