title: SharePoint Form Library: Programmatically or Stsadm command to change content type to custom form template
body: <p>I have a custom site definition which includes a form library.  I have a form template created in InfoPath.  Through SharePoint features I can deploy everything except I cannot figure out how to change the default form for the form library to point to the form I created in InfoPath.  I have a feature which deploys the form just great but I have to manually go into advanced settings on the form library, allow content type management, change the default content type to the template, and remove the default content type.</p>
  
  <p>Any ideas on how to do this programmatically or through stsadm would be greatly appreciated!</p>
  
  <p>Colby Africa   </p>