2

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.

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
Sameer Singh
  • 1,358
  • 1
  • 19
  • 47

1 Answers1

1

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.

Rami A.
  • 10,302
  • 4
  • 44
  • 87
  • I ended up unzipping the file in question, performing my edits, then updating the zip with the new version of the file. Thanks! – Sameer Singh May 27 '12 at 20:05