Write some information in the header of wim file

Comments, questions, bug reports, etc.
Post Reply
supersonic
Posts: 1
Joined: Fri Dec 11, 2015 2:08 pm

Write some information in the header of wim file

Post by supersonic »

Hi,
I am new regarding wim files.

What I need:
Before or during capture image, I will write some information like target partition size etc. somewhere in the wim file.
Idea is to download only the needed part from wim file and retrieve the inserted information.
Therefore I thought it's the easiest way do it with the header file of the wim file.

I will do that in C# / C++/ C.

Is this possible ? Do someone has an Idea how can I achieve this?
Thanks a lot.
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

Re: Write some information in the header of wim file

Post by synchronicity »

You could put custom information in the WIM file's XML document, either in the "image description" elements or in your own custom elements. The latest version of wimlib allows library users to set/get any information from the XML document they want. But the XML document is not in the file header, and wimlib always expects to work with full files.

Is it possible you're looking for the wrong solution and should be storing this info separately from the WIM files?
Post Reply