<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Web Deployment Tool (MS Deploy)</title><link>http://forums.iis.net/1144.aspx</link><description>Questions about using the Microsoft Web Deployment Tool to sync or migrate sites and servers.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Custom provider</title><link>http://forums.iis.net/thread/1907761.aspx</link><pubDate>Sat, 20 Jun 2009 05:29:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907761</guid><dc:creator>kateroh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907761.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1907761</wfw:commentRss><description>&lt;p&gt;Add method gets called on a destination object whenever GetAttributes method throws a DeploymentException on that object. GetAttributes is used to validate the object without taking an action (on both source and destination) and Add method is used to validate the object and perform an action. Since the action takes place only on the destination object, you need to throw in GetAttributes method, so that Add() gets called, and then execute the commands in the batch.&lt;/p&gt;&lt;p&gt;Check out &lt;a href="http://blogs.iis.net/kateroh/archive/2009/06/19/msdeploy-custom-provider-to-execute-batch-files.aspx" title="MSDeploy Custom Provider to execute batch files"&gt;this article about MSDeploy batch file provider&lt;/a&gt; with sample code and explanations. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom provider</title><link>http://forums.iis.net/thread/1902419.aspx</link><pubDate>Thu, 30 Apr 2009 17:48:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902419</guid><dc:creator>yaminij</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1902419.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1902419</wfw:commentRss><description>&lt;p&gt;You wouldnt have been able to serialize a batch file over to the destination machine in the RC version because DeploymentObject.GetStream() was not public in this release. However we fixed in the RC re-release, so you should be able to accomplish this without any issues. Please look at this &lt;a class="" href="http://blogs.iis.net/msdeploy/archive/2009/04/29/changes-to-the-custom-provider-for-mysql-dbfullmysql.aspx"&gt;sample&lt;/a&gt;&amp;nbsp; to see how to accomplish this. &lt;/p&gt;
&lt;p&gt;You would need to create a Stream of the batch file and return the stream inside the GetStream() override method.&lt;/p&gt;
&lt;p&gt;Then, inside of Add() method which gets executed on the destination, do a source.GetStream(), to obtain the source batch file stream, create a temporary .cmd file and execute it.&lt;/p&gt;
&lt;p&gt;Hope this helps. Please let us know if you would like us to put together a code sample for you.&lt;/p&gt;</description></item><item><title>Re: Custom provider</title><link>http://forums.iis.net/thread/1900985.aspx</link><pubDate>Fri, 17 Apr 2009 17:05:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1900985</guid><dc:creator>lawrencc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1900985.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1900985</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m attempting to write a provider that will allow me to remotely execute a batch or executable file on the destination machine.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom provider</title><link>http://forums.iis.net/thread/1900983.aspx</link><pubDate>Fri, 17 Apr 2009 16:31:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1900983</guid><dc:creator>yaminij</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1900983.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1900983</wfw:commentRss><description>&lt;p&gt;The add method will get called only when you attempt to do a sync to a destination object. Could you tell us what you are attempting to do with your custom provider?&lt;/p&gt;</description></item><item><title>Custom provider</title><link>http://forums.iis.net/thread/1900953.aspx</link><pubDate>Fri, 17 Apr 2009 14:51:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1900953</guid><dc:creator>lawrencc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1900953.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1900953</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m attempting to write a custom provider for MSDeploy. Unfortuantely it seems that the &amp;quot;add&amp;quot; method is never being called. What needs to occur for this method to run? I used the same structure as the example; however, I removed the GetStream flag and replaced most methods with file output statements that log to a file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>