Thursday, April 16, 2009

Quick script for uploading updating InfoPath Form

Once you've uploaded and activated an InfoPath form which requires admin privileges [has code behind, etc], it gets tedious uploading new versions (slow) and iisreset-ing every time you have an update you want to test.

So here's a basic little script to upload the updated form.
Just copy and paste into notepad and save as a .cmd, and every time you publish a form just run this script.

stsadm.exe -o UpgradeFormTemplate -filename "C:\MyForm.xsn"
iisreset

No comments:

Post a Comment