none
How to clean WordAddIn cleanly RRS feed

  • Question

  • I have a VS2010/Office2007 WordAddIn project CeecWordAddIn.sln.

    First the solution is in directory CeecWordAddIn. Every thing seems fine.

    For some reason, I  rename the directory as CeecWordAddInBad, and do some new work, every thing is still OK.

    Then,

    1. I make a copy of directory CeecWordAddInBad with name CeecWordAddIn.

    2. In CeecWordAddIn\CeecWordAddIn.sln, press F5, the WordAddIn do not work, in fact the custom ribbon tab do not show up. Even I  build>clean CeecWordAddIn followed by rebuild, still do not work.

    3. In CeecWordAddInBad\CeecWordAddIn.sln, press F5, the custom ribbon tab do show up correctly.

    After that,

    1. I logout and login with another account.

    2. In CeecWordAddIn\CeecWordAddIn.sln, build>clean CeecWordAddIn followed by rebuild, the custom ribbon tab do show up correctly.

     

    So I guess this is a WordAddIn clean up issue, can some one help me?

    I can still do my work in directory CeecWordAddInBad, but, I feel uncomfortable with the name CeecWordAddInBad.

     

    HJY


    Thursday, March 31, 2011 12:52 PM

Answers

  • Ok. The last thing you could try is to go into the registry and search for the name of your old addin.
    Revove all entries from registry the has the old name (CLSID) and point to the old location.

    If that doesn't help, then rename the AddIn back and create a new Solution with the new name and copy over the code files with your custom code.

    Hope that helps,

    Greets - Helmut.


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 6, 2011 1:06 PM
    Answerer

All replies

  • Hi hjyanghj,

    Thanks for posting in the MSDN Forum.

    According to your description, I would recommend you follow these steps:

    1.      Open a word document.

    2.      Click the Office button on the left top of Word.

    3.      Click “Word Options” button on the bottom of the menu.

    4.      Click the “add-ins” tab.

    5.      Click “Go…” button on the bottom of the backstage.

    6.      Remove the “CeecWordAddIn” from the list.

    7.      Rebuild you solution.

    I hope it can help you.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, April 4, 2011 3:54 AM
    Moderator
  • Tom,

     

    After following your instructions, it did not work.

    Now in Office button>Word Options>add-ins>Go add-in dialog, there is an item "CeecWordAddIn", but it is unchecked.

    I try to check it, the message in the bottom of dialog is "Load behavior: Unloaded"(this message is translated from traditional chinese, so may be not exactly the correct term in english).

    After check it, I click the button OK to close the dialog.

    Again in Office button>Word Options>add-ins>Go add-in dialog, the item "CeecWordAddIn" is still unchecked.

    Best Regards

    HJY



    HJY ---try to be happy in any time---
    Wednesday, April 6, 2011 2:14 AM
  • Did you right click your solution and click 'Clean'?
    Wednesday, April 6, 2011 2:42 AM
  • Hi,

    in VisualStudio, rightClick your Project and Unload it.

    Then Edit the ProjectFile.

    Check if the Namespaces and the AssemblyName are correct related to your Project.
    Also I would openb the RegistryEditor and remove the SubKey for the old ProjectName under HKCU\Software\Microsoft Office\Word\AddIns

    Then Clean, recompile and start Debug.

    Hope that helps - Greets - Helmut

     


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.
    Wednesday, April 6, 2011 6:10 AM
    Answerer
  • Kit C,

    I DO, but not work.


    HJY ---try to be happy in any time---
    Wednesday, April 6, 2011 12:36 PM
  • Helmut Obertanner,

     

    I follow your instructions.

    Namespaces and the AssemblyName are correct.

    It do not work.

    Thanks


    HJY ---try to be happy in any time---
    Wednesday, April 6, 2011 12:38 PM
  • Ok. The last thing you could try is to go into the registry and search for the name of your old addin.
    Revove all entries from registry the has the old name (CLSID) and point to the old location.

    If that doesn't help, then rename the AddIn back and create a new Solution with the new name and copy over the code files with your custom code.

    Hope that helps,

    Greets - Helmut.


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 6, 2011 1:06 PM
    Answerer
  • Helmut,

    Thanks for your suggestion.

    Even I remove all the registry about "CeecWordAddInBad", it still do NOT work.

    I don't like "rename the AddIn back and create a new Solution with the new name and copy over the code files with your custom code."

    Thanks any way.

    Best Regards


    HJY ---try to be happy in any time---
    Wednesday, April 6, 2011 5:09 PM