DTF:更新存档中的文件而不解压它

发布于 2024-10-09 02:03:21 字数 408 浏览 0 评论 0 原文

我正在使用 部署工具基础与 WiX 3.5 捆绑在一起。有一个存档包含我想要更新的文件,而无需先提取它 - 编辑基于安装过程中的用户输入。

如何获取对此文件的引用、执行更新并将更改保存到文件而不需要从存档中提取?自定义操作是用 C# 编写的。

我正在使用 Wix v3.5.2415,它与 DTF 程序集的版本相同。

I am using the Deployment Tools Foundation bundled with WiX 3.5. There is an archive that contains a file that I want to update without having to extract it first - the edits are based on user inputs during setup.

How do I obtain a reference to this file, perform the updates, and save the changes to the file without needing to extract it from the archive? The custom action is being written in C#.

I am using Wix v3.5.2415, which is the same version for the DTF assemblies.

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

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

发布评论

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

评论(1

聚集的泪 2024-10-16 02:03:21

尝试使用免费的 C# 库之一与 zip 文件进行交互。

例如:
SharpZipLib
SevenZipSharp

我不确定您为什么要试图避免解压缩。这是一个 silverlight xap 文件吗?如果是这样,我建议使用不同的方法,例如使用 initParams

Try using one of the free c# libraries to interact with a zip file.

For example:
SharpZipLib
SevenZipSharp

I'm not sure exactly why you are trying to avoid unzipping. Is this a silverlight xap file by chance? If so, I recommend a different approach like using initParams.

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