Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



FarCry3r

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...

Share this post


Link to post
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

Share this post


Link to post
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...

Share this post


Link to post
Share on other sites

as I said before, I have already tried to change it few months ago, It uses 1.xml to store image info. but I couldnt find how to repack 1.xml. :(

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Why do you stupid people talk alot of bulls*** if you can use microsofts wimgapi to do this :hello::no:

because we didn't know C++?

Share this post


Link to post
Share on other sites
Why do you stupid people talk alot of bulls*** if you can use microsofts wimgapi to do this :hello::no:

because we didn't know C++?

if we were stupid, we couldnt have this kinda ques.!

Share this post


Link to post
Share on other sites

hi guys,I have a idea but it may take hours.

you apply the image then you capture it,and "display *" is gone.

笨办法有时候是最好的办法.

好运,goodluck.

Share this post


Link to post
Share on other sites
I just updated GImageX so that you can add the DisplayName and DisplayDescription tags during capture or change them on existing images. Let me know how it works out :)

http://www.autoitscript.com/gimagex

I'm confused about the many different programs called GImageX... some of these need to get changed.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

×