Do you have any idea how I would add ESD support for C#, specifically get the number of images within the file, converting to a WIM and a WIM to an ESD.
Thanks :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Everything you requested can be done fairly easily using the C API.
"get the number of images within the file" - Open the ESD or WIM file with wimlib_open_wim() and get the image count from the structure provided by wimlib_get_wim_info().
"converting to a WIM" - Open the ESD file with wimlib_open_wim(), then call wimlib_set_output_compression_type() with WIMLIB_COMPRESSION_TYPE_LZX, then call wimlib_write().
"[converting] a WIM to an ESD" - Open the WIM file with wimlib_open_wim(), then call wimlib_set_output_compression_type() with WIMLIB_COMPRESSION_TYPE_LZMS, then call wimlib_write() with the flag WIMLIB_WRITE_FLAG_SOLID.
C# allows you to call into DLLs that expose a C API, but I cannot help with this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you have any idea how I would add ESD support for C#, specifically get the number of images within the file, converting to a WIM and a WIM to an ESD.
Thanks :)
Everything you requested can be done fairly easily using the C API.
"get the number of images within the file" - Open the ESD or WIM file with wimlib_open_wim() and get the image count from the structure provided by wimlib_get_wim_info().
"converting to a WIM" - Open the ESD file with wimlib_open_wim(), then call wimlib_set_output_compression_type() with WIMLIB_COMPRESSION_TYPE_LZX, then call wimlib_write().
"[converting] a WIM to an ESD" - Open the WIM file with wimlib_open_wim(), then call wimlib_set_output_compression_type() with WIMLIB_COMPRESSION_TYPE_LZMS, then call wimlib_write() with the flag WIMLIB_WRITE_FLAG_SOLID.
C# allows you to call into DLLs that expose a C API, but I cannot help with this.
Thank you :)