Help - Search - Members - Calendar
Full Version: WIM XML description editing
MSFN Forums > Unattended Windows Discussion & Support > Unattended Vista

   
Google Internet Forums Unattended CD/DVD Guide
FarCry3r
Hi and sorry if I posted in wrong section. I was wondering if there's any way I can programmatically edit description file for .WIM files?

Thanks blushing.gif
FarCry3r
come on guys? no one know?
amit_talkin
QUOTE
imagex /info yourimage.wim 1 "image name" "description"
FarCry3r
No it didn't work:
QUOTE
Available Image Choices:
------------------------
<WIM>
<TOTALBYTES>560483567</TOTALBYTES>
<IMAGE INDEX="1">
<NAME>Windows Vista Ultimate (RED) Edition</NAME>
<DESCRIPTION>Windows Vista Ultimate (RED) Edition</DESCRIPTION>
<FLAGS>ULTIMATE</FLAGS>
<WINDOWS>
<ARCH>0</ARCH>
<PRODUCTNAME>Microsoft« Windows« Operating System</PRODUCTNAME>
<HAL>acpiapic</HAL>
<PRODUCTTYPE>WinNT</PRODUCTTYPE>
<PRODUCTSUITE>Terminal Server</PRODUCTSUITE>
<LANGUAGES>
<LANGUAGE>en-US</LANGUAGE>
<DEFAULT>en-US</DEFAULT>
</LANGUAGES>
<VERSION>
<MAJOR>6</MAJOR>
<MINOR>0</MINOR>
<BUILD>6001</BUILD>
<SPBUILD>18000</SPBUILD>
</VERSION>
<SYSTEMROOT>WINDOWS</SYSTEMROOT>
</WINDOWS>
<DIRCOUNT>5126</DIRCOUNT>
<FILECOUNT>25594</FILECOUNT>
<TOTALBYTES>2646698143</TOTALBYTES>
<CREATIONTIME>
<HIGHPART>0x01C85BE0</HIGHPART>
<LOWPART>0x7466D77A</LOWPART>
</CREATIONTIME>
<LASTMODIFICATIONTIME>
<HIGHPART>0x01C8BFFA</HIGHPART>
<LOWPART>0x15F0C910</LOWPART>
</LASTMODIFICATIONTIME>
<DISPLAYNAME>Windows Vista Ultimate</DISPLAYNAME>
<DISPLAYDESCRIPTION>Windows Vista Ultimate</DISPLAYDESCRIPTION>
</IMAGE>
</WIM>


the entries marked green can change, but not the entries marked in red, and since I can't edit the red entries, the changes won't display in Edition selection in setup...
Tripredacus
Try mounting the WIM with the PE Tools Command Prompt, then look for the XML file. It must be in there someplace. I haven't tried it myself, but then again I don't seem to be using the deployment method you are.
amit_talkin
sorry, I had also tried to change displayname and displaydescription few months ago. but couldnt find how to change it. :|
FarCry3r
QUOTE (Tripredacus @ May 28 2008, 09:48 AM) *
Try mounting the WIM with the PE Tools Command Prompt, then look for the XML file. It must be in there someplace. I haven't tried it myself, but then again I don't seem to be using the deployment method you are.

no the XML file isn't anywhere inside the WIM, it appears that the XML file is appended to the end of the WIM files.
Xinso
too difficult to understand.
FarCry3r
QUOTE (Xinso @ Jun 8 2008, 11:14 AM) *
Method 1 - Limited:

is there any other method? whistling.gif
sp00f
Yep export all images or just the one you want.

Example :

CODE
imagex /export I:\VistaAIO\x86\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista ULTIMATE (32bit)"


Rename the last part whatever you want.

CODE
imagex /export I:\VistaAIO\x86\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista Ultimate (RED) Edition)"


I use it like this :

