Introduction

Do you have several InfoPath forms and deployed to one location (Server)? Do you want to move them to another location? It is a pain, don't you think?? Here is the tool to deploy the InfoPath forms to any other network location.

Background

I know, some one might be thinking why we need several forms; can't you have multiple views in one form and deploy that form to server? Here is the problem we had with multiple views sharing the one data source. If you have a data field that is shared by multiple views and each view use that field differently, if one view changes the field value the other views will also affect with the change. So we decided to go with different forms for each view. The next hectic job is deploying them. Especially when you have multiple environments like development, QA and production, it is very tough to publish manually to each environment. I found an article on Microsoft site to automate the forms publishing. Unfortunately the code was in Jscript, and then I decided to develop a tool.

Points of Interest

References

History

4/20/2007 Created.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

hey Srinivas: I am working on the same thing but I don't know how to use this CABSDK. I tried to download your code but there is something wrong with it and it won't allow me download. so can you please help me out here a littel. thanks in advance.

I also tried the script with no success - I couldn't find eithre the makecab file, or the xsn file. But, if you examine the script, you may try to add this line:var g_Xsf2Namespace = "http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions"

and also alter this line to include the second selection namespace:xsfDom.setProperty( "SelectionNamespaces", "xmlns:xsf='" + g_XsfNamespace + "'," + " xmlns:xsf2='" + g_Xsf2Namespace + "'" );