So can you please confirm that if I want to install a font with my
application, I cannot use ClickOnce; instead I must create a Setup and
Deployment project and deploy that way.
> Hi Robin,
>
[quoted text clipped - 33 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Linda Liu [MSFT] - 15 Feb 2007 03:46 GMT
Hi Robin,
Thank you for your feedback.
I suggest that you create a setup package for the fonts and use ClickOnce
to deploy your application.
When installing your program on a client for the first time, the user may
run the setup package to install the fonts first and then install the
program via ClickOnce.
If your program is updated and has a new version, the user may upgrade the
program via ClickOnce and needn't run the setup package in this case.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
Linda Liu [MSFT] - 16 Feb 2007 11:11 GMT
Hi Robin,
How about the problem now?
If you have any question, please feel free to let us know.
Thank you for using our MSDN Managed Newsgroup Support Service!
(BTW, I will be on a long vacation from the next Monday to Friday. During
my leave, my team mates will follow up with you and it may not in time.
Sorry for the inconvenience it may bring to you!)
Sincerely,
Linda Liu
Microsoft Online Community Support
Jeffrey Tan[MSFT] - 20 Feb 2007 05:38 GMT
Hi Robin,
Since my colleague Linda is on vacation this week, I will continue to work
with you.
Based on my understanding, you wanted to deploy&install some special fonts
in ClickOnce application.
Yes, normally, ClickOnce application does not support deploying fonts to
the system font directory. However, if you want to implement such function,
you may programmatically copy the font to "C:\windows\fonts" directory and
p/invoke AddFontResourceW GDI API to add this font resource. But this
technology only allows the other applications to use this installed font
resource. Your current ClickOnce application can not use this font unless
you restarted it. A workaround is using PrivateFontCollection.AddFontFile
method to allow this font to be used in the current ClickOnce application.
Please refer to my orginal reply below:
http://groups.google.com/group/microsoft.public.dotnet.framework/msg/347f09c
3283f6b0d
Hope it makes sense to you.
Best regards,
Jeffrey Tan
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.