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

3

6

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?

Tor answered 18/9, 2008 at 18:4 Comment(0)
T
8

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

Tights answered 18/9, 2008 at 19:39 Comment(3)
Awesome! Thanks for pointing me in the right direction. I found the blog post by Sahil Malik (3rd link in your answer) to be the most concise and easiest process to understand overall.Tor
I wish I knew about this about 18 months ago... :|Cotangent
These links are not working. I also need the help to automate full trust infopath form deployment.Transmigrate
D
0

We can build our own service to deploy the InfoPath form in Share point Server. I have developed the service to solve my problem. I have used “STSADM” command to deploy the InfoPath form. You have to understand the STSADM syntax so that you can build the script to deploy the InfoPath form.

Here I have summarized what I did. It may useful for you to start. I developed the web service that will construct the script using STSADM and save it as bat file and run the batch file using Process command available in C#.

Dorris answered 10/1, 2009 at 14:48 Comment(0)
I
0

Another couple of options are:

1) After running the "publish form" wizard use a batch file with stsadm commands as per the following blogpost: http://sharenotes.wordpress.com/2008/03/18/using-stsadm-to-deploy-upgrade-update-infopath-forms-templates-with-managed-code-behind/

2) Use the InfoPath Form Deployment Tool on Codeplex (or you can simply use the tool to generate the batch files): http://www.codeplex.com/InfoPathFormsInstall

Irade answered 12/2, 2009 at 6:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.