CODE
imagex /export I:\VistaAIO\x86\install.wim 1 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista BUSINESS (32bit)"
imagex /export I:\VistaAIO\x86\install.wim 2 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEBASIC (32bit)"
imagex /export I:\VistaAIO\x86\install.wim 3 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEPREMIUM (32bit)"
imagex /export I:\VistaAIO\x86\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista ULTIMATE (32bit)"

imagex /export I:\VistaAIO\x64\install.wim 1 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista BUSINESS (64bit)"
imagex /export I:\VistaAIO\x64\install.wim 2 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEBASIC (64bit)"
imagex /export I:\VistaAIO\x64\install.wim 3 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEPREMIUM (64bit)"
imagex /export I:\VistaAIO\x64\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista ULTIMATE (64bit)"
FarCry3r
QUOTE (sp00f @ Jun 9 2008, 08:47 AM) *
Yep export all images or just the one you want.

Example :

CODE
imagex /export I:\VistaAIO\x86\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista ULTIMATE (32bit)"


Rename the last part whatever you want.

CODE
imagex /export I:\VistaAIO\x86\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista Ultimate (RED) Edition)"


I use it like this :

CODE
imagex /export I:\VistaAIO\x86\install.wim 1 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista BUSINESS (32bit)"
imagex /export I:\VistaAIO\x86\install.wim 2 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEBASIC (32bit)"
imagex /export I:\VistaAIO\x86\install.wim 3 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEPREMIUM (32bit)"
imagex /export I:\VistaAIO\x86\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista ULTIMATE (32bit)"

imagex /export I:\VistaAIO\x64\install.wim 1 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista BUSINESS (64bit)"
imagex /export I:\VistaAIO\x64\install.wim 2 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEBASIC (64bit)"
imagex /export I:\VistaAIO\x64\install.wim 3 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista HOMEPREMIUM (64bit)"
imagex /export I:\VistaAIO\x64\install.wim 4 I:\VistaAIO\Distribution\SOURCES\install.wim "Windows Vista ULTIMATE (64bit)"

that method, AFAIK, only set NAME and DESCRIPTION value, but not DISPLAYNAME and DISPLAYDESCRIPTION value... correct me if I'm wrong...
gotenks98
Just download gimagex, that will allow you to change your description of the wim file. I have tried it and it works like a change.
sp00f
@,FarCry3r ,DISPLAYNAME??? errrrrrr


You should read all the post again. wacko.gif
amit_talkin
He is talking about "Display name" and "Display Description". "Name" and "Description" is not showing when there are many OEM images are there.
even after changing "Name" and "Description" it shown like this



thts the problem! am i right FarCry3r?

Amit
sp00f
Here it looks like this

FarCry3r
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...
sp00f
well...here it doesnt shifty.gif
amit_talkin
@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
FarCry3r
QUOTE (amit_talkin @ Jun 13 2008, 02:12 AM) *
@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...
amit_talkin
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. sad.gif
levien
Why do you stupid people talk alot of bulls*** if you can use microsofts wimgapi to do this welcome.gif no.gif

QUOTE
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

QUOTE
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
FarCry3r
QUOTE (levien @ Jun 14 2008, 03:23 AM) *
Why do you stupid people talk alot of bulls*** if you can use microsofts wimgapi to do this welcome.gif no.gif

because we didn't know C++?
amit_talkin
QUOTE (FarCry3r @ Jun 15 2008, 08:31 PM) *
QUOTE (levien @ Jun 14 2008, 03:23 AM) *
Why do you stupid people talk alot of bulls*** if you can use microsofts wimgapi to do this welcome.gif no.gif

because we didn't know C++?

if we were stupid, we couldnt have this kinda ques.!
babykaokao
hi guys,I have a idea but it may take hours.
you apply the image then you capture it,and "display *" is gone.
笨办法有时候是最好的办法.
好运,goodluck.
Antiriad
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 smile.gif

http://www.autoitscript.com/gimagex
Tripredacus
QUOTE (Antiriad @ Oct 3 2008, 12:00 PM) *
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 smile.gif

http://www.autoitscript.com/gimagex


I'm confused about the many different programs called GImageX... some of these need to get changed.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.