Job Lot

Single Setup project for deploying multiple Addins and Templates.

I need to deploy Word and Excel Addins and Templates on client computer. How can create a single Setup project for that Can I add the Setup projects that gets created when addin or template project is created into a Single custom Steup project

Thanks




Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Ji Zhou ¨C MSFT

Hi JL,

I did not have a test, but I am positive about that it could be done. If you put all the projects¡¯ primary outuput in one Setup project, the setup file should install all the Add ins. And then you should grant full trust to each assembly separately to let all the Add ins work.

Thanks

Ji






Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Job Lot

Hi Ji Zhou

I managed to create the install. Now how would I grant FullTrust to the assemblies that get installed as part of the setup For testing I created a .cmd file included caspol statement for every assembly that get's installed and executed the .cmd file manually after the install. How can I automate this in installer or is there any other way of automating it

Thanks






Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Peter Jausovec - MSFT

Hi,

You have to add some code which will grant FullTrust to the assemblies that get installed. Please, check this article which describes how to add that piece of code and how to add a custom action to your installer.






Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Ji Zhou ¨C MSFT

Hi JL

Yes, you can refer the article given in Peter¡¯s link. That is a very detailed article, which provides a sample let you use custom action to set the assembly to be full trusted. And since you are installing more than one Add-ins in one setup project, you should copy and modify the SetSecurity project for each assembly.

Thanks

Ji






Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Job Lot

SetSecurity project is mind boggling . How does the installer knows which assembly is being installed What changes I need to make to associate the SetSecurity with various add-in projects

Thanks






Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Job Lot

I figured it out. Thanks






Re: Visual Studio Tools for Office Single Setup project for deploying multiple Addins and Templates

Asambhav

Hi,
can you post the steps to Create a single Project for deploying multiple addins


thanks
Jas