- Optional: To be sure that this method works, uninstall your WAIK, if you do not necessarily need it for other tasks (I did so)
- Put a Win7 x86 DVD into your DVD drive
- Extract wimgapi.dll and wimmount.sys to your host
How to extract from a WIM, when you do not have a WAIK?
7z can do it:
ShellExecute,Hide,%Tools%\7z,"e -y #$q-o%WindowsDir%\System32#$q -r #$q%SourceDir%\sources\boot.wim#$q #$q%WimIndexBoot%\Windows\System32\wimgapi.dll#$q" ShellExecute,Hide,%Tools%\7z,"e -y #$q-o%WindowsDir%\System32\Drivers#$q -r #$q%SourceDir%\sources\boot.wim#$q #$q%WimIndexBoot%\Windows\System32\drivers\wimmount.sys#$q"
- Register wimmount.sys as service:
RegWrite,HKLM,0x4,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT,NextInstance,1 RegWrite,HKLM,0x1,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000,Service,wimmount RegWrite,HKLM,0x4,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000,Legacy,1 RegWrite,HKLM,0x4,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000,ConfigFlags,0 RegWrite,HKLM,0x1,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000,Class,LegacyDriver RegWrite,HKLM,0x1,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000,ClassGUID,{8ECC055D-047F-11D1-A537-0000F8753ED1} RegWrite,HKLM,0x1,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000,DeviceDesc,wimmount RegWrite,HKLM,0x4,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000\Control,*NewlyCreated*,0 RegWrite,HKLM,0x1,System\CurrentControlSet\Enum\Root\LEGACY_WIMMOUNT\0000\Control,ActiveService,wimmount RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount,Type,2 RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount,Start,3 RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount,ErrorControl,1 RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount,Tag,5 RegWrite,HKLM,0x2,System\CurrentControlSet\Services\wimmount,ImagePath,system32\DRIVERS\wimmount.sys RegWrite,HKLM,0x1,System\CurrentControlSet\Services\wimmount,DisplayName,wimmount RegWrite,HKLM,0x1,System\CurrentControlSet\Services\wimmount,Group,FSFilter#$sActivity#$sMonitor RegWrite,HKLM,0x7,System\CurrentControlSet\Services\wimmount,DependOnService,FltMgr, RegWrite,HKLM,0x7,System\CurrentControlSet\Services\wimmount,DependOnGroup, RegWrite,HKLM,0x1,System\CurrentControlSet\Services\wimmount,Description,Wim#$sMounting#$sDriver RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount,DebugFlags,0 RegWrite,HKLM,0x1,System\CurrentControlSet\Services\wimmount\Instances,DefaultInstance,Wimmount#$sInstance RegWrite,HKLM,0x1,System\CurrentControlSet\Services\wimmount\Instances\Wimmount Instance,Altitude,180700 RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount\Instances\Wimmount Instance,Flags,0 RegWrite,HKLM,0x3,System\CurrentControlSet\Services\wimmount\Security,Security,01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00, 00,02,00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01, 00,00 , 00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00, 05,12 , 00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02, 00,00 , 00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,fd, 01,02 , 00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05, 12,00 , 00,00,01,01,00,00,00,00,00,05,12,00,00,00 RegWrite,HKLM,0x1,System\CurrentControlSet\Services\wimmount\Enum,0,Root\LEGACY_WIMMOUNT\0000 RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount\Enum,Count,1 RegWrite,HKLM,0x4,System\CurrentControlSet\Services\wimmount\Enum,NextInstance,1
- Copy the attached WimCaptEx.exe to %Tools%
- Mount a WIM's image into a folder
- Unmount this folder
- Capture a folder into a WIM
Happy testing!
Peter
BTW: Sorry, my insertings of code into the list items do not look nice. Perhaps a topic for the forum's software ...
EDIT: Changed codebox to code to hold the post readable on Firefox
To get the latest information, watch nativeEx forum!
WimCaptEx program: http://nativeex.exec...s/WimCaptEx.zip
WimCaptEx documentation:http://nativeex.exec...x/WimCaptEx.htm