Jump to content

WIM XML description editing


Recommended Posts

yep, Amit is right. I can't customize the description when I have more that 1 exported image in a WIM. It still display Windows Vista Ultimate for all the image description... I wonder if there's a way to extract the XML file from the WIM, edit and repack it again...

Link to comment
Share on other sites


@sp00f,

yes, it should show description as shown in ur screenshot, but in this matter it is using "Display Discription" and "Display Image" tag instead of "Name" and "Description"!

all these images are custom built of diff. versions.

these "Display Discription" and "Display Image" are in 1.xml of install.wim file , is there any way to extract and rebuild 1.xml?

Amit

Edited by amit_talkin
Link to comment
Share on other sites

@sp00f,

yes, it should show description as shown in ur screenshot, but in this matter it is using "Display Discription" and "Display Image" tag instead of "Name" and "Description"!

all these images are custom built of diff. versions.

these "Display Discription" and "Display Image" are in 1.xml of install.wim file , is there any way to extract and rebuild 1.xml?

Amit

wow, where you figure out it uses 1.xml? good then, we just need someone who can extract and rebuild the file now...

Link to comment
Share on other sites

Why do you stupid people talk alot of bulls*** if you can use microsofts wimgapi to do this :hello::no:

WIMGetImageInformationReturns information about an image within the .wim (Windows image) file.

C++

BOOL

WINAPI

WIMGetImageInformation(

HANDLE hImage,

LPVOID *lplpvImageInfo,

LPDWORD lpcbImageInfo

);

Parameters

hImage

[in] A handle returned by the WIMCreateFile, WIMLoadImage, or WIMCaptureImage function.

lplpvImageInfo

[out] A pointer to a buffer that receives the address of the XML information about the volume image. When the function returns, this value contains the address of an allocated buffer, containing XML information about the volume image.

lpcbImageInfo

[out] A pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the value of the lplpvImageInfo parameter.

Return ValueIf the function succeeds, then the return value is nonzero.

If the function fails, then the return value is zero. To obtain extended error information, call the GetLastError function.

RemarksWhen the function succeeds, then the data describing the image is in Unicode XML format. Use the LocalFree function to free the memory pointed to by the lplpvImageInfo parameter when no longer needed.

See AlsoWIMCreateFile

WIMLoadImage

WIMCaptureImage

WIMSetImageInformationStores information about an image in the Windows image (.wim) file.

C++

BOOL

WINAPI

WIMSetImageInformation(

HANDLE hImage,

LPVOID lpvImageInfo,

DWORD cbImageInfo

);

Parameters

hImage

[in] A handle returned by the WIMCreateFile, WIMLoadImage, or WIMCaptureImage functions.

lpvImageInfo

[in] A pointer to a buffer that contains information about the volume image.

cbImageInfo

[in] Specifies the size, in bytes, of the buffer pointed to by the lpvImageInfo parameter.

Return ValueIf the function succeeds, then the return value is nonzero.

If the function fails, then the return value is zero. To obtain extended error information, call the GetLastError function.

RemarksThe data buffer being passed into the function must be the memory representation of a Unicode XML file. Calling this function replaces any customized image data, so, to preserve existing XML information, call the WIMGetImageInformation function and append or edit the data.

If the input handle is from the WIMCreateFile function, then the XML data must be enclosed by <WIM></WIM> tags. If the input handle is from the WIMLoadImage or WIMCaptureImage functions, then the XML data must be enclosed by <IMAGE></IMAGE> tags.

See AlsoWIMCreateFile

WIMLoadImage

WIMCaptureImage

WIMGetImageInformation

Edited by levien
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 6 years later...

Thanks for update gimagex for support the Display Name and description tag.

It works also for Windows 8.1. This topic is old but also usefull these days even with Windows 10

 

Now i can make a customized ISO File that support also autounattend.xml

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...