none
ClickOnce Deployment Problem RRS feed

  • Question

  • I've been trying to create deployment for a VSTO Word solution. I have two projects: an add-in and a template. I opt for ClickOnce as auto-updates will be implemented later on.

    I created separate ClickOnce installers for both the add-in and template. But the drawback with that one is the add-in must know where the template will be installed since the two projects will be working together closely. I looked around MSDN and saw the article in deploying multiple office solutions in a single ClickOnce deployment. See below for links:

    http://msdn.microsoft.com/en-us/library/dd465290.aspx

    http://blogs.msdn.com/b/vsto/archive/2009/05/20/deploying-multiple-office-solutions-in-a-single-installer.aspx

    I followed through the steps and tested the installation. The two projects are installed under one location but the template is not there. I modified the installer project to include the template and now it is being copied to the directory upon installation. When I open the template through code from the add-in, it produces an error and says it cannot find the VSTO of the template. I checked the installation folder and there are no VSTOs there.

    I tried publishing the Template project as a stand-alone. The installation is okay and when I open the template, it is able to load the VSTO properly from the installation folder ClickOnce used.

    I'm confused as to what I'm doing wrong. At the same time, is there any other difference I should know when putting two Office projects under one ClickOnce deployment, particularly Template type projects. I've read somewhere that ClickOnce does not go well with Template project types.

    Thanks!


    • Edited by Nathan Hemlock Wednesday, September 21, 2011 11:44 AM added last few sentences for clarification
    Wednesday, September 21, 2011 11:41 AM

All replies

  • Hi Nathan,

     

    Thanks for posting in the MSDN Forum.

     

    Would you please clarify some of the questions:

     

    1.         Visual Studio Version.

    2.         Office Version.

     

    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.

    Friday, September 23, 2011 6:38 AM
    Moderator
  • Hi Tom,

     

    Thanks for the reply. 

    1. Visual Studio 2010

    2. The project is aimed for Office 2007. But I'm testing it both in 2007 and 2010.

     

    Regards,

    Nathan

    Monday, September 26, 2011 8:04 AM
  • Hi Nathan,

     

    Would you please show me your *.dll.manifest files for further research?

     

    I can reproduce the steps following the link your mentioned. It works fine on my side.

     

    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.

    Wednesday, September 28, 2011 10:41 AM
    Moderator
  • Hi Tom,

     

    You can get the manifests here: http://www.mediafire.com/?794ve9pc30dk4pk

    There are three manifests, for the add-in project, template project and the installer project. I hope they help.

     

    Regards,

    Nathan

    Tuesday, October 4, 2011 7:53 AM
  • Hi Nathan,

    It seems not need in the Installer.mainfest

    Would you please omit it and try again?

    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.

    Friday, October 7, 2011 7:30 AM
    Moderator
  • Hi Tom,

     

    Sorry it took so long to reply. I've been busy with other stuff. Anyway, I tried the steps once more from the links above and it seemed to copy the template now. I have other problems with ClickOnce though.

     

    Friday, November 11, 2011 6:37 AM