Search code examples
sharepointdeploymentsharepoint-2007infopathstsadm

How can I automate the process of deploying an InfoPath Form to SharePoint Server 2007?


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:

1) Run the "Publish Form" wizard in InfoPath, specifying the target site to publish to and location to save the xsn file.

2) De-activate the existing version of the form from the site collection features (if an older version exists).

3) Log into Central Admin on the development server. Navigate to Application Management -> Manage Form Templates and upload the xsn file.

4) Activate the form as a site collection feature.

Does anyone have an idea how this can be automated? Maybe via stsadm?


Solution

  • You can package InfoPath forms in SharePoint solutions (WSP files). These can be deployed by making use of STSADM. For more information: