在 Windows 上只安装 Quicktime 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/74586/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:12:30  来源:igfitidea点击:

Installing just Quicktime libraries on Windows

windowsinstallerquicktime

提问by NeARAZ

There's Quicktime SDKfor Windows, but any application that uses it needs quicktime runtime libraries to be installed on the system (SDK itself just has headers and library stubs, and not the actual DLLs).

有适用于 Windows的Quicktime SDK,但任何使用它的应用程序都需要在系统上安装Quicktime运行时库(SDK 本身只有头文件和库存根,而不是实际的 DLL)。

If my application uses Quicktime, I'd like to install the necessary libraries with it's installer, thus not requiring user to install Quicktime separately. What I'm looking for is some sort of "quicktime redistributable".

如果我的应用程序使用 Quicktime,我想使用它的安装程序安装必要的库,因此不需要用户单独安装 Quicktime。我正在寻找的是某种“quicktime 可再发行”。

As of now (quicktime 7.x), I can't find a way to do that. I could bundle whole quicktime installer (about 20 MiB), and launch it with MSI's silent/unattended flag. However, that way it has several side effects:

截至目前(quicktime 7.x),我找不到办法做到这一点。我可以捆绑整个 quicktime 安装程序(大约 20 MiB),并使用 MSI 的静默/无人值守标志启动它。然而,这样它有几个副作用:

  1. creates Quicktime player shortcut on desktop and in quick launch bar
  2. hiHymans file associations, (e.g. .mov becomes associated with Quicktime Player, even if it was associated with something else before)
  3. installs some service/process (qttask) that presumably watches for Quicktime associations, or handles auto-updates.
  4. installs Quicktime Player, which I don't need in fact.
  1. 在桌面和快速启动栏中创建 Quicktime 播放器快捷方式
  2. 劫持文件关联,(例如 .mov 与 Quicktime Player 相关联,即使它之前与其他内容相关联)
  3. 安装一些可能监视 Quicktime 关联或处理自动更新的服务/进程 (qttask)。
  4. 安装 Quicktime Player,实际上我不需要它。

Of the above, first three are quite bad.

以上,前三个是相当糟糕的。

Is there a way to "just install the libraries" for Quicktime?

有没有办法为 Quicktime“安装库”?

In my application, I'd use Quicktime to import images, movies and audio files in various formats. If there is no sane way to install Quicktime runtime without side effects (changed file associations, extra icons, ...), then I should be seriously looking at alternative solutions (e.g. FreeImage to load images, perhaps DirectShow for video/audio).

在我的应用程序中,我会使用 Quicktime 导入各种格式的图像、电影和音频文件。如果没有没有副作用(更改文件关联、额外图标等)的明智方法来安装 Quicktime 运行时,那么我应该认真寻找替代解决方案(例如加载图像的 FreeImage,或者用于视频/音频的 DirectShow)。

回答by emk

If you need to redistribute QuickTime, see QuickTime Licensingfor details. You're not allowed to redistribute any of the QuickTime libraries without a written agreement with Apple. Many CD-replication companies will actually request proof of this agreement before printing large numbers of CDs.

如果您需要重新分发 QuickTime,请参阅QuickTime 许可以获取详细信息。未经 Apple 书面同意,您不得重新分发任何 QuickTime 库。许多 CD 复制公司实际上会在印刷大量 CD 之前要求提供此协议的证明。

I would definitely not distribute "QuickTime Lite" without consulting with either a lawyer or your Apple licensing representative.

我绝对不会在未咨询律师或您的 Apple 许可代表的情况下分发“QuickTime Lite”。

Your best bet, AFAIK, is to use the full QuickTime installer (all 20MB of it), and have your main installer run it with a "silent" flag. That, at least, will allow your users to install QuickTime without a half-dozen dialogs (and without those annoying pictures of surfers in bikinis). The people at Apple's licensing division seemed to think that using the "silent" flag was acceptable, at least when we consulted them.

AFAIK,您最好的选择是使用完整的 QuickTime 安装程序(全部 20MB),并让您的主安装程序使用“静默”标志运行它。至少,这将允许您的用户在没有六个对话框的情况下安装 QuickTime(并且没有那些令人讨厌的穿着比基尼的冲浪者图片)。Apple 授权部门的人似乎认为使用“沉默”标志是可以接受的,至少在我们咨询他们时是这样。

One warning: If the user already has an older version of QuickTime 6 Pro (or earlier) installed, then installing QuickTime 7 silently will nuke their QuickTime Pro registration and they'll have to repurchase it. We actually detect this situation in our installer and display a warning during the installation process, much like Apple does.

一个警告:如果用户已经安装了旧版本的 QuickTime 6 Pro(或更早版本),那么静默安装 QuickTime 7 会破坏他们的 QuickTime Pro 注册,他们将不得不重新购买。我们实际上在安装程序中检测到这种情况,并在安装过程中显示警告,就像 Apple 所做的那样。

Yes, this is a pain. After 6+ years of working with QuickTime, I'd honestly recommend looking at other video frameworks. We're currently evaluating Ogg Theora.

是的,这是一种痛苦。在使用 QuickTime 超过 6 年之后,老实说,我建议您查看其他视频框架。我们目前正在评估 Ogg Theora。

回答by NeARAZ

You could include, with your setup package, a program called Quicktime Lite. It comes with the same libraries as Quicktime uses, but is much, much smaller.

您可以在安装包中包含一个名为 Quicktime Lite 的程序。它带有与 Quicktime 使用的相同的库,但要小得多。

Here"s the link: Download Quicktime Lite

这是链接: 下载 Quicktime Lite

回答by Dark Shikari

Quicktime Alternative does what you want, but for the reasons others have stated here, its illegal. Apple probably is not going to let you do what you want.

Quicktime Alternative 可以满足您的需求,但由于其他人在此处说明的原因,它是非法的。苹果可能不会让你做你想做的事。