Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to add files to an install.wim file so that they will show up on the system after the OS has been deployed.

I have tried the following steps:

  1. Mount the image with "imagex /mountrw..."
  2. Copy the files I need to the Windows directory of the mounting image.
  3. Commit changes and unmount the image. "imagex /unmount /commit..."

I also remounted the image to make sure that the files I added exist on the image, but after running a PXE install with the image, the files do not exist on the freshly deployed system.

share|improve this question

2 Answers 2

You need to put whatever files you need inside Sources\$OEM$\$1 This will copy them to the root of the boot drive. From there you can fire off a script to do whatever you want to do with them, but there is probably a better way. What are you trying to accomplish?

share|improve this answer
    
I'm trying to do an OS installation via WDS which only allows me to mount a wim file for Vista and Win7. –  Anonymous Sep 2 '09 at 23:22
    
Right. So you mount the .wim. Copy whatever files you need into the path I mentioned above and then /unmount /commit it. What are you trying to accomplish though, the $OEM$ folder is deprecated in favor of other methods in Vista/7. –  MDMarra Sep 2 '09 at 23:30
    
I need to have certain files placed on the system after the OS has been installed...I was under the impression that I could just place these files in the WIM image. Any ideas since there's no $OEM$ for Vista/7? –  Anonymous Sep 3 '09 at 19:22

Windows setup doesn't plainly restore a WIM file to the destination system's disk; it extracts only the files that are defined in the setup plan. The install.wim image actually contains files for every version of Windows, and it's the setup routine, based on your installation choice, which determines what needs to be installed. The overall result is: Windows setup will only copy what it thinks it needs to copy, not anything that's in the install.wim image.

If you want to build your own customized installation images, you shouldn't deploy them using the standard Windows setup; you should capture and restore them using imagex.

I suggest you have a look at the Microsoft Deployment Toolkit.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.