Programmatically Changing Manifest location

I’ve created an XSD to be used as placeholders in documents. At runtime I’m iterating through the nodes and filling in the correct values. The problem comes that I would like the manifest file to reside on a location that I can’t replicate locally. In my case I have the manifest file stored at http://myco/deployment/manifest.xml, but for the end users it’ll be accessed as http://intranet.theirco/somesite/manifest.xml. What I need to do is develop the document locally on my machine, then replace the manifest location with the Production environment before deployment.

I can’t find a way to change the location of a manifest file using the Word object model. I can change the individual Schema locations, but that defeats my purpose for using the manifest (automatic updates). Is there a way to change the manifest at the individual document level?

[896 byte] By [niversen] at [2008-2-4]
# 1
See this page for the directions on how to do this.

How to: Update Application Manifest Assembly Paths Programmatically
http://msdn2.microsoft.com/library/0cd0wa59(en-us,vs.80).aspx

Also see Deploying Office Solutions
http://msdn2.microsoft.com/library/hesc2788(en-us,vs.80).aspx

Paul Stubbs
Program Manager - VSTO
http://blogs.msdn.com/pstubbs/

PaulStubbs at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...