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"

Article translations Article translations
Article ID: 947247 - View products that this article applies to.
Expand all | Collapse all

On This Page

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: February 11, 2008 - Revision: 1.2
APPLIES TO
  • 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
Keywords: 
kbexpertiseinter kbtshoot kbprb KB947247

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com