You are currently offline, waiting for your internet to reconnect

Error message when you try to remove more than two images from a .wim file that contains four images in Windows Vista: "The data is invalid"

This article has been archived. It is offered "as is" and will no longer be updated.
Symptoms
In Windows Vista, when you try to remove more than two images from a .wim file that contains four images, you may receive the following error message:
Error opening file [image_file]
The data is invalid.
Note In this error message, image_file represents the name and location of the .wim file.
Cause
This problem occurs because the Wimgapi.dll file does not work correctly.
Workaround
To work around this problem, create a new .wim file. Use the imagex /export switch to add images to the new .wim file. To do this in Windows Preinstallation Environment (Windows PE) 2.0, run the following command at a command prompt:
imagex /export src_file src_number dest_file dest_name
Note In this command, the src_file placeholder represents the file path of the .wim file that contains the image that is to be copied. The src_number placeholder represents the number that references the specific volume within the .wim file.The dest_file placeholder represents the file path of the .wim file that will receive the image copy.The dest_name placeholder represents the unique name for the image in the destination .wim file.
More information

Steps to reproduce the problem

In Windows PE 2.0, type the following commands at a command prompt:
imagex /capture image_path d:\imaging\data.wim 1
imagex /append image_path d:\imaging\data.wim 2
imagex /append image_path d:\imaging\data.wim 3
imagex /append image_path d:\imaging\data.wim 4
imagex /delete d:\imaging\data.wim 3
imagex /delete d:\imaging\data.wim 3
imagex /dir d:\imaging\data.wim 1
After you run these commands, you may receive the error message that is mentioned in the "Symptoms" section.
Properties

Article ID: 947247 - Last Review: 01/16/2015 10:02:23 - Revision: 2.0

Windows Vista Business, Windows Vista Enterprise, Windows Vista Home Basic, Windows Vista Home Premium, Windows Vista Ultimate, Windows Vista Business 64-bit Edition, Windows Vista Enterprise 64-bit Edition, Windows Vista Home Basic 64-bit Edition, Windows Vista Home Premium 64-bit Edition, Windows Vista Ultimate 64-bit Edition

  • kbnosurvey kbarchive kbexpertiseinter kbtshoot kbprb KB947247
Feedback