I understand that I can do this easily using the InfoPath Designer. However, I need to deploy the InfoPath form using a feature.
Once the feature is activated, the InfoPath form is shown as a content type. My question is how can I promote InfoPath fields to columns in the form library using code in feature deployment?