title: How can I automate the process of deploying an InfoPath Form to SharePoint Server 2007?
body: <p>It is a real pain to deploy my InfoPath 2007 Forms from the designer into our development environment's SharePoint server.  All of our forms require "full trust" since they include business logic written in C#.  Here are the manual steps:</p>
  
  <p>1) Run the "Publish Form" wizard in InfoPath, specifying the target site to publish to and location to save the xsn file. </p>
  
  <p>2) De-activate the existing version of the form from the site collection features (if an older version exists).</p>
  
  <p>3) Log into Central Admin on the development server.  Navigate to Application Management -> Manage Form Templates and upload the xsn file.</p>
  
  <p>4) Activate the form as a site collection feature.</p>
  
  <p>Does anyone have an idea how this can be automated?  Maybe via stsadm?</p>