<?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>Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx</link><description>In this post I am going to discuss how the observations made in the previous post can be incorporated into a setup project for Office 2007 Add-Ins. As with any setup we will need to address installation, un-installation and repair procedures. Upon the</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#4782612</link><pubDate>Thu, 06 Sep 2007 12:16:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4782612</guid><dc:creator>MSDN Blog Postings  » Deploying your VSTO Add-In to All Users (Part II)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/09/06/deploying-your-vsto-add-in-to-all-users-part-ii/"&gt;http://msdnrss.thecoderblogs.com/2007/09/06/deploying-your-vsto-add-in-to-all-users-part-ii/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#4876339</link><pubDate>Wed, 12 Sep 2007 10:09:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4876339</guid><dc:creator>Ken McCormack</dc:creator><description>&lt;p&gt;Hi Misha&lt;/p&gt;
&lt;p&gt;Can you recap on the reasoning behind the steps? &lt;/p&gt;
&lt;p&gt;1. Create a reg file to add the master key &lt;/p&gt;
&lt;p&gt;2. Add a custom action to increment / decrement the Count - this causes the already installed key to refresh on install / repair&lt;/p&gt;
&lt;p&gt;Can I create the reg key within the setup program, rather than using a reg file?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#4882566</link><pubDate>Wed, 12 Sep 2007 20:39:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4882566</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Ken,&lt;/p&gt;
&lt;p&gt;Re 1: Why &amp;quot;create a reg file to add the master key&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; There is no particular reason besides my preference. I could have said &amp;quot;go and add this key and these values through the designer&amp;quot;, but for some reason I just felt it might be simplier for everyone if I said &amp;quot;copy&amp;amp;past these values, modify them and import them into your project&amp;quot;, this is especially true because copying from an existing script make it much harder to miss things.&lt;/p&gt;
&lt;p&gt;Re 2: Why &amp;quot;Add a custom action to increment / decrement the Count - this causes the already installed key to refresh on install / repair&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Office compares HKLM's Count value against one stored under HKCU\...\Office\12.0\User Settings\&amp;lt;MyAddin&amp;gt;. The instructions will be carried out only if those values are different, then Office copies the new Count under HKCU\...\Office\12.0\User Settings\&amp;lt;MyAddin&amp;gt; as a form of optimization to avoid carrying the same copy/delete instruction on every boot. Hence, Count value needs to stay even after add-in is uninstalled. When a registry value is authored through MSI tables - it will be cleaned up during the uninstall and the only way to achieve the desired behavior is to write a Custom Action that will managed the Count value. &lt;/p&gt;
&lt;p&gt;Why some registry keys are added through Registry View and others are added/modified by Custom Action?&lt;/p&gt;
&lt;p&gt;My approach has been:&lt;/p&gt;
&lt;p&gt;1. The registry keys managed by the MSI tables are those that need to be added during installation/repair and removed during uninstall.&lt;/p&gt;
&lt;p&gt;2. The registry keys managed by the Custom Actions are those that Windows Installer rules install/uninstall rules can not be applied to.&lt;/p&gt;
&lt;p&gt;You can do things differently, of course, and have your Custom Action managed all your registry keys instead. &lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#4942184</link><pubDate>Sun, 16 Sep 2007 18:15:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4942184</guid><dc:creator>Jie</dc:creator><description>&lt;p&gt;A Simplified Chinese version of this aritcle: &lt;a rel="nofollow" target="_new" href="http://blog.joycode.com/vsto/archive/2007/09/16/108546.aspx"&gt;http://blog.joycode.com/vsto/archive/2007/09/16/108546.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Xie Xie Misha! :)&lt;/p&gt;
&lt;p&gt;感谢 Misha 允许我把此文翻译成中文。&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5017397</link><pubDate>Thu, 20 Sep 2007 22:45:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5017397</guid><dc:creator>George</dc:creator><description>&lt;p&gt;Hi Misha, &lt;/p&gt;
&lt;p&gt;Can you please explain what 'Properties Window' you meant in the following paragraph:&lt;/p&gt;
&lt;p&gt;By adding above entries into Registry View we ensure that corresponding keys will be removed when Add-In is uninstalled. I would also suggest to set Create's key “DeleteOnUninstall” property in the Properties Window to True to make sure it is always deleted on uninstall.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;George.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5026073</link><pubDate>Fri, 21 Sep 2007 08:59:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5026073</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Oh, I just meant the &amp;quot;Properties&amp;quot; Window - the one that shows and allows browsing properties of the currently selected object. In the Registry View, you can right click on the reg key, select &amp;quot;Properties Window&amp;quot; and it will show a little window where one of the things you can modify is &amp;quot;DeleteOnUninstall&amp;quot;. On my machine the window shows up in the right lower corner of the VS IDE.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5174014</link><pubDate>Fri, 28 Sep 2007 00:37:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5174014</guid><dc:creator>Ignacio</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt;I'am deploying my own vsto application and I'am trying to give the option to choose the kind of installation for the current user or all the user. Now Im trying to use a variable in the condition property of the key but it did't work. What can I do?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ignacio.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5174330</link><pubDate>Fri, 28 Sep 2007 01:06:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5174330</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Ignacio,&lt;/p&gt;
&lt;p&gt;First, you would need to undersand why it did not work. Windows Installer has some logging capabilities that might help you out - check out the command line options for msiexec.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5241977</link><pubDate>Tue, 02 Oct 2007 15:55:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5241977</guid><dc:creator>Kulvinder</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt;For Windows Vista 64 bit (if elevated security i think), Outlook 2007 doesnt load addins created having details under HKCU. The registry information (under Software) has to be under HKLM.&lt;/p&gt;
&lt;p&gt;Can you write something on Vista 64 Bit and Outlook 2007 ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5275986</link><pubDate>Thu, 04 Oct 2007 19:38:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5275986</guid><dc:creator>Shawn Mullen</dc:creator><description>&lt;p&gt;Automatic updates are great. &amp;nbsp;I wished it actually worked. &amp;nbsp;Has anyone addressed the fact that most companies do not allow their users to download dlls over http. &amp;nbsp;If there is a solution to this using VSTO 2005 SE, please let me know, but as far as I can see there isn't one. &amp;nbsp;So, I now have to use a third party updater to make this work (I don't feel like writing my own). &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5464327</link><pubDate>Tue, 16 Oct 2007 00:27:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5464327</guid><dc:creator>BJ Herrington</dc:creator><description>&lt;p&gt;A simpler way to handle this, especially if your add-in is build for 2003 and later, is to simply not include the &amp;quot;Manifest&amp;quot; key in the registry. &amp;nbsp;This will cause Office to use the AddinLoader shim. &amp;nbsp;The downside being that you no longer have the &amp;quot;native&amp;quot; support in 2007, but you do simplify your installer and the maintenance there of.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5465047</link><pubDate>Tue, 16 Oct 2007 02:13:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5465047</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;BJ,&lt;/p&gt;
&lt;p&gt;You are correct - but only half way. Only pure managed add-ins have support for some of the Office 2007 features such as CustomTaskPanes and Ribbons. Once you start using these VSTO features you really need this &amp;quot;Manifest&amp;quot; reg value.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#5626749</link><pubDate>Tue, 23 Oct 2007 19:06:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5626749</guid><dc:creator>Markus Jerneborg</dc:creator><description>&lt;p&gt;Thank you for a good post Misha. It helped me tons.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#6128221</link><pubDate>Mon, 12 Nov 2007 09:12:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6128221</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;There are one problem.&lt;/p&gt;
&lt;p&gt;Regist Addin like that cause a question, when Office2003 started, it also load this addin.&lt;/p&gt;
&lt;p&gt;How Can I　Fix it?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#6147213</link><pubDate>Mon, 12 Nov 2007 21:52:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6147213</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Jason,&lt;/p&gt;
&lt;p&gt;I am sorry. I tried to understand your question but I could not figure out what you are trying to say. Can you rephrase what is the problem you are seeing?&lt;/p&gt;
</description></item><item><title>VSTO 2005 SE Add-In Deployment / ALLUSERS</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#6547974</link><pubDate>Tue, 27 Nov 2007 13:43:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6547974</guid><dc:creator>We did start the fire (sorry Billy)&lt;br&gt;&lt;br&gt;</dc:creator><description>&lt;p&gt;Eine wesentliche Limitierung von managed Office 2007 Add-Ins ist die Beschr&amp;#228;nkung auf eine per-User -&lt;/p&gt;
</description></item><item><title>VSTO 2005 SE Add-In Deployment / ALLUSERS</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#6548933</link><pubDate>Tue, 27 Nov 2007 14:44:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6548933</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;Eine wesentliche Limitierung von managed Office 2007 Add-Ins ist die Beschr&amp;#228;nkung auf eine per-User&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7260447</link><pubDate>Sun, 27 Jan 2008 01:29:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7260447</guid><dc:creator>Christopher Painter</dc:creator><description>&lt;p&gt;I have the Create/Delete command pattern down. &amp;nbsp;And on the surface everything works. &amp;nbsp; But I notice several problems: &amp;nbsp;( this is a VSTO 2008 .vsto not VSTO 2005 .manifest )&lt;/p&gt;
&lt;p&gt;1) The first time a user starts word it asks them if the want to install the add-in. &amp;nbsp;If they click yes everything is fine. &amp;nbsp;If they click no, they are never asked again. &amp;nbsp; The only way to get it to ask them again is tweak the HKLM Count value to cause it to be repropagated to HKCU for Winword to see again.&lt;/p&gt;
&lt;p&gt;2) When they click yes:&lt;/p&gt;
&lt;p&gt;a) &amp;nbsp;registry entries get created by vstoinstaller in HKCU\Software\Microsoft\VSTA and VSTO keys. &amp;nbsp; They are guids and different everything it runs. &amp;nbsp;I'm not sure what drives this.&lt;/p&gt;
&lt;p&gt;b) an entry is added to add/remove programs for the user. ( undesired )&lt;/p&gt;
&lt;p&gt;3) when I uninstall the application the delete key properly removes the addin the next time word is run but the VSTA, VSTO and Add/Remove resources linger on the machine.&lt;/p&gt;
&lt;p&gt;4) I've not tested upgrade scenarios yet.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7306723</link><pubDate>Tue, 29 Jan 2008 17:52:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7306723</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Hey Misha,&lt;/p&gt;
&lt;p&gt; That may look irrelevant, but I have a vista machine with OL2007, and I'm installing a VSTO setup for OL2007 and I have serious troubles reading and writing to registry. I'm using pretty much straight forward commands like:&lt;/p&gt;
&lt;p&gt; Registry.SetValue() and Registry.GetValue()&lt;/p&gt;
&lt;p&gt;I event tried Registry.LocalMachine.CreateSubKey() and none seems to be working so I realized that is an issue with vista.&lt;/p&gt;
&lt;p&gt; Please let me know what do I have to do with vista machines that runs OL2007?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7313571</link><pubDate>Wed, 30 Jan 2008 01:05:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7313571</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Hi Joe, I think Chrispoher has covered it in his response here - &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx#7308281"&gt;http://blogs.msdn.com/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx#7308281&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7807837</link><pubDate>Wed, 20 Feb 2008 04:56:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7807837</guid><dc:creator>Gábor Vas</dc:creator><description>&lt;p&gt;Cristopher Painter:&lt;/p&gt;
&lt;p&gt;When the manifests are signed with a certificate from the Trusted Publishers certificate store, and that certificate is certified directly or indirectly with a certificate from the Trusted Root Certificate Authorities certificate store, then ClickOnce won't ask the users for trust.&lt;/p&gt;
&lt;p&gt;Regarding your other problem, with Office 2007 and VSTO 3.0 you can prevent the installation into the ClickOnce cache by appending the |vstolocal suffix to the path of the deployment manifest (at the Manifest registry key). This means that there won't be any entry in the add/remove programs for the add-in. See the following forum thread for details: &lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2543533&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2543533&amp;amp;SiteID=1&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Aggregating blogs in a blog</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7849250</link><pubDate>Fri, 22 Feb 2008 19:19:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7849250</guid><dc:creator>Visual Studio 2008: Microsoft Visual Studio Tools for Office </dc:creator><description>&lt;p&gt;There are many resources to learn about Visual Studio Tools for Office, and they are scattered through&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7913848</link><pubDate>Wed, 27 Feb 2008 07:15:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7913848</guid><dc:creator>Mohan Kumar K</dc:creator><description>&lt;p&gt;I have created an addin for Word 2007 using VSTO SE and I am trying to deploy it for All Users. I find your article very useful and it helped me to know what exactly I am missing. But the problem is I am new to .Net &amp;amp; very new to C#. &amp;nbsp;I couldn't understand certain things and need your help to figure out.&lt;/p&gt;
&lt;p&gt;I have created a class named &amp;quot;RegisterOffice2007AddIn.cs&amp;quot; in SetSecurity Project and copied the code to that class.&lt;/p&gt;
&lt;p&gt;class RegisterOffice2007AddIn&lt;/p&gt;
&lt;p&gt; {&lt;/p&gt;
&lt;p&gt;#region private methods&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;..&lt;/p&gt;
&lt;p&gt;# endregion&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I would like to know where the below mentioned function will go into that &amp;quot;RegisterOffice2007AddIn.cs&amp;quot;. (I mean where exactly we need to copy this code, excuse me if this question is too naive).&lt;/p&gt;
&lt;p&gt;public void RegisterAddIn(string addInName)&lt;/p&gt;
&lt;p&gt;public void UnRegisterAddIn(string applicationName, string addInName)&lt;/p&gt;
&lt;p&gt;==============================&lt;/p&gt;
&lt;p&gt;This is pretty much it. Assuming you have already experimented with SetSecurity Custom Action you should be able to wrap this code into a Custom Action DLL, set CustomActionData properties as /addinName=&amp;quot;MyCompany.MyAddIn&amp;quot; /application=&amp;quot;Excel&amp;quot; (again choose the value that fit your particular case), and invoke the above methods on Install, Uninstall and Rollback. I will try to sum it all up in another post though.&lt;/p&gt;
&lt;p&gt;Do we need to create new set of custom actions or can we replace the existing one created for SetSecurity project. Is there any other post which will provide more elaborate details on this.&lt;/p&gt;
&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mohan&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7914232</link><pubDate>Wed, 27 Feb 2008 07:52:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7914232</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Mohan,&lt;/p&gt;
&lt;p&gt;if you look carefully at the SetSecurity sample project you can notice that SetSecurity class actually derives from System.Configuration.Install.Installer class and overrides its Install, Rollback and Uninstall methods. These are the methods that Windows Installer is actually calling - they in turn extract the parameters and call the worker method - SetSecurity. You just need to follow the same pattern here. Hope this helps.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#7915420</link><pubDate>Wed, 27 Feb 2008 10:05:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7915420</guid><dc:creator>Mohan Kumar K</dc:creator><description>&lt;p&gt;Misha,&lt;/p&gt;
&lt;p&gt;I would like to know where the below mentioned function will go into that &amp;quot;RegisterOffice2007AddIn.cs&amp;quot;. (I mean where exactly we need to copy this code, excuse me if this question is too naive).&lt;/p&gt;
&lt;p&gt;public void RegisterAddIn(string addInName)&lt;/p&gt;
&lt;p&gt;public void UnRegisterAddIn(string applicationName, string addInName)&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mohan&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8342058</link><pubDate>Fri, 28 Mar 2008 19:55:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8342058</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt;I've processed every step of your tutorial and it works to deploy my PowerPoint-Add-In to every user on the target machine, but there is still a problem with some Code Access Security-Stuff I think. If I login as another user on the target machine and start PowerPoint I get a popup that says &amp;quot;Der angeforderte Registrierungszugriff ist unzul&amp;#228;ssig.&amp;quot; (must be the message &amp;quot;Requested registry access not allowed&amp;quot; in english). &lt;/p&gt;
&lt;p&gt;I also added the SetSecurity Project to my Add-In and added cutom defined actions with correct parameters. After the installation of the add-in, i have my code groups on machine-level which give the add-in full trust. What else could be wrong? Do you have any idea?&lt;/p&gt;
&lt;p&gt;Thanks a lot and best wishes!&lt;/p&gt;
&lt;p&gt;Ricky&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8342107</link><pubDate>Fri, 28 Mar 2008 20:17:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8342107</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;I doubt the problem it registry CAS related - probably some piece of the software tries to acces the registry and fails. I would suggest you to run regmon from www.sysinternals.com and check which registry entries the process tries to access. Probably this will give you some idea.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8342126</link><pubDate>Fri, 28 Mar 2008 20:34:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8342126</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;It's a piece of my code in the add-in which tries to read a value from registry. I also have a version of that add-in-code for PPT2003 which is identically with it for 2007 except for the steps to install for all users. in PPT2003 all works fine.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8345783</link><pubDate>Mon, 31 Mar 2008 18:46:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8345783</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;I solved my problem now by using this code to grant access to the registry-entry:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RegistryPermission readPerm1 = new RegistryPermission(RegistryPermissionAccess.Read, @&amp;quot;HKEY_LOCAL_MACHINE\SOFTWARE\ProductName&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;readPerm1.Assert();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RegistryKey OurKey = Registry.LocalMachine;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OurKey = OurKey.OpenSubKey(@&amp;quot;SOFTWARE\ProductName&amp;quot;, RegistryKeyPermissionCheck.Default, RegistryRights.ReadKey); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pathtoexe = (OurKey.GetValue(&amp;quot;Path2exe&amp;quot;).ToString());&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;clientApplicationProcessName = &amp;quot;PPT2Go&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OurKey.Close();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OurKey = null;&lt;/p&gt;
&lt;p&gt;Best wishes!&lt;/p&gt;
&lt;p&gt;Ricky&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8369079</link><pubDate>Tue, 08 Apr 2008 16:36:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8369079</guid><dc:creator>Lily Collins</dc:creator><description>&lt;p&gt;Dear Misha,&lt;/p&gt;
&lt;p&gt;Is this the approach you would use if installing an VSTO SE Outlook 2007 add-in to a Citrix server? &amp;nbsp;I have an Outlook 2007 add-in that I am able to install without issue to individual users but the add-in won't load with Citrix.&lt;/p&gt;
&lt;p&gt;Any insight you have with Citrix would be really helpful. &amp;nbsp;I have been requested to update the HKLM registry but my understanding is that any settings here are ignored for VSTO SE add-ins.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8369339</link><pubDate>Tue, 08 Apr 2008 19:48:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8369339</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Lily,&lt;/p&gt;
&lt;p&gt;Unfortunately I have no idea what Citrix server is. If you want to provide more details please contact me offline - use the email link at the top of this page.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8398342</link><pubDate>Wed, 16 Apr 2008 02:04:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8398342</guid><dc:creator>Inder</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt; I read your post saying that &amp;quot; Office 2003 does not have a native notion of managed add-ins. So all COM add-ins (even VSTO add-ins for Office 2003) can be registered under HKLM hive (e.g. HKLM\Software\Microsoft\Office\Excel\AddIns\MyAdd) which will work for machine-wide deployment - and this is how machine wide deployment of add-ins has been done in the past.&amp;quot;&lt;/p&gt;
&lt;p&gt;I tried this in office 2003 and created all registry entries under HKLM. My setup creates all required registry entries but the addin doesnt get loaded. And i am not talking about CAS yet, it doesnt even show in com addins list in word 2003.&lt;/p&gt;
&lt;p&gt;Does VSTO SE Addin loader ignores HKLM? How do we do machine wide addin deployment on office 2003 for addins built with VSTO SE.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8398398</link><pubDate>Wed, 16 Apr 2008 02:58:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8398398</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;P&gt;Office 2003 does not display HKLM registered add-ins in COM add-ins dialog. So, the fact that these do not show up does not indicate they HKLM add-ins did not load. Typically, to deploy to HKLM on Office 2003 - I would just move all the registry keys from HKCU to HKLM and modify the SetSecurity to run caspol for machine level policy.&lt;/P&gt;
&lt;P&gt;What happens under the cover?&lt;/P&gt;
&lt;P&gt;VSTO SE AddIn loader is implemented by AddinLoader.dll - this is a native DLL that knows how to handle instantiation of VSTO add-ins as if those were regular COM objects. Hint: to check whether Office 2003 picked up your addin you can check whether AddinLoader.dll has been loaded (use process explorer from sysinternals.com or just a regular native debugger to see which modules are loaded). When AddInLoader.dll is loaded into the process it has no idea whether it was registered from HKLM or HKCU. Instead, the only information it gets is the GUID of the COM Add-In. Given this information it always tries to find the .manifest file (which has information about assemblies that need to be loaded) by combinining the ManifestLocation and ManifestName registry values from HKCR\CLSID\{-- GUID ---}\InProcServer32. Note that HKCR is not a real registry hive - instead it is just a virtual merge of HKLM\Software\Classes and HKCU\Software\Clases. &lt;/P&gt;
&lt;P&gt;Once .manifest file is found - AddInloader would try and load the assemblies specified in the manifest. &lt;/P&gt;
&lt;P&gt;From this point on the loading failures can be seen using VSTO_SUPPRESSDISPLAYALERTS environment variable.&lt;/P&gt;
&lt;P&gt;As you can see there are multiple points of failure that can result from incorrect registration and you really need to follow the entire chain to understand what might be going on in your case. Additional points of failure are: add-in might have been soft-disabled - LoadBehavior was reset to 2, add-in might have been killed and have been hard-disabled - check the Help-&amp;gt;About -&amp;gt; Disabled Items ... . &lt;/P&gt;
&lt;P&gt;If you have further questions to do hesitate to contact me using the email link at the top right corner of this page.&lt;/P&gt;</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8421126</link><pubDate>Thu, 24 Apr 2008 11:17:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8421126</guid><dc:creator>Angledor</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks a lot for this article, it will be very useful for me.&lt;/p&gt;
&lt;p&gt;But I have a problem with uninstallation:&lt;/p&gt;
&lt;p&gt;The value 'Count' under my Key 'MyCompany.MyAddIn' is automatically removed after the uninstall!&lt;/p&gt;
&lt;p&gt;So uninstall of User registry Key is not done.&lt;/p&gt;
&lt;p&gt;- ONLY the Create's key is set to “DeleteOnUninstall” in msi&lt;/p&gt;
&lt;p&gt;- In the CustomAction there is always 2 values &amp;nbsp;(Count and Order)&lt;/p&gt;
&lt;p&gt;But when I play the same code after uninstall, there is no value anymore!!!&lt;/p&gt;
&lt;p&gt;This is the code to test if the 2 values are always there:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RegistryKey userSettingsKey = null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RegistryKey instructionKey = null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private const string userSettingsLocation = @&amp;quot;Software\Microsoft\Office\12.0\User Settings&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private const string addInName = @&amp;quot;Firmenich Outlook Sender Addin&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;userSettingsKey = Registry.LocalMachine.OpenSubKey(userSettingsLocation, true);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;instructionKey = userSettingsKey.OpenSubKey(addInName, true);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(string.Format(&amp;quot;Value Count of \n\&amp;quot;{0}\\{1}\&amp;quot; = {2}&amp;quot;, userSettingsLocation, addInName, instructionKey.ValueCount));&lt;/p&gt;
&lt;p&gt;Do you have an idea of what's happened to delete those Value in registry just after uninstall??&lt;/p&gt;
&lt;p&gt;This is a mystery for me.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>Deploying your VSTO 2008 Add-In to All Users (Part III)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8423013</link><pubDate>Fri, 25 Apr 2008 02:17:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8423013</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;This post is both the continuation of part I and part II installments but it also addresses new product&lt;/p&gt;
</description></item><item><title>Correction!</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8440504</link><pubDate>Wed, 30 Apr 2008 04:18:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8440504</guid><dc:creator>See what I see.</dc:creator><description>&lt;p&gt;I got ahead of myself and thought it was one week later than it really is (sort of good because I was&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8450636</link><pubDate>Fri, 02 May 2008 17:11:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8450636</guid><dc:creator>Phillip</dc:creator><description>&lt;p&gt;Hi Misha, thanks for the article. I created the propagation keys under HKLM like in the article, and they appear to be creating the HKCU keys correctly. Despite this, my add in is still only appearing on the user account that I used while installing it. It doesn't show up on any other user accounts. &lt;/p&gt;
&lt;p&gt;Is there something that lists everything that is needed for an add-in to load in Outlook? I am looking for something that lists all registry keys, file locations, etc. This will let me look and see why my add in isn't loading for all users.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;P&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8451126</link><pubDate>Fri, 02 May 2008 19:50:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8451126</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Hi Phillip, &lt;/p&gt;
&lt;p&gt;Most probably cause is that your SetSecurity Custom Action modifies CAS policy at the user level - for all users deployment make sure the assemblies are trusted at the machine level.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8451437</link><pubDate>Fri, 02 May 2008 21:18:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8451437</guid><dc:creator>Phillip</dc:creator><description>&lt;p&gt;Hi Misha, thanks for the quick response. I double-checked my CAS policy code and the actual CAS policy on this machine. Everything is set at the machine level. The addin has its own code group at the machine level with full trust for everything under the addin's directory. Is there something else that I can check?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;P&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8451496</link><pubDate>Fri, 02 May 2008 21:29:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8451496</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Phillip, can you contact me offline about this - use email link at the top of this page&lt;/p&gt;
</description></item><item><title>VSTO 3.0 Add-Ins für alle User installieren</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8480301</link><pubDate>Fri, 09 May 2008 17:20:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8480301</guid><dc:creator>Open XML, VSTO, Deployment, .NET und anderes</dc:creator><description>&lt;p&gt;Das Office 2007 Security Modell erlaubt es nicht, unter HKLM registrierte Managed Add-Ins zu verwenden.&lt;/p&gt;
</description></item><item><title>Deploying VSTO 3 solutions</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8510584</link><pubDate>Fri, 16 May 2008 05:04:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8510584</guid><dc:creator>Andrew Coates ::: MSFT</dc:creator><description>&lt;p&gt;While the default mechanism for deploying VSTO v3 Add-Ins is ClickOnce, there there's now also a documented&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8577822</link><pubDate>Fri, 06 Jun 2008 16:12:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8577822</guid><dc:creator>Rajesh</dc:creator><description>&lt;p&gt;This is for Outlook 2003 Addin developed using VSTO 2005.&lt;/p&gt;
&lt;p&gt;I have similar but not the exact problem. I am trying to deploy an outlook addin in Citrix. My setup project applies custom security policies for all users and my registry entries are for HKLM. Even so, when I deploy my addin, it is only visible for the user who installed it - no other users can see the toolbar button this addin provides. I checked to see if the addin was blocked - it is not listed in the COM Addin list.&lt;/p&gt;
&lt;p&gt;Any suggestions&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8578441</link><pubDate>Fri, 06 Jun 2008 19:53:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8578441</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Rajesh,&lt;/p&gt;
&lt;p&gt;If things are the way you say they are - then there should be no problem, Citrix or not, all users on the machine should be seeing this addin.&lt;/p&gt;
&lt;p&gt;Get it touch with me through email link at the top of this page and I can take a quick look at your setup to see whether there is any problem with it.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8582661</link><pubDate>Mon, 09 Jun 2008 04:27:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8582661</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Has Darryn Lavery created his &amp;quot;MSDN article with the full how-to instructions&amp;quot; yet? Thank you.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8583923</link><pubDate>Mon, 09 Jun 2008 09:29:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8583923</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Paul, unfortunately MSDN article did not happen. Since then Darryn decided to move on and other things took precedence for him.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8584909</link><pubDate>Mon, 09 Jun 2008 13:44:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8584909</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Thank you for your response. It is a shame that the article will not be written. Oh well. I have very little experience writing custom actions, so I have a couple of questions regarding the steps you outlined above: Where exactly should the three blocks of code mentioned in this blog be written, in a class in the same project that includes the add-in class? Or should the code be written in a class library, and then the resulting dll be associated with the install, uninstall, and rollback actions? Where do I find out more about the setsecurity custom action? I do not quite understand how your code fits in with the set security custom action. Thank you, Misha. I really appreciate it.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8588243</link><pubDate>Tue, 10 Jun 2008 05:08:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8588243</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Paul,&lt;/p&gt;
&lt;p&gt;Take a look at Darryn's article on VSTO 2005 SE deployment at &lt;a rel="nofollow" target="_new" href="http://go.microsoft.com/fwlink/?LinkID=57779"&gt;http://go.microsoft.com/fwlink/?LinkID=57779&lt;/a&gt; . It comes with a sample solution which has SetSecurity as its custom action. Basically, you need to write a simple DLL with a class deriving from System.Configuration.Install.Installer class.&lt;/p&gt;
&lt;p&gt;Then you need to add this project to the deployment project. I believe there are lots of tutorials how to write Custom Actions - so you will be able to find lots. &lt;/p&gt;
&lt;p&gt;Let me know if you are stuck and I will try to find time to respond with more detailed steps.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8593299</link><pubDate>Thu, 12 Jun 2008 18:46:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8593299</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Is this the right approach?&lt;/p&gt;
&lt;p&gt;1. Add an installer class to the add-in project&lt;/p&gt;
&lt;p&gt;2 &amp;nbsp;In the &amp;quot;Public Overrides Sub Install...&amp;quot; procedure, call RegisterAddIn&lt;/p&gt;
&lt;p&gt;3. In the &amp;quot;Public Overrides Sub Uninstall...&amp;quot; procedure,call UnRegisterAddIn&lt;/p&gt;
&lt;p&gt;Here is how the vb.net code in the installer class looks thus far:&lt;/p&gt;
&lt;p&gt;Imports Microsoft.Win32&lt;/p&gt;
&lt;p&gt;Imports System.ComponentModel&lt;/p&gt;
&lt;p&gt;Imports System.Configuration.Install&lt;/p&gt;
&lt;p&gt;Public Class gseWrdAsgnUserInfoInst&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private Const userSettingsLocation As String = &amp;quot;Software\Microsoft\Office\12.0\User Settings&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Sub New()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MyBase.New()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'This call is required by the Component Designer.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InitializeComponent()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Add initialization code after the call to InitializeComponent&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MyBase.Install(stateSaver)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Call RegisterAddIn(Me.Context.Parameters(&amp;quot;addinName&amp;quot;))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Overrides Sub Uninstall(ByVal savedState As System.Collections.IDictionary)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MyBase.Uninstall(savedState)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Call UnRegisterAddIn(Me.Context.Parameters(&amp;quot;applicationName&amp;quot;), Me.Context.Parameters(&amp;quot;addinName&amp;quot;))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;These procedures are then followed by your procedures&lt;/p&gt;
&lt;p&gt;Do I need to call the UnRegisterAddIn procedure in &amp;quot;Public Overrides Sub Rollback...&amp;quot; as well?&lt;/p&gt;
&lt;p&gt;Thank you, Misha. You don't know how much I appreciate this.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8650748</link><pubDate>Wed, 25 Jun 2008 07:28:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8650748</guid><dc:creator>karan</dc:creator><description>&lt;p&gt;Misha,&lt;/p&gt;
&lt;p&gt;Do VSTO SE addin developers for office 2003 need to worry about memory leaks of com objects used by addins especially outlook addins or is it taken care by addinloader/VSTOSE internals.&lt;/p&gt;
&lt;p&gt;If yes, then what is the best practice for releasing com objects? Does setting them to null suffice or marshal.releasecomobject be used instead.&lt;/p&gt;
&lt;p&gt;How is COM objects handled in memory by VSTO SE addins. I know that addinloader disposes all com objects held by addin(outlook, word etc) once the last instance of application is closed. But what in case the application instance is running. Does it keep on adding more and more com object refernce&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8652517</link><pubDate>Wed, 25 Jun 2008 20:00:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8652517</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Hello karan,&lt;/p&gt;
&lt;p&gt;VSTO takes care of COM references and users do not need to call Marshal.ReleaseComObject to cause Outlook to shutdown correctly. Actually the entire premise of us doing the special VSTO loader for Outlook was to provide an easy way around known Outlook 2003 bug when managed add-ins would keep Outlook alive (see &lt;a rel="nofollow" target="_new" href="http://blogs.officezealot.com/whitechapel/archive/2005/07/10/6747.aspx"&gt;http://blogs.officezealot.com/whitechapel/archive/2005/07/10/6747.aspx&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Sue Mosher cover VSTO-enabled add-ins quite extensively here - &lt;a rel="nofollow" target="_new" href="http://www.outlookcode.com/article.aspx?ID=42"&gt;http://www.outlookcode.com/article.aspx?ID=42&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As to how VSTO deals with shutting down references to COM objects - we load add-ins into separate AppDomains. When add-in is closing we will unload the AppDomain which has an effect of releasing all Runtime Callable Wrappers (RCW) that live in this AppDomain.&lt;/p&gt;
&lt;p&gt;This is all, of course, not to say that you should never use Marshal.ReleaseComObject in your add-in. There are other issues besides shutdown that might need a call to Marshal.ReleaseComObject (unfortunately I do not do a lot of Outlook-specific development so I do not have an exact list of issues).&lt;/p&gt;
&lt;p&gt;But make sure to check Sue Mosher's website.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Misha&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8654769</link><pubDate>Thu, 26 Jun 2008 08:07:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8654769</guid><dc:creator>karan</dc:creator><description>&lt;p&gt;Thanks for quick response.&lt;/p&gt;
&lt;p&gt;I read thru the articles you provided and they are great. I understand that addinLoader in vstose releases all com held by addin when last app instance is closed.&lt;/p&gt;
&lt;p&gt;But what about while the addin is still running. As i keep on using my addin operations, the memory consumption keeps on inceasing for the application (word, excel etc) process hosting addin. Currently i am setting the objects to null once i am done with them. Is it better to use marshal.releaseCComObject instead. &lt;/p&gt;
&lt;p&gt;I tried it though but didnt see much improvement.&lt;/p&gt;
&lt;p&gt;Also in my addin i am adding not more than 8 menus and their event handlers invoke UI in a sepearte process. But when i see the memory consumption of application, it is more than double compared to when application is run w/o addin. This is another cause of concern.&lt;/p&gt;
&lt;p&gt;I am still reading through the Sue mosher's website but didnt find anything that talks about the issues of memory management for VSTO addins.&lt;/p&gt;
&lt;p&gt;In Nutshell is it better to release com objects usign marshal.releasecomobject wherever possible or should it be left upto addinloader? Please let me know if you know any best practices/guidelines for this.&lt;/p&gt;
&lt;p&gt;I appreciate your help. Thanks Misha..&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8657733</link><pubDate>Thu, 26 Jun 2008 21:56:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8657733</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;P&gt;While running, VSTO does not help you managed the COM interop layer. The regular managed lifetime semantics apply here: when an RCW wrapping a COM object is GC'd - the reference to the underlying COM object will be removed. Usually, CLR is good to take care of memory and unreferenced RCWs are collected regularly. &lt;/P&gt;
&lt;P&gt;Said that, when you are dealing COM the references management is a bit more complicated. When managed objects are exposed to COM consumers (e.g. as event sinks) - these objects become 'rooted' objects that are not eligible for GC unless COM consumers do not reference those objects.&lt;/P&gt;
&lt;P&gt;The particular issue to be aware off is circular references that might prevent collection of objects - the most common case of creating such circular reference is when you have a class that stores a reference to a COM object and subscribes to an event from this COM object - this creates a circular reference and all involved objects will never get garbage collected untill you remove the event handlers or unload the AppDomain.&lt;/P&gt;
&lt;P&gt;Marshal.ReleaseComObject is useful when you want to control precisely when to remove the reference to a COM object from managed code. Notice, that ReleaseComObject does not remove the RCW - it rather decrements RCW's internal reference counter and when it drops to 0 - then when RCW will release the COM object.&lt;/P&gt;
&lt;P&gt;Sometimes, in well controlled cases, using RCO is useful, but overdoing it might lead to bugs like NullReferenceException.&lt;/P&gt;
&lt;P&gt;The most useful tool to troubleshoot memory links is SOS extension (you can use it in WinDbg or in VS while debugging native code). John Robbins has a very good book on debuggin which contains a good primer on SOS - but there are online references as well (e.g. you might want to look at Tess' blog &lt;A href="http://blogs.msdn.com/tess" target=_new rel=nofollow&gt;http://blogs.msdn.com/tess&lt;/A&gt;). In particular, the SOS has '!dumpheap -type System.__ComObject' command which allows you to see all the RCWs, then you can pick any object and run !GCRoot command that will tell what causes this object to stay alive.&lt;/P&gt;
&lt;P&gt;This is probably a lot of information. So I am ready to take follow up questions :)&lt;/P&gt;</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8702220</link><pubDate>Mon, 07 Jul 2008 18:29:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8702220</guid><dc:creator>lee_fuller</dc:creator><description>&lt;p&gt;Good morning, &lt;/p&gt;
&lt;p&gt;Apologies if this posting is in the incorrect area but I'm completely stumped on this problem.&lt;/p&gt;
&lt;p&gt;I've recently created a new Excel add-in using Visual Studio Tools for office and created the set-up package which installs the dlls, modifies the registry and updates the .NET security policy so the add-in can run. &lt;/p&gt;
&lt;p&gt;The package doesn't seem to install fully when running on a non-admin account machine. &amp;nbsp;Even if we run the install package using 'Run as:' and using a admin account it still doesn't work quite right (though there are no error messages on the install). &amp;nbsp;The dlls are installed correctly but the registry isn't written to and the security policies &lt;/p&gt;
&lt;p&gt;aren't updated. &lt;/p&gt;
&lt;p&gt;If I run the install package logged in directly as an administrator then it all works fine. &amp;nbsp;I would have thought using 'Run as:' when logged in without admin rights it would work as well but for some reason it doesn't. &lt;/p&gt;
&lt;p&gt;Does you know what's going on? &amp;nbsp;Is there some restiction on using 'Run as:' that doesn't quite replicate being logged in directly as someone with Admin rights? &lt;/p&gt;
&lt;p&gt;Many thanks in advance, &lt;/p&gt;
&lt;p&gt;Lee. &lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8703156</link><pubDate>Mon, 07 Jul 2008 20:54:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8703156</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Lee, &lt;/p&gt;
&lt;p&gt;for these kinds of questions it would be helpful to know the operating system you are using, version of VSTO you are using, version of Excel you are targeting and so on.&lt;/p&gt;
&lt;p&gt;But here are some things to keep in mind: if your setup installs registry keys under HKCU hive - keep in mind that when you use 'run as:' this will install the registry keys into the HKCU hive of the user you are 'run as'ing. Similar &amp;quot;redirection&amp;quot; happens if your setup modifies security policy at the user-level.&lt;/p&gt;
&lt;p&gt;On the other hand, if your setup tries to install any registry keys into HKLM registry hive - the non-admins will not be able to install these registry keys since they do not have the access.&lt;/p&gt;
&lt;p&gt;Also keep in mind that some pre-reqs for the setup i.e. VSTO runtime have to be installed with admin priviliges.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8732171</link><pubDate>Mon, 14 Jul 2008 23:55:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8732171</guid><dc:creator>mathjcb</dc:creator><description>&lt;p&gt;Hi Misha ,&lt;/p&gt;
&lt;p&gt;I already have an MSI in the field and do not want to push a new MSI because of the sheer number of users , I want to just create a registry patch . Is it possible to create an MSP file using OCT to do this job ?&lt;/p&gt;
&lt;p&gt;I was able to do that to propagate shared clip art registry entries to all users in the local machine .&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8732644</link><pubDate>Tue, 15 Jul 2008 08:34:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8732644</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Mathjcb,&lt;/p&gt;
&lt;p&gt;I know what an MSP is but no idea what an OCT is though. &lt;/p&gt;
&lt;p&gt;Unfortunately my depth of knowledge for building patches is not there to make a possible/impossible &amp;nbsp;or right/wrong sorts of calls.&lt;/p&gt;
&lt;p&gt;My gut says that if you created per-user installation package it might be very hard to create a per-machine patch. But again, I might be wrong.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8733980</link><pubDate>Tue, 15 Jul 2008 20:08:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8733980</guid><dc:creator>mathjcb</dc:creator><description>&lt;p&gt;I came to know about OCT(office customization tool ) from a microsoft engg on a tech support call . He helped me build the .msp file that creates registry entries in HKCU as he logs in and launches office, this was done to make a clipart organizer shared to all users who log into the machine . (I do not know the underlying principle behind it , but doesn't look like its the same as in your blog).&lt;/p&gt;
&lt;p&gt;Also after installing the per user installer package I was able to make it work for all users by running the below mentioned registry . &lt;/p&gt;
&lt;p&gt;Windows Registry Editor Version 5.00&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User Settings\MyAddin]&lt;/p&gt;
&lt;p&gt;&amp;quot;Count&amp;quot;=dword:00000001&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create]&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User &lt;/p&gt;
&lt;p&gt;Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create\Software]&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User &lt;/p&gt;
&lt;p&gt;Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create\Software\Microsoft]&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User &lt;/p&gt;
&lt;p&gt;Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create\Software\Microsoft\Office]&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User &lt;/p&gt;
&lt;p&gt;Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create\Software\Microsoft\Office\Word]&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User &lt;/p&gt;
&lt;p&gt;Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create\Software\Microsoft\Office\Word\Addins]&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\User &lt;/p&gt;
&lt;p&gt;Settings\Ameriprise.AdviceEditor.Word2007.EditorAddIn\Create\Software\Microsoft\Office\Word\Addins\MyAddin]&lt;/p&gt;
&lt;p&gt;&amp;quot;Description&amp;quot;=&amp;quot;MyAddin &amp;nbsp;-- an addin created with VSTO technology&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;FriendlyName&amp;quot;=&amp;quot;MyAddin&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;LoadBehavior&amp;quot;=dword:00000003&lt;/p&gt;
&lt;p&gt;&amp;quot;CommandLineSafe&amp;quot;=dword:00000001&lt;/p&gt;
&lt;p&gt;&amp;quot;TestingModeEnable&amp;quot;=&amp;quot;false&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;Manifest&amp;quot;=&amp;quot;C:\\Program Files\\Amp\\Ampf\\MyAddin.dll.manifest&amp;quot;&lt;/p&gt;
&lt;p&gt;I already had the CASPOL policy run at machine level , all I needed to do was propagate the registry to HKCU ,&lt;/p&gt;
&lt;p&gt;I was thinking of packaging this .reg as an MSP file using OCT , so my question .&lt;/p&gt;
&lt;p&gt;Appreciate your reply .&lt;/p&gt;
&lt;p&gt;Thanks ,&lt;/p&gt;
&lt;p&gt;Mathew&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8773037</link><pubDate>Sat, 26 Jul 2008 00:11:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8773037</guid><dc:creator>Steffen</dc:creator><description>&lt;p&gt;Hi Misha, &lt;/p&gt;
&lt;p&gt;first let me say how much I appreciate your work on this issue!&lt;/p&gt;
&lt;p&gt;Would you please clarify for me some questions regarding the Custom Action?&lt;/p&gt;
&lt;p&gt;What I have so far is my AddIn project with a working SetSecurity project included. I’ve added your code the same way like SetSecurity. What I do not understand is, how are the functions in your code are being called during install, uninstall and rollback (btw, what’s about commit?) What do I have to fill in as CustomDataAction properties on install/uninstall/rollback/commit? &lt;/p&gt;
&lt;p&gt;BTW, you’ve wrote that all the automatically registry entries from the registry view should be cleared. What’s about the “Classes” section? Should they be cleared as well? &lt;/p&gt;
&lt;p&gt;Do you have a sample project available which is demonstrating the above topics?&lt;/p&gt;
&lt;p&gt;Kind regards, &lt;/p&gt;
&lt;p&gt;Steffen&lt;/p&gt;
</description></item><item><title>VSTO v3 Deployment Session</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8775862</link><pubDate>Sat, 26 Jul 2008 17:54:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8775862</guid><dc:creator>Andrew Coates ::: MSFT</dc:creator><description>&lt;p&gt;I had a great time over the last couple of days hanging out with Christen Boyd and some of the other&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8869947</link><pubDate>Fri, 15 Aug 2008 18:37:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8869947</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt;I have installed my add-in for Office 2003 using the method you descibed above. It works perfect. The add-in works.&lt;/p&gt;
&lt;p&gt;But as you mentioned also above Office 2003 does not display HKLM registered add-ins in COM add-ins dialog.&lt;/p&gt;
&lt;p&gt;Is there any possibility to show the add-ins in the dialog?&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8870424</link><pubDate>Fri, 15 Aug 2008 21:57:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8870424</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;&amp;gt; Office 2003 does not display HKLM registered add-ins in COM add-ins dialog. Is there any possibility to show the add-ins in the dialog?&lt;/p&gt;
&lt;p&gt;I wish I knew how to work around this.&lt;/p&gt;
</description></item><item><title>how to deploy VSTO add-in(for office2003) to all User?</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8893535</link><pubDate>Mon, 25 Aug 2008 11:40:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8893535</guid><dc:creator>rocky</dc:creator><description>&lt;p&gt;hello,Misha&lt;/p&gt;
&lt;p&gt;I have read the article,but all is about office2007.Now I have created an addin for office2003 ,and deployed it use administrators.it does work.but when with common Users account,it doesn't work.How can I deploy the add-in for office2003 to all user?&lt;/p&gt;
&lt;p&gt;kind regards&lt;/p&gt;
&lt;p&gt;rocky cheng&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8904686</link><pubDate>Fri, 29 Aug 2008 12:14:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8904686</guid><dc:creator>Priya</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt;When I uninstall my add-in, I am creating a Delete key. But I am not able to increment/decrement the counter while uninstalling since the counter property/value itself is not available for my add-in in registry.&lt;/p&gt;
&lt;p&gt;Once my add-in is uninstalled, the local machine/user settings entry for my add-in has only one property/value called default. Any idea on this behaviour?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Priya&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8933274</link><pubDate>Mon, 08 Sep 2008 16:33:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8933274</guid><dc:creator>alan glover</dc:creator><description>&lt;p&gt;Does this article apply to Outlook 2003 if the add-in was created using VSTO 2005 SE? &amp;nbsp;It is a managed code add-in?&lt;/p&gt;
</description></item><item><title>Handling upgrades to VSTO 3.0 add-ins deployed to all users on Office 2007</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#8970389</link><pubDate>Tue, 30 Sep 2008 18:21:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970389</guid><dc:creator>smclewin</dc:creator><description>&lt;p&gt;Misha,&lt;/p&gt;
&lt;p&gt;Your series of articles were exceedingly helpful. &amp;nbsp;I started in writing my first Office add-in using VS2008, VSTO 3.0 and Office 2007 in January, at a time when no books were yet released for VS2008/VSTO3, most blogs talked about VSTO 2005 SE and VS2005 and I had this little problem of doing a multi-user installation of an add-in. &amp;nbsp;Thank you for that.&lt;/p&gt;
&lt;p&gt;I have a question about handling upgrades.&lt;/p&gt;
&lt;p&gt;The add-in I've written uses several assemblies from our in-house code library to connect to our back end system. &amp;nbsp;The add-in itself is a front for a document store product we create and allows user to edit documents and spreadsheets in Office apps.&lt;/p&gt;
&lt;p&gt;We install those assemblies to the GAC in the setup program - we simply could not get the add-in to find the assemblies unless they were in the GAC.&lt;/p&gt;
&lt;p&gt;I'm running into problems with testing upgrades to the system.&lt;/p&gt;
&lt;p&gt;Our deployment is such that an administrator installs the add-ins on workstations that are mult-tenant through shifts throughout the day. &amp;nbsp;On the initial install, keys properly propagate from the HKLM hive into the HKCU hive for each user. &amp;nbsp;As each user starts Word/Excel, the clickonce vsto install process happens per user.&lt;/p&gt;
&lt;p&gt;On uninstallation, the DELETE command is placed into HKLM, but typically we are uninstalling and then immediately installing a new version. &amp;nbsp;There is simply no guarantee that each user will log in to have the DELETE command executed.&lt;/p&gt;
&lt;p&gt;What I'm finding is that when the administrative account logs in, uninstalls the vsto add-in from the Add/remove Programs list, uninstalls the setup program the Add/remove programs list and then reinstalls that we have a problem.&lt;/p&gt;
&lt;p&gt;The add-ins work fine under the administrative account. &amp;nbsp;They won't start for the regular users after the upgrade process. &amp;nbsp;VSTO_LOGALERTS messages cite missing assemblies as the reason.&lt;/p&gt;
&lt;p&gt;Are there special considerations I need to make for upgrading from one version of an add-in with satellite assemblies to the next for all users using the techniques you described here?&lt;/p&gt;
&lt;p&gt;Thanks for your time. &amp;nbsp;You've really helped with this series.&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
</description></item><item><title>HOW TO:Alter the "SetSecurity" and "Setup" project to support deployment of a VSTO Add-In for All Users</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9003623</link><pubDate>Fri, 17 Oct 2008 23:19:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9003623</guid><dc:creator>Akash Blogging......</dc:creator><description>&lt;p&gt;Why do we need to alter the &amp;amp;quot;SetSecurity&amp;amp;quot; and the &amp;amp;quot;Setup&amp;amp;quot; project? I sincerely suggest&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9044107</link><pubDate>Wed, 05 Nov 2008 15:46:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9044107</guid><dc:creator>Len</dc:creator><description>&lt;p&gt;Hello there!&lt;/p&gt;
&lt;p&gt;I just have a question about addin deployment. With regards to the way the solution depends on the &amp;quot;Count&amp;quot; value being incremented before keys will be propagated from HKLM...&amp;quot;Create&amp;quot; to HKCU:&lt;/p&gt;
&lt;p&gt; - does this mean that if the user who installs an addin originally (admin) then starts an Office Application (causing the keys to be copied to their own HKCU), no other user will see the HKCU keys until a new install or repair is done?&lt;/p&gt;
&lt;p&gt;From what I can see, Count only gets incremented at install or repair time- does this mean that the keys will only be copied once? I.e: for the next user that starts an Offce application?&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9044823</link><pubDate>Wed, 05 Nov 2008 20:55:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9044823</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Len,&lt;/p&gt;
&lt;p&gt;On initial installation the Count value does not need to be incremented because there is nothing to increment - it did not exist before :)&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9123944</link><pubDate>Wed, 19 Nov 2008 15:48:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9123944</guid><dc:creator>Aarun Awasthi</dc:creator><description>&lt;p&gt;Hey Nice approach !!!!!&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Aarun &lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9202273</link><pubDate>Fri, 12 Dec 2008 17:16:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9202273</guid><dc:creator>Mike Hatfield</dc:creator><description>&lt;p&gt;Hi Misha,&lt;/p&gt;
&lt;p&gt;Many thanks for these two articles. The processes seem to be working ok, apart from one final stumbling block I can't seem to shift regarding common settings for both Word 2003 and 2007. (I'm using Visual Studio 2005 and VSTO 2005 SE, all on XP.)&lt;/p&gt;
&lt;p&gt;I understand that Word 2003 will happily load an add-ins registered at HKLM\Software\Microsoft\Office\Word\Addins whereas 2007 wants them in HKCU. No problem and I've got a SetRegistry project copying the keys as described in this article.&lt;/p&gt;
&lt;p&gt;But, Word 2007 absolutely refuses to load my add-in if the HKLM key exists at all. Using RegMon, I can see it looking in HKLM, then HKCU, then setting LoadBehavior to &amp;quot;0&amp;quot; in HKLM. Unfortunately, this must be overwriting the valid HKCU value too (in some internal structure) because the add-in doesn't load. If I remove the HKLM key, all is well.&lt;/p&gt;
&lt;p&gt;I notice other people seem to have this working - so presume I've missed a step somewhere? I'd appreciate any pointers on this.&lt;/p&gt;
&lt;p&gt;Many thanks again,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9215958</link><pubDate>Mon, 15 Dec 2008 01:54:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9215958</guid><dc:creator>Larry</dc:creator><description>&lt;p&gt;I sure wish you would answer the questions regarding custom actions, Misha. &amp;nbsp;I program in VB and I'm trying to understand how to use the three C# code segments, but I'm struggling.&lt;/p&gt;
&lt;p&gt;Why not just give us a complete walkthrough for C# or VB and be done with it? &amp;nbsp;That way we can take our pick.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9456346</link><pubDate>Tue, 03 Mar 2009 12:51:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9456346</guid><dc:creator>Nikhil Sharma</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks alot Misha.&lt;/p&gt;
&lt;p&gt;This article solved my lots of problems.&lt;/p&gt;
&lt;p&gt;Thanks and Best Regards,&lt;/p&gt;
&lt;p&gt;Nikhil sharma&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9511718</link><pubDate>Thu, 26 Mar 2009 22:25:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9511718</guid><dc:creator>mailtorakib</dc:creator><description>&lt;p&gt;Hello Misha,&lt;/p&gt;
&lt;p&gt;Thank you for this nice article. &lt;/p&gt;
&lt;p&gt; I am trying to build an add-in for Outlook 2003 and Outlook 2007. I have applied this method as you described for installing the add-in for all user. It is working for Outlook 2003 and Registry entries propagates as they should for Outlook 2007.&lt;/p&gt;
&lt;p&gt; My add-in loads in Outlook 2003 and works fine but it doesn't load in Outlook 2007. After checking in the Tools --&amp;gt; Trust Center --&amp;gt; Addins, I found out that my Addin is listed as Inactive addin. I tried the approach for activating inactive addins, but it still doesn't load. I have tried to grant full trust manually using Caspol.exe again and again, but it doesn't help.&lt;/p&gt;
&lt;p&gt;The &amp;quot;LoadBehavior&amp;quot; entry in the registry remains 3 even after the addin fails to load.&lt;/p&gt;
&lt;p&gt;Can you please give me any idea on this issue?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Rakib Hasan&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9513844</link><pubDate>Fri, 27 Mar 2009 14:26:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9513844</guid><dc:creator>Mike Hatfield</dc:creator><description>&lt;p&gt;Hi Rakib&lt;/p&gt;
&lt;p&gt;You're seeing exactly the same problem as in my comment: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9202273"&gt;http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9202273&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What's happening is Office 2007 sees the HKLM entries and immediately flags your Addin with LoadBehavior=3. There's nothing I've found to workaround this.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9514613</link><pubDate>Fri, 27 Mar 2009 20:07:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9514613</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;All, with the help of one of the readers we have confirmed the source of the killbit problem. &lt;/p&gt;
&lt;p&gt;It turns out that some international installations of Windows XP SP2 do install the killbit (I did suspect one of the security updates - but turned out this was way simpler than that). We have confirmed that installing Windows XP SP2 Czech OS do cause killbit to appear, but that is not the case with either US or German editions.Such inconsistency is the source of major problems for out developers where solutions mysteriouly do not work at customers sites.&lt;/p&gt;
&lt;p&gt;We did work with folks in Windows to get this issue addressed by publishing a global update removing this reg key but due to relatively easy workaround, the relatively old age of the OS itself and thus limited support scope - the update did not get approved.&lt;/p&gt;
&lt;p&gt;Instead, Microsoft we are planning to publish a KB article confirming the problem and also recommending to either remove the registry key during the setup or, if no custom setup of the solution is done e.g. when doc-level solution are deployed onto a server, then solution code can detect the presence of this registry key and inform the user that this key needs to be removed for the solution to work properly.&lt;/p&gt;
&lt;p&gt;Thanks a lot to Ernst for helping to troubleshoot this.&lt;/p&gt;
&lt;p&gt;Misha&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9516502</link><pubDate>Sun, 29 Mar 2009 04:03:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9516502</guid><dc:creator>mailtorakib</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Thanks a lot. Mine is the same problem as yours. After removing the HKLM entries it is working fine.&lt;/p&gt;
&lt;p&gt;So, what I understood that, I can't make the registry entries for both outlook simultaneously. So we must re-install the add-in each time the user switches from one version(2003/2007) of outlook(or any office component) to another.&lt;/p&gt;
&lt;p&gt;Is it right?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Rakib Hasan&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9618652</link><pubDate>Fri, 15 May 2009 17:41:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9618652</guid><dc:creator>Manpreet</dc:creator><description>&lt;p&gt;Really Bokus article. NO proper explaination, I went through both part. In second part, When Author is writing about custom action. Not a single proper step given about how and what we have to do. &lt;/p&gt;
&lt;p&gt;I went through from first and came to custom registry action. I stuck because Author is busy to give the credit to his friend, He forgot , he is explaining this article, Even there is no other url given through Which developer can go through and understand how to implement the require step. &lt;/p&gt;
&lt;p&gt;No worth, to get half knowledge. I appriciate if Author share either one sample project code or explain proper step.&lt;/p&gt;
&lt;p&gt;I feel First time , I saw very unprofessional article in this site.&lt;/p&gt;
&lt;p&gt;manpreetsinghbhatia@gmail.com&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9618683</link><pubDate>Fri, 15 May 2009 17:59:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9618683</guid><dc:creator>Manpreet Singh Bhatia</dc:creator><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;See more better and more relaible example has given by Microsoft.Url is &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/cc136646.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc136646.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9618693</link><pubDate>Fri, 15 May 2009 18:07:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9618693</guid><dc:creator>Manpreet</dc:creator><description>&lt;p&gt;See this article to understand this article&lt;/p&gt;
&lt;p&gt;http: // msdn.microsoft.com/en-us/library/cc136646.aspx&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9887929</link><pubDate>Fri, 28 Aug 2009 07:49:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9887929</guid><dc:creator>Wasabi</dc:creator><description>&lt;p&gt;Thank's a lot.&lt;/p&gt;
&lt;p&gt;This explains a lot why my LoadBehavior get sets to 0 in HKLM&lt;/p&gt;
&lt;p&gt;Wasabi&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9895698</link><pubDate>Wed, 16 Sep 2009 08:31:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895698</guid><dc:creator>Dennise</dc:creator><description>&lt;p&gt;How can i deploy an outlook add-in to all users using Terminal Server and Citrix.&lt;/p&gt;
&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9896217</link><pubDate>Thu, 17 Sep 2009 10:36:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896217</guid><dc:creator>sri.net</dc:creator><description>&lt;p&gt;Hello Misha&lt;/p&gt;
&lt;p&gt;I am a beginner at this vsto addin&lt;/p&gt;
&lt;p&gt;i just created a combined setup project for individual addins for word, excel and power point&lt;/p&gt;
&lt;p&gt;i also added the setsecurity project for making the assemblies FullTrust&lt;/p&gt;
&lt;p&gt;all the installation, usage and and unistallation is working perfectly&lt;/p&gt;
&lt;p&gt;one problem is that the Security Code group created for the addins is not getting overwritten when i am re-installing or deleting when i am uninstalling&lt;/p&gt;
&lt;p&gt;What should i do???&lt;/p&gt;
&lt;p&gt;thank you again for this post&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9898223</link><pubDate>Wed, 23 Sep 2009 02:30:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898223</guid><dc:creator>William Wegerson</dc:creator><description>&lt;p&gt;What do you mean when you state, about 2003 addin not showing up in Outlook COM-Addins list when you say:&lt;/p&gt;
&lt;p&gt;&amp;lt;blockquote&amp;gt;From this point on the loading failures can be seen using &lt;/p&gt;
&lt;p&gt;VSTO_DISPLAYALERTS environment variable.&amp;lt;/blockquote&amp;gt;&lt;/p&gt;
&lt;p&gt;I cannot find any information about VSTO_DISPLAYALERTS. Where is this environment variable set and where does one view it?&lt;/p&gt;
&lt;p&gt;advTHANKSance&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9898238</link><pubDate>Wed, 23 Sep 2009 03:39:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898238</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;Oh, it should be VSTO_SUPPRESSDISPLAYALERTS. I will update the post.&lt;/p&gt;
</description></item><item><title>re: Deploying your VSTO Add-In to All Users (Part II)</title><link>http://blogs.msdn.com/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx#9904047</link><pubDate>Wed, 07 Oct 2009 03:19:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9904047</guid><dc:creator>Dennise</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I hope someone can help me. this is my problem, we have an add-in created in 2003. And then I upgraded it using vb 2005. upgrade the version label. When I upgrade the previous add-in version 1.0 installed on the clients machine to 1.2, it worked fine.&lt;/p&gt;
&lt;p&gt;Now, I have created another upgrade on the add-in. so now I have version 1.3. The problem now is when I upgrade the add-in on client's machinen from 1.2 to 1.3, the add-in is not being loaded on outlook. It is returning an error, failed to grant permission thing.... And then when i repaired 1.3, it is now working fine.&lt;/p&gt;
&lt;p&gt;Here is another wierd thing, when i try to upgrade the add-in from 1.0 to 1.3 (skipping 1.2), everything is working fine.&lt;/p&gt;
&lt;p&gt;So I am really not sure what is happening when i upgrading the add-in from 1.2 to 1.3 that's causing the permission issue.&lt;/p&gt;
&lt;p&gt;Can someone please help me. I am kind a desperate in here.&lt;/p&gt;
&lt;p&gt;THanks a lot&lt;/p&gt;
&lt;p&gt;Dennise&lt;/p&gt;
</description></item></channel></rss>