{"id":537,"date":"2016-01-17T10:56:55","date_gmt":"2016-01-17T10:56:55","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=537"},"modified":"2024-04-11T12:07:42","modified_gmt":"2024-04-11T12:07:42","slug":"deploy-multiple-office-solutions-in-a-single-setup","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/","title":{"rendered":"Deploy multiple Office Solutions in a single setup"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#How_to_deploy_multiple_Office_Solutions_in_a_single_setup\" title=\"How to deploy multiple Office Solutions in a single setup\">How to deploy multiple Office Solutions in a single setup<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_1_Create_a_sample_Word_Add-In_project_using_VS\" title=\"Step 1: Create a sample Word Add-In project using VS\">Step 1: Create a sample Word Add-In project using VS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_2_Add_Projects_to_the_Solution\" title=\"Step 2: Add Projects to the Solution\">Step 2: Add Projects to the Solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_3_Publish_project_one_at_a_time_to_the_common_folder\" title=\"Step 3: Publish project one at a time to the common folder\">Step 3: Publish project one at a time to the common folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_4_Modifying_the_application_manifest\" title=\"Step 4: Modifying the application manifest\">Step 4: Modifying the application manifest<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_5_Adding_the_Entrypoints\" title=\"Step 5: Adding the Entrypoints\">Step 5: Adding the Entrypoints<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_6_Adding_Assemblies\" title=\"Step 6: Adding Assemblies\">Step 6: Adding Assemblies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/deploy-multiple-office-solutions-in-a-single-setup\/#Step_7_Sign_manifests\" title=\"Step 7: Sign manifests\">Step 7: Sign manifests<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_deploy_multiple_Office_Solutions_in_a_single_setup\"><\/span>How to deploy multiple Office Solutions in a single setup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>After creation of all your MS-Office solutions, they can be configured to be deployed all at once. The steps below walk through how to configure one setup for all MS-Office solutions using a Click Once installer for the .NET Framework:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Create_a_sample_Word_Add-In_project_using_VS\"><\/span>Step 1: Create a sample Word Add-In project using VS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>(File-&gt;New Project-&gt;Office\/SharePoint;Office Add-ins)<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Add_Projects_to_the_Solution\"><\/span>Step 2: Add Projects to the Solution<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Add all the projects into this solution where the sample add-in is created.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Publish_project_one_at_a_time_to_the_common_folder\"><\/span>Step 3: Publish project one at a time to the common folder<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>(For Ex. \u2018C:\/Publish\/\u2019). Publish the sample add-in project last, when you have finished publishing the other projects . (Note: Ensure that publish settings are set correctly. Add the necessary prerequisites to each project, select install prerequisites as the same location as my application. By selecting this one must ensure that all prerequisites are at this location \u2018C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1A\\Bootstrapper\\Packages\u2019) in the appropriate folder.<\/p>\n<p>Screen-Shot: Publishing to common place folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-549\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn1-300x204-1.webp\" alt=\"img\" width=\"300\" height=\"204\" \/>\\<\/p>\n<p>Screen-Shot: Here we have taken \u2018SetupForAddin\u2019 folder (as the common location) to publish all add-in projects:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-550\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn2-300x187-1.webp\" alt=\"img\" width=\"300\" height=\"187\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Modifying_the_application_manifest\"><\/span>Step 4: Modifying the application manifest<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>From the c:\\publish\\Application Files folder, move the contents of the {EXCEL_PROJECT}_1_0_0_0 and {WORD_PROJECT}_1_0_0_0 or {PPT_PROJECT}_1_0_0_0 directories to the {SAMPLE_PROJECT}_1_0_0_0 directory.<\/li>\n<li>Open the {SAMPLE_PROJECT}.dll.manifest, {WORD_PROJECT}.dll.manifest, and {EXCEL_PROJECT}.dll.manifest, {PPT_PROJECT}.dll.manifest files in an XML editor.<\/li>\n<li>From the {WORD_PROJECT}.dll.manifest file, copy all install and file dependencies including {WORD_PROJECT}.dll. That is, copy all dependencies that start with<\/li>\n<li>In the {SAMPLE_PROJECT}.dll.manifest file, paste the {WORD_PROJECT}.dll install dependency at the end of the dependency section.<\/li>\n<li>Repeat the previous #3 and #4\u00a0for {EXCEL_PROJECT} and {PPT_PROJECT}.<\/li>\n<\/ol>\n<p>Screen-shot: move files from the add-in projects to our last published sampled project directory. (Files to move from each project are \u2018.vsto\u2019, \u2018dll.deploy\u2019,\u2019dll.manifest\u2019):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-554\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn3-300x122-1.webp\" alt=\"img\" width=\"300\" height=\"122\" \/><\/p>\n<p>Screen-Shot: Copied all the element from all word, excel, PowerPoint add-in projects to sample projects {SAMPLE_PROJECT}.dll.manifest file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-557\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn4-300x209-1.webp\" alt=\"img\" width=\"300\" height=\"209\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Adding_the_Entrypoints\"><\/span>Step 5: Adding the Entrypoints<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>In the {SAMPLE_PROJECT}.dll.manifest file, remove the text between the and elements.<\/li>\n<li>From the {WORD_PROJECT}.dll.manifest file, copy the text between the and elements.<\/li>\n<li>In the {SAMPLE_PROJECT}.dll.manifest file, paste the code after the element.<\/li>\n<li>Add the id attribute to the element to differentiate this entrypoint from others.<\/li>\n<li>Repeat previous points #2, #3 and #4 for {EXCEL_PROJECT} and {PPT_PROJECT}.<\/li>\n<\/ol>\n<p>Screen-Shot: Copied all the element from all word, excel, PowerPoint add-in projects to sample projects {SAMPLE_PROJECT}.dll.manifest file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-560\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn5-300x213-1.webp\" alt=\"img\" width=\"300\" height=\"213\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_6_Adding_Assemblies\"><\/span>Step 6: Adding Assemblies<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To add the assemblies to the vstov4 namespace in the application manifest<\/p>\n<ol>\n<li>In the {SAMPLE_PROJECT}.dll.manifest file, remove any text between the and elements.<\/li>\n<li>In the {WORD_PROJECT}.dll.manifest file, copy the text between the and elements.<\/li>\n<li>In the {SAMPLE_PROJECT}.dll.manifest file, paste the code after the element.<\/li>\n<li>Add the id attribute to the element to differentiate this customization from others. This id is the same id that was added to the element in the previous step 5.<\/li>\n<\/ol>\n<p>Screen-Shot: Copied all the element from all word, excel, PowerPoint add-in projects to sample projects {SAMPLE_PROJECT}.dll.manifest file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-562\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn6-300x205-1.webp\" alt=\"img\" width=\"300\" height=\"205\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_7_Sign_manifests\"><\/span>Step 7: Sign manifests<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To re-sign the application and deployment manifests<\/p>\n<ol>\n<li>Copy the {SAMPLE_PROJECT}_TemporaryKey.pfx certificate file from the {SAMPLE_PROJECT} solution directory into the c:\\Publish\\Application Files\\{SAMPLE_PROJECT}_1_0_0_0directory.<\/li>\n<li>Open the Visual Studio command prompt.<\/li>\n<li>Change to the c:\\Publish\\Application Files\\{SAMPLE_PROJECT}_1_0_0_0 directory.<\/li>\n<li>Sign the modified application manifest with the following command:<br role=\"presentation\" data-uw-rm-sr=\"\" \/>mage -sign ContosoInstaller.dll.manifest -certfile ContosoInstaller_TemporaryKey.pfx<\/li>\n<\/ol>\n<p>The message \u201c{SAMPLE_PROJECT}.dll.manifest successfully signed\u201d appears.<\/p>\n<ol>\n<li>Change to the c:\\Publish directory.<\/li>\n<li>Update and sign the deployment manifest with the following command:<\/li>\n<\/ol>\n<p>mage -update ContosoInstaller.vsto -appmanifest \u201cApplication Files\\ContosoInstaller_1_0_0_0\\ContosoInstaller.dll.manifest\u201d -certfile \u201cApplication Files\\ContosoInstaller_1_0_0_0\\ContosoInstaller_TemporaryKey.pfx\u201d<br role=\"presentation\" data-uw-rm-sr=\"\" \/>The message \u201c{SAMPLE_PROJECT}.vsto successfully signed\u201d appears.<\/p>\n<p>Copy the {SAMPLE_PROJECT}.vsto file to the c:\\publish\\Application Files\\{SAMPLE_PROJECT}_1_0_0_0 directory.<\/p>\n<p>Commands to execute: (Use \u2018Developer Command Prompt for VS2013\u2019 command prompt from Visual Studio Tools)<\/p>\n<ol>\n<li>mage -sign XYZOfficeAddIn.OfficeAddInSetup.dll.manifest -Publisher \u201cXYZ Products\u201d -Password xyz@123 -certfile XYZOfficeAddIn.OfficeAddInSetup_TemporaryKey.pfx<\/li>\n<li>mage -update XYZOfficeAddIn.OfficeAddInSetup.vsto -Publisher \u201cXYZ Products\u201d -Password xyz@123 -appmanifest \u201cApplication Files\\ XYZOfficeAddIn.OfficeAddInSetup_1_0_0_3\\ XYZOfficeAddIn.OfficeAddInSetup.dll.manifest\u201d -certfile \u201cApplication Files\\ XYZOfficeAddIn.OfficeAddInSetup_1_0_0_3\\ XYZOfficeAddIn.OfficeAddInSetup_TemporaryKey.pfx\u201d<\/li>\n<\/ol>\n<p>Screen-Shot: Run the \u2018Developer Command Prompt for VS2013\u2019 command prompt from VS tools:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-566\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn7-300x107-1.webp\" alt=\"img\" width=\"300\" height=\"107\" \/><\/p>\n<p>Screen-Shot: Re-sign the application and deployment manifests:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-569\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Multiple-Office-AddIn8-300x141-1.webp\" alt=\"img\" width=\"300\" height=\"141\" \/><\/p>\n<p>Now your final setup is ready. You can run to install. You should then see the Add-Ins configured; for Word, Excel and PowerPoint<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to deploy multiple Office Solutions in a single setup After creation of all your MS-Office solutions, they can be configured to be deployed all at once. The steps below walk through how to configure one setup for all MS-Office solutions using a Click Once installer for the .NET Framework: Step 1: Create a sample [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":543,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-537","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":6,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/537\/revisions"}],"predecessor-version":[{"id":571,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/537\/revisions\/571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/543"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}