Welcome to MSDN Blogs Sign in | Join | Help

InfoPath Team Blog

Tips and tricks to get the most out of Microsoft InfoPath

News

  • For questions, comments, and feedback please use the public newsgroup: microsoft.public.infopath
    This is provided "AS IS" with no warranties, and confers no rights. Use of included script samples and forms are subject to the terms specified in the Terms of Use.
Modifying InfoPath manifest.xsf file from script (5/5)

Part 5 of 5: The final function

 

And the final function is

 

function FixupSolutionXSN(

      inputDirectory,

      xsnInputName,

      outputDirectory,

      xsnOutputName,

      serviceURL,

      wsdlURL)

{

      var XsnInputPath = Combine(inputDirectory, xsnInputName);

      var XsfInputPath = Combine(inputDirectory, "manifest.xsf");

      var XsfOutputPath = Combine(outputDirectory, "manifest.xsf");

 

      ExtractFilesFromXSN(XsnInputPath, outputDirectory);

      FixupXSF(XsfInputPath, XsfOutputPath, serviceURL, wsdlURL);

      MakeXSNFromFiles(inputDirectory, "manifest.xsf", outputDirectory, xsnOutputName);

}

 

Now the gentle reader has free reins to drive the code above to the helpful utility.

 

Converting the script to managed code would be a good exercise as well.

 

 

Posted: Friday, May 07, 2004 5:25 PM by infopath

Comments

ivl said:

Hi,

After performing all of these steps, how do you sign the form template again with a certificate?

What I mean is, do the following programmatically:

http://office.microsoft.com/en-us/infopath/HP101636661033.aspx?pid=CH101686141033

# January 24, 2007 5:57 AM

infopath said:

To ivl: since the InfoPath .xsn file is just a renamed .cab, you can use a Windows SDK tool signcode.exe to sign a cab file from script. More info here:

http://support.microsoft.com/default.aspx?scid=kb;en-us;247257

-Alex

# January 24, 2007 11:27 AM
Anonymous comments are disabled
Page view tracker