The Infopath SDK has a topic on how to create and deploy a fully trusted
form, please check that documentation.,
Basically you will do..
*In design mode, on the Tools menu, click Form Options.
*In the Form Options dialog box, click the Security tab.
*Clear the selection for Automatically determine security level based on
form's design (recommended), if it is selected.
*Select Full Trust (the form has access to files and settings on the user's
computer).
*Under Form Signing, select Sign this form.
*Click Create Certificate to create a new digital certificate.
*Alternatively, click Select Certificate to select an existing certificate.
In the Select Certificate dialog box, click the certificate that you want to
digitally sign the form with.
* Click OK.
Now you can proceed with publish form.