我正在使用 部署工具基础与 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.
发布评论
评论(1)
尝试使用免费的 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.