Turn: http://www.cnblogs.com/andrewma/archive/2005/02/25/109138.html
There are two ways to create a fully trusted infopath form: regform and digital signature.
Use the built-in command line tool regform of infopath
Eg:
Regform/uURN: myform: mycompany/T Yes/MsiC: \ myforms \ mytrustedform. xsn
Parameter U: the urn name must be unique and smaller than 255 characters
T: whether to increase full trust
Msi: generate an MSI Installation File (Microsoft Visual Studio. NET tools are required)
Without the Microsoft Visual Studio. NET tool, it generates a JS Installation File Using infopath.ExternalapplicationObjectRegistersolutionMethod Creation
Eg:
Objipextapp = new activexobject ("infopath. externalapplication ");
Objipextapp. registersolution ("C: \ myforms \ mytrustedform. xsn");
Objipextapp. Quit ();
Objipextapp = NULL;
Note: The path must be an absolute path.
Revoke full trust:
For MSI installation, Run "Remove ".
If it is JS, use unregistersolution to replace the above registersolution Method