使用 GAC 复制文件表

发布于 2024-08-16 10:41:29 字数 229 浏览 4 评论 0原文

我的安装程序的文件重复变得非常大。我们的一些 DLL 位于两个位置(本地和 GAC 或本地和 system32 文件夹)。如何使用 DuplicateFile 表或其他 Installshield 机制(安装脚本?)来复制 GAC 中的文件?这是相同的文件,需要复制到两个位置,但由于其大小,我只希望它在安装程序中出现一次。

我的项目类型实际上是Installscript MSI。

希望我的要求是明确的。谢谢!

My installer has grown very large b/c of file duplication. Some of our DLL's are in two places (local and GAC or local and system32 folders). How can I use the DuplicateFile table or other Installshield mechanism (installscript?) to duplicate the file in the GAC? It's the same file that needs to be copied to two locations but I only want it in the installer once because of its size.

My project type is actually Installscript MSI.

Hopefully my request is clear. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

◇流星雨 2024-08-23 10:41:29

DuplicateFile 表不支持部署到 GAC,因为 MSI 不使用与大多数文件夹不同的模式来部署到 GAC。它使用与 Fusion 交互的 MsiPlublishAssemblies。

您必须声明 2 个组件(1 个用于正常,1 个用于 GAC)。如果您担心大小,WiX 有一项称为智能出租车的功能,它可以创建您的出租车并将其流式传输到具有共享同一存储的多个文件行的媒体中。

The DuplicateFile table doesn't support deploying to the GAC because MSI doesn't uses a different pattern to deploy to the GAC then most folders. It uses MsiPlublishAssemblies which interacts with Fusion.

You have to declare 2 components ( 1 for normal and 1 for the GAC ). If size is a concern for you, WiX has a feature called smart cabbing which can create your cab and stream it into media with multiple file rows sharing the same storage.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文