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?

Saul Dolgin
  • 8,624
  • 4
  • 37
  • 43

3 Answers3

8

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

Jan Tielens
  • 358
  • 1
  • 4
  • 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. – Saul Dolgin Sep 18 '08 at 21:16
  • I wish I knew about this about 18 months ago... :| – Ryan Shripat Feb 19 '09 at 21:03
  • These links are not working. I also need the help to automate full trust infopath form deployment. – Preeti Mar 03 '21 at 08:18
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#.

guna Samba
  • 474
  • 1
  • 7
  • 17
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

mundeep
  • 2,727
  • 1
  • 22
  • 24