条件安装字体文件 [英] Conditional Installation of font file
问题描述
该解决方案为我的VB.net项目使用Visual Studio 2010安装程序(在Windows 7上运行)安装项目。安装项目有特殊文件夹'字体文件夹',有14种字体,不属于Windows 7字体。这些字体来自梵语和泰米尔语。我也要安装这些字体。 msi设置现在工作正常。但是我有两个问题。
1.我是否有必要有条件地安装字体文件,即如果文件存在则不应复制,如果不存在则复制。
2.如果答案是肯定的,那么请告诉我如何一步一步地给我或要修改的属性。
谢谢
The solution has a setup project using Visual Studio 2010 installer(running on Windows 7) for my VB.net project. The setup project has special folder 'Fonts Folder' having 14 fonts which are not part of windows 7 fonts. These fonts come from languages Sanskrit and Tamil. I have to install these fonts also. The msi setup works fine as of now. However I have two questions.
1. Is there a necessity that I have to conditionally install the font file i.e. If file exist it should not be copied and if not exist then to be copied.
2.If the answer going to be Yes, then please advise me as to how to go step by step or give me properties which are to be modified.
Thanks
推荐答案
首先,您将检查windows \fonts文件夹以查看您的字体是否已安装。如果是这样,那么就没有必要重新安装它。
如果你需要安装它,那么你可以按照发现的指示这里,在此所以几乎完全相同的问题。
-Pete
First, you would check the windows\fonts folder to see if your font is already installed. If so, then there's no need to re-install it.
If you DO need to install it, then you can follow the instructions found here, in this SO question about almost exactly the same thing.
-Pete
这篇关于条件安装字体文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!