不存在制定映像是因为没有进行挂载wim了,解决步骤如下:
1、首先第一步就要进行下载Wim&EsdTool(Wim,Esd映像文件制作编辑工具)
2、接着就是要进行打开然后就是要进行选择你要修改的wim镜像,这时候注意的是选择一个挂载的文件夹,再选择要修改的wim镜像,选择一个挂载的文件夹即可。
3、然后就是进行挂载完成之后,这时候就可以打开挂载的文件夹看到解压出来的文件,如下图所示。
4、最后一步就是进行启动文件进行添加、删除、编辑,然后这时候卸载镜像之后就可以保存Wim文件了,如下图所示。
首先我在另一台电脑的D盘根目录下新建一个文件夹并命名为abc, 文件夹下面再建立两个文件夹,一个叫usb3,一个叫mount , 打开BootCamp压缩包,在里面的$WinPEDriver$\IntelxHCISetup\Drivers路径下有两个文件夹叫xHCI和HCSwitch,分别进入到它们底下的X64内把所有文件拷贝到之前建立的usb3文件夹内,总共有12个文件。再从Win7安装盘(之前做的启动盘)的sources文件夹里拷贝 boot.wim和install.wim到刚才新建的abc这个文件夹内(别放到usb3或mount里面!!)。
接下来 用管理员模式运行cmd, 打两条命令:
d:回车
cd abc 回车
然后继续输入下面的命令:
dism /mount-wim /wimfile:boot.wim /index:2 /mountdir:mount
dism /image:mount /add-driver /driver:usb3\iusb3hub.inf
dism /image:mount /add-driver /driver:usb3\iusb3xhc.inf
dism /image:mount /add-driver /driver:usb3\iusb3hcs.inf
dism /unmount-wim /mountdir:mount /commit
上面五条命令目的是给boot.wim添加驱动。第一条的意思是挂载镜像,然后是三条添加驱动的命令,最后一条命令是把镜像卸载。
同理,把里面的boot.wim都替换成install.wim就可以给install.wim加驱动。install.wim文件比较大,所以会花些时间(真的等了很久,将近一个小时)。
挂载install.wim的命令里,针对挂载的win7版本不同,index:后面的数字也是不同的,我给老板装的是旗舰版,旗舰版的话对应的数字是4,即挂载的那条命令里要打
index:4
两个文件加入驱动完成后,拷贝回原来的sources文件夹,这样win7的安装盘添加驱动就完成了。
最后用自己DIY后的Win7安装盘引导Air进入安装程序,到语言和区域选择那里触摸板和键盘果断就能用了,再按流程装完win7和常用软件,至此大功告成。
Simple, This WIM file has multiple indexs or the name of this WIM file hasn't defined.
Appoint an index num before mounting this WIM file.
(If the path to the WIM file is "D:\boot.wim", the path to mount is "D:\WimPath")
You can type like this:
Dism /Mount-Wim /WimFile:D:\boot.wim /MountDir:D:\WimPath /index:1
To see how many indexs there are in this WIM file, just type:
Dism /Get-WimInfo /WimFile:D:\boot.wim
And you can see the info of the image.
The output may like this: (On Win7)
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Details for image : D:\boot.wim
Index : 1
Name : <undefined>
Description : <undefined>
Size : 724,562,508 bytes
The operation completed successfully.
This WIM file has one index and this index doesn't has a name.
Note: I saw the other answer under this question.
You should use "/Index:1" instead of "Index:2"
because many WindowsPE doesn't have Index2
except Officially Windows PE Image.
Index1 is WinPE.
Index2 is WinRE.
And almost all of the custom WinPE images removed WinRE index
in order to save memory when loading.
And, his guide is to add drivers to WIM file, but you see,
The filename of the WIM file is "install.wim".
It means, "install.wim" is the system image instead of WinPE image.
And Windows7's install.wim contains all of the versions of System.
But you want to add drivers to WinPE, right?
Altogether, you should use
"Dism /Get-WimInfo /WimFile:Your\Path\To\Image"
to check the indexes.
注意这里是index:2 和install.wim是不一样的 install.wim 选择3是指的企业版 这里选择2 是选的windows 安装 如果写1 则是选的pe安装 好像就是这样我也是遇到相同的问题 楼主可以 dism /get-wiminfo /wimfile:d:\boot.wim 看看映像有几个索引,然后决定index后面的数字