<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Office Development with Visual Studio : MSI</title><link>http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx</link><description>Tags: MSI</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>VSTO Runtime bootstrapper package failure causes deployed customization installation to fail (Aaron Cathcart)</title><link>http://blogs.msdn.com/vsto/archive/2009/02/07/vsto-runtime-bootstrapper-package-failure-causes-deployed-customization-installation-to-fail-aaron-cathcart.aspx</link><pubDate>Sat, 07 Feb 2009 11:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9404080</guid><dc:creator>VSTO Team</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vsto/comments/9404080.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsto/commentrss.aspx?PostID=9404080</wfw:commentRss><description>&lt;P&gt;In an attempt to make this easier to read here are a few terms I will be using frequently in this article: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;VSTOR = Visual Studio Tools for the Microsoft Office System (version 3.0 Runtime) (x86) &lt;/LI&gt;
&lt;LI&gt;VSTORSP1 = Visual Studio Tools for the Microsoft Office System (version 3.0 Runtime) Service Pack 1(x86) &lt;/LI&gt;
&lt;LI&gt;Bootstrapper = the clickonce bootstrapper that gets deployed with a VSTO customization when there are prerequisites checked (setup.exe) &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Some of our customers have raised an issue with the bootstrapper failing after deploying their customizations onto a user’s machine that has previously had VSTOR &amp;amp; VSTORSP1 installed. &lt;/P&gt;
&lt;P&gt;The problem occurs when an end user installs VSTOR followed by VSTORSP1 then subsequently uninstalls VSTOR from the Add/Remove Programs wizard. The uninstall removes the entire product including the service pack but fails to update the registry keys that our bootstrapper uses to detect if VSTOR is installed. If a user then installs a customization using the bootstrapper it will incorrectly detect that VSTOR is installed and proceed to install VSTORSP1, at which point it fails. &lt;/P&gt;
&lt;P&gt;I recently responded to a customer on the VSTO forums ( &lt;A href="http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2dd02b04-cc89-47c3-8f76-462ecfbee65e" mce_href="http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2dd02b04-cc89-47c3-8f76-462ecfbee65e"&gt;http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2dd02b04-cc89-47c3-8f76-462ecfbee65e&lt;/A&gt; ) regarding this issue where I approached it from an end-user perspective, providing them with a list of fixes for post-deployment use. The purpose of this article is to provide a solution that developers can utilize so that end-users machines do not require post-deployment modification.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;This workaround will allow developers to bake the correct VSTOR detection logic into every customization they develop that utilizes the bootstrapper.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what you need to do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the development machine locate the file %ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\VSTOR30\product.xml &lt;/LI&gt;
&lt;LI&gt;Replace the element &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;RegistryCheck &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Property&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;VSTORuntimeInstalled&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;Install&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;with&amp;nbsp; &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;MsiProductCheck &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Property&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;VSTORuntimeInstalled&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;{8FB53850-246A-3507-8ADE-0060093FFEA6}&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;Alter the element &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;BypassIf &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Property&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;VSTORuntimeInstalled&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Compare&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;ValueGreaterThanOrEqualTo&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;1&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;to be &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;BypassIf &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Property&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;VSTORuntimeInstalled&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Compare&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;ValueGreaterThanOrEqualTo&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;3&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&lt;/SPAN&gt; &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;And that’s it! Now that you have made these changes to your product.xml, every VSTO customization you build and deploy with a bootstrapper will correctly detect if VSTOR is installed regardless of what state the end-users machine is in.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9404080" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsto/archive/tags/ClickOnce/default.aspx">ClickOnce</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx">MSI</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Add+Remove+Programs/default.aspx">Add Remove Programs</category><category domain="http://blogs.msdn.com/vsto/archive/tags/SP1/default.aspx">SP1</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Aaron+Cathcart/default.aspx">Aaron Cathcart</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Bootstrapper/default.aspx">Bootstrapper</category></item><item><title>Deploying Office 2003 Solutions with Windows Installer (Mary Lee)</title><link>http://blogs.msdn.com/vsto/archive/2008/12/17/deploying-office-2003-solutions-with-windows-installer-mary-lee.aspx</link><pubDate>Thu, 18 Dec 2008 02:08:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9232290</guid><dc:creator>VSTO Team</dc:creator><slash:comments>16</slash:comments><comments>http://blogs.msdn.com/vsto/comments/9232290.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsto/commentrss.aspx?PostID=9232290</wfw:commentRss><description>&lt;p&gt;You may want to develop Microsoft Office 2003 solutions with Visual Studio Tools for Office (VSTO) in Visual Studio 2008 SP1 for several reasons.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Your customers are using Microsoft Office 2003.&lt;/li&gt;    &lt;li&gt;Your customers are using both Microsoft Office 2003 and the 2007 Microsoft Office system.&lt;/li&gt;    &lt;li&gt;Your customers are using .NET Framework 2.0 and cannot migrate to .NET Framework 3.5.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Once you're done with development, you'll want to deploy your Microsoft Office 2003 solutions to your end users. This process involves the following steps:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Check for and install the following prerequisites: .NET FX 2.0, VSTO 2005 SE runtime, and the Microsoft Office primary interop assemblies.&amp;#160; If your client computers already have the prerequisites, or you want to do this manually, you can skip this step.&lt;/li&gt;    &lt;li&gt;Copy the customization assembly to the end user computer.&lt;/li&gt;    &lt;li&gt;Grant full trust to the customization assembly.&lt;/li&gt;    &lt;li&gt;For application-level add-ins only, create a set of registry keys so that the Office application knows to load the add-in.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Due to customer demand, I've created five &lt;a href="http://code.msdn.microsoft.com/VSTO2005SEMSI"&gt;deployment samples&lt;/a&gt; that demonstrate these steps. Step 1 is demonstrated in two ways: you can select your prerequisites through the &lt;a href="http://msdn.microsoft.com/en-us/library/7tx0bw8y.aspx"&gt;Prerequisites Dialog Box&lt;/a&gt; to be installed with the Setup.exe bootstrapper; alternatively, you can configure launch conditions in the Setup project to only install the customization if the prerequisites already exist. &lt;/p&gt;  &lt;p&gt;Prerequisites Dialog Box:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_6.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="378" alt="Prerequisites Dialog Box" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_thumb_2.png" width="484" border="0" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Launch Conditions editor:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_16.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="140" alt="image" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_thumb_7.png" width="657" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;You can use the Setup project to complete step 2 by copying the customization assembly and for document-level projects, the document or workbook, to the designated installation location. This is done by adding the project output with the File System Editor. The default installation location in these Setup projects is %PROGRAMFILES%\MyCompany\&amp;lt;Name of Setup Project&amp;gt;.&lt;/p&gt;  &lt;p&gt;File System Editor:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_12.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="120" alt="image" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_thumb_5.png" width="663" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Full trust is granted by using the SetSecurity project for step 3. This code uses a custom action in the Setup project to create a &lt;a href="http://msdn.microsoft.com/en-us/library/930b76w0.aspx"&gt;code access security&lt;/a&gt; policy that creates a solution code group for your Office solution, and an assembly code group for the customization assembly. &lt;/p&gt;  &lt;p&gt;Custom Actions Editor:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_14.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="174" alt="image" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_thumb_6.png" width="659" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Step 4 only applies to application-level add-ins: when you use the Excel 2003 add-in or Word 2003 add-in project templates, there is a Setup project automatically added to your Office solution that already creates the registry keys documented in &lt;a href="http://msdn.microsoft.com/en-us/library/bb386106.aspx"&gt;Registry Entries for Application-Level Add-Ins&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Registry Editor:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_10.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="229" alt="image" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/DeployingOffice2003SolutionswithWindowsI_9C61/image_thumb_4.png" width="656" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The process of preparing the development computer for deployment and configuring the Setup project is written out step-by-step in the following two whitepapers:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb332051.aspx"&gt;Deploying Visual Studio 2005 Tools for the Office System SE Solutions Using Windows Installer (Part 1 of 2)&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb332052.aspx"&gt;Deploying Visual Studio 2005 Tools for the Office System SE Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now, it's time to experiment on your own. &lt;strong&gt;Download the sample code&lt;/strong&gt; and the completed installers from the MSDN Code Gallery: &lt;a title="http://code.msdn.microsoft.com/VSTO2005SEMSI" href="http://code.msdn.microsoft.com/VSTO2005SEMSI"&gt;http://code.msdn.microsoft.com/VSTO2005SEMSI&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Happy deployment!&lt;/p&gt;  &lt;p&gt;Mary Lee, Programming Writer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9232290" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsto/archive/tags/VSTO/default.aspx">VSTO</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Mary+Lee/default.aspx">Mary Lee</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Windows+Installer/default.aspx">Windows Installer</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Office+2003/default.aspx">Office 2003</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.msdn.com/vsto/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx">MSI</category><category domain="http://blogs.msdn.com/vsto/archive/tags/add-ins/default.aspx">add-ins</category></item><item><title>How to Include .NET Framework 3.5 SP1 with Your Installer (Mary Lee)</title><link>http://blogs.msdn.com/vsto/archive/2008/11/18/how-to-include-net-framework-3-5-sp1-with-your-installer.aspx</link><pubDate>Wed, 19 Nov 2008 01:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9120595</guid><dc:creator>VSTO Team</dc:creator><slash:comments>14</slash:comments><comments>http://blogs.msdn.com/vsto/comments/9120595.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsto/commentrss.aspx?PostID=9120595</wfw:commentRss><description>&lt;p&gt;Recently in the &lt;a href="http://social.msdn.microsoft.com/forums/en-US/vsto/threads/" mce_href="http://social.msdn.microsoft.com/forums/en-US/vsto/threads/"&gt;Visual Studio Tools for Office forum&lt;/a&gt;, a Visual Studio 2008 SP1 developer asked how to include the .NET Framework 3.5 Service Pack 1 in the same directory as the application.&amp;#160; For example, you can select &lt;strong&gt;Download prerequisites from the same location as my application&lt;/strong&gt; in the &lt;a href="http://msdn.microsoft.com/en-us/library/7tx0bw8y.aspx" mce_href="http://msdn.microsoft.com/en-us/library/7tx0bw8y.aspx"&gt;Prerequisites Dialog Box&lt;/a&gt; if your application is going out on CD and being installed without a network connection.&amp;#160; &lt;/p&gt;  &lt;p&gt;However, when you try to build your setup project or ClickOnce installer, you see the following error message: &amp;quot;The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx20a_x86.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. &amp;quot;&lt;/p&gt;  &lt;p&gt;What does it mean?&amp;#160; The installers for .NET Framework 3.5 SP1 were not included in the VS2008 SP1 installer due to size restrictions. The default deployment experience is to download the .NET Framework 3.5 SP1 from the Microsoft Download Center during installation.&amp;#160; &lt;/p&gt;  &lt;p&gt;How do you include the .NET Framework 3.5 SP1? You can download the full .NET Framework 3.5 SP1 installer and extract the necessary files to the Visual Studio bootstrapper directory. After you modify the product.xml file and update the PublicKey value, the .NET Framework 3.5 SP1 will appear in the &lt;a href="http://msdn.microsoft.com/en-us/library/7tx0bw8y.aspx" mce_href="http://msdn.microsoft.com/en-us/library/7tx0bw8y.aspx"&gt;Prerequisites Dialog Box&lt;/a&gt;. You can find the full instructions in the &lt;a href="http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm" mce_href="http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm"&gt;Visual Studio 2008 Service Pack 1 Readme&lt;/a&gt; in &lt;strong&gt;section 2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/HowtoInclude.NETFr.5SP1withYourInstaller_E3AE/image_2.png" mce_href="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/HowtoInclude.NETFr.5SP1withYourInstaller_E3AE/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="453" alt="image" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/HowtoInclude.NETFr.5SP1withYourInstaller_E3AE/image_thumb.png" width="589" border="0" mce_src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/HowtoInclude.NETFr.5SP1withYourInstaller_E3AE/image_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;While these steps may seem lengthy, you only have to complete the steps once on your development computer. Then, every project you develop and deploy can include .NET Framework 3.5 SP1 as a prerequisite.&lt;/p&gt;  &lt;p&gt;If you have further questions about deployment, visit the &lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=6&amp;amp;SiteID=1"&gt;ClickOnce and Setup &amp;amp; Deployment MSDN forum&lt;/a&gt; to search for answers or ask your questions.&lt;/p&gt;  &lt;p&gt;Happy deployment!&lt;/p&gt;  &lt;p&gt;Mary R Lee, programming writer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9120595" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsto/archive/tags/ClickOnce/default.aspx">ClickOnce</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Mary+Lee/default.aspx">Mary Lee</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx">MSI</category></item><item><title>How Do I: Deploy Document-Level Office 2007 Solutions with Windows Installer? (Mary Lee)</title><link>http://blogs.msdn.com/vsto/archive/2008/10/02/how-do-i-deploy-document-level-office-2007-solutions-with-windows-installer-mary-lee.aspx</link><pubDate>Thu, 02 Oct 2008 19:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8973866</guid><dc:creator>VSTO Team</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vsto/comments/8973866.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsto/commentrss.aspx?PostID=8973866</wfw:commentRss><description>&lt;p&gt;In &lt;a href="http://blogs.msdn.com/vsto/archive/2008/04/10/deploying-an-office-solution-using-windows-installer-mary-lee.aspx"&gt;Deploying an Office solution using Windows Installer&lt;/a&gt;, you read how to deploy document-level Office 2007 solutions with Windows Installer.&amp;#160; As a follow up, you can now &lt;em&gt;see&lt;/em&gt; how to add a Setup project to your VSTO solution and add a custom action to update custom document properties. This example uses Excel 2007, but you can apply these principles to any document-level customization.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/vcsharp/cc998641.aspx"&gt;Deploying Excel Document-level Customizations with Windows Installer&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/vcsharp/cc998641.aspx"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="183" alt="MSI2" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/HowDoIDeployDocumentLevelOffice2007Solut_848D/MSI2_1.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This video is based on the whitepaper: &lt;a href="http://msdn.microsoft.com/en-us/library/cc616991.aspx"&gt;Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 2 of 2)&lt;/a&gt;, where you can get the code and follow along step-by-step.&lt;/p&gt;  &lt;p&gt;Mary Lee, Programming Writer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8973866" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsto/archive/tags/VSTO/default.aspx">VSTO</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Mary+Lee/default.aspx">Mary Lee</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Excel+2007/default.aspx">Excel 2007</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.msdn.com/vsto/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx">MSI</category><category domain="http://blogs.msdn.com/vsto/archive/tags/video/default.aspx">video</category></item><item><title>How Do I: Deploy Application-Level Office 2007 Solutions with Windows Installer? (Mary Lee)</title><link>http://blogs.msdn.com/vsto/archive/2008/10/02/how-do-i-deploy-application-level-office-2007-solutions-with-windows-installer-mary-lee.aspx</link><pubDate>Thu, 02 Oct 2008 19:21:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8973862</guid><dc:creator>VSTO Team</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/vsto/comments/8973862.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsto/commentrss.aspx?PostID=8973862</wfw:commentRss><description>&lt;p&gt;In &lt;a href="http://blogs.msdn.com/vsto/archive/2008/04/10/deploying-an-office-solution-using-windows-installer-mary-lee.aspx"&gt;Deploying an Office solution using Windows Installer&lt;/a&gt;, you read how to deploy application-level Office 2007 solutions with Windows Installer.&amp;#160; As a follow up, you can now &lt;em&gt;see&lt;/em&gt; how to add a Setup project to your VSTO solution and create registry keys. This example uses Excel 2007, but you can apply these principles to any application-level add-in.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/vcsharp/cc998443.aspx"&gt;Deploying Excel Application-level Add-ins with Windows Installer&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/vcsharp/cc998443.aspx"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="184" alt="MSI1" src="http://blogs.msdn.com/blogfiles/vsto/WindowsLiveWriter/HowDoIDeployApplicationLevelOffice2007So_8364/MSI1_1.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This video is based on the whitepaper: &lt;a href="http://msdn.microsoft.com/en-us/library/cc563937.aspx"&gt;Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 1 of 2)&lt;/a&gt;, where you can get the code and follow along step-by-step.&lt;/p&gt;  &lt;p&gt;Mary Lee, Programming Writer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8973862" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsto/archive/tags/VSTO/default.aspx">VSTO</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Mary+Lee/default.aspx">Mary Lee</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Windows+Installer/default.aspx">Windows Installer</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Excel+2007/default.aspx">Excel 2007</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.msdn.com/vsto/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx">MSI</category><category domain="http://blogs.msdn.com/vsto/archive/tags/video/default.aspx">video</category><category domain="http://blogs.msdn.com/vsto/archive/tags/add-ins/default.aspx">add-ins</category></item><item><title>Deploying an Office solution using Windows Installer (Mary Lee)</title><link>http://blogs.msdn.com/vsto/archive/2008/04/10/deploying-an-office-solution-using-windows-installer-mary-lee.aspx</link><pubDate>Fri, 11 Apr 2008 03:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8373360</guid><dc:creator>VSTO Team</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vsto/comments/8373360.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsto/commentrss.aspx?PostID=8373360</wfw:commentRss><description>&lt;P&gt;Visual Studio 2008 offers a ClickOnce deployment experience for solutions developed for the 2007 Microsoft Office system.&amp;nbsp; However, if you want to deploy additional files, add extra registry keys, or use SMS, you may still be interested in creating a Windows Installer package. &lt;/P&gt;
&lt;P&gt;Here are the very basic steps to configure your setup project:&lt;/P&gt;
&lt;P&gt;1. Add the release build or publish output of your solution. Then manually add the application and deployment manifests (.dll.manifest and .vsto files).&lt;/P&gt;
&lt;P&gt;2. For application-level projects, create the registry keys so that the Microsoft Office application can find your add-in. For more information, see &lt;A href="http://go.microsoft.com/fwlink/?LinkID=107101"&gt;Registry Entries for Application-Level Add-Ins&lt;/A&gt;. For the add-in name, use a syntax similar to [CompanyName].[AddinName].&lt;/P&gt;
&lt;P&gt;3. For document-level projects, update custom document properties which point to the location of the deployment manifest. If you leave the document in the same relative location compared to the customization assembly, you don't need to update the _AssemblyLocation property. But if you want to move the document to a user's desktop or Documents folders, you'll have to update the _AssemblyLocation property. For more information, see &lt;A href="http://go.microsoft.com/fwlink/?LinkID=107108"&gt;Custom Document Properties Overview&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You must still use ClickOnce security to trust your solution. You can deploy your .msi at this point, but you'll see a trust prompt asking whether the solution should be installed or not. To avoid prompting your end users, sign your manifests with a known and trusted certificate or pre-trust the solution by creating an inclusion list entry. For more information, see &lt;A class="" href="http://go.microsoft.com/fwlink/?LinkID=111232" mce_href="http://go.microsoft.com/fwlink/?LinkID=111232"&gt;Security in Office Solutions (2007 System)&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Bonus: there is sample code to help you complete the steps of deploying additional files, updating the document's _AssemblyLocation, and creating an inclusion list entry.&amp;nbsp; Visit &lt;A href="http://code.msdn.microsoft.com/VSTO3MSI" mce_href="http://code.msdn.microsoft.com/VSTO3MSI"&gt;http://code.msdn.microsoft.com/VSTO3MSI&lt;/A&gt; in the MSDN Code Gallery to download the sample code.&lt;/P&gt;
&lt;P&gt;For all the details, read the deployment whitepapers at &lt;A class="" href="http://msdn.microsoft.com/en-us/library/cc563937.aspx" mce_href="http://msdn.microsoft.com/en-us/library/cc563937.aspx"&gt;Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 1 of 2)&lt;/A&gt;&amp;nbsp;and &lt;A class="" href="http://msdn.microsoft.com/en-us/library/cc616991.aspx" mce_href="http://msdn.microsoft.com/en-us/library/cc616991.aspx"&gt;Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 2 of 2).&lt;BR&gt;&lt;/A&gt;&lt;BR&gt;If you run into trouble implementing this, visit the VSTO MSDN forum at &lt;A href="http://forums.microsoft.com/msdn/showforum.aspx?forumid=16&amp;amp;siteid=1"&gt;http://forums.microsoft.com/msdn/showforum.aspx?forumid=16&amp;amp;siteid=1&lt;/A&gt;&amp;nbsp;to search for answers or ask your questions.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Mary Lee, programming writer.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8373360" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsto/archive/tags/VSTO/default.aspx">VSTO</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Mary+Lee/default.aspx">Mary Lee</category><category domain="http://blogs.msdn.com/vsto/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.msdn.com/vsto/archive/tags/VB/default.aspx">VB</category><category domain="http://blogs.msdn.com/vsto/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/vsto/archive/tags/sample/default.aspx">sample</category><category domain="http://blogs.msdn.com/vsto/archive/tags/VS2008/default.aspx">VS2008</category><category domain="http://blogs.msdn.com/vsto/archive/tags/MSI/default.aspx">MSI</category></item></channel></rss>