简体   繁体   English

如何在 Installshield (2016) msi 项目中禁用字体注册?

[英]How do I disable font registration in an Installshield (2016) msi project?

We are using InstallShield 2016 for developing our msi.我们正在使用 InstallShield 2016 来开发我们的 msi。 We have an issue wherein, ttf fonts carried by our msi are getting installed in system.我们有一个问题,其中我们的 msi 携带的 ttf 字体正在安装在系统中。 We do not want fonts to get registered.我们不希望字体被注册。 We simply want to carry them.我们只是想携带它们。 But since they get registered, other applications like Outlook, skype, chrome start using them.但自从它们注册后,其他应用程序(如 Outlook、Skype、Chrome)开始使用它们。 This creates problems for us during uninstallation.这在卸载过程中给我们带来了问题。

So our requirement is to carry the fonts, but not to get them registered.所以我们的要求是携带字体,而不是注册它们。 Since InstallShield by default registers the ttf fonts, how can we disable this behavior?由于 InstallShield 默认注册 ttf 字体,我们如何禁用此行为?

What I have tried:我尝试过的:

Got some suggestion on stackoverflow but they are not relevant to InstallShield 2016. Please provide us a step-by-step guide.有一些关于 stackoverflow 的建议,但它们与 InstallShield 2016 无关。请向我们提供分步指南。

I would try one or more of the following:我会尝试以下一项或多项:

  • Condition out the RegisterFonts action in the InstallExecuteSequence (and InstallUISequence if your installations are not silent).在 InstallExecuteSequence 中调整 RegisterFonts 操作(如果您的安装不是静默安装,则使用 InstallUISequence)。 This is as simple as putting "1=0" in the Condition column for the associated action.这就像在关联操作的条件列中放置“1=0”一样简单。

  • Ensure the Directory of the Component containing the font file(s) is NOT set as FontsFolder.确保包含字体文件的组件目录未设置为 FontsFolder。

  • Delete all entries in the Fonts table so that they dont register (note that they will still exist in the File table after this).删除 Fonts 表中的所有条目,使它们不会注册(注意,在此之后它们仍将存在于 File 表中)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM