Hi Kenneth,
Firstly, we usually add a file to a ClickOnce application using Mage.exe or
MageUI.exe tool.
In detail, add the file to the application directory with the rest of the
application's files and then update the application manifest to list the
file newly added using Mage.exe. For example:
mage -u v1.0.0.0\Application.manifest -FromDirectory v1.0.0.0
Performing this task re-creates the list of files in your application
manifest and also automatically generates the hash signatures. Then we need
to re-sign the application menifest as well as the deployment manifest. For
more information on how to include a data file in a ClickOnce application,
please refer to the following MSDN document:
http://msdn2.microsoft.com/en-us/library/6fehc36e.aspx
As for your question, I haven't found out how to compute hash for a file
programmatically. But my thought is that even if we could compute hash for
a file programmatically, we still need to re-sign the application manifest
and deployment manifest using Mage.exe or MageUI.exe tool afterwards.
I will go on the research and as soon as I get an answer, I will get it
back to you.
I appreciate your patience!
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.