Topic: GImageX plugin, mounting WIM from PE  (Read 1900 times)

GImageX plugin, mounting WIM from PE
« on: December 20, 2015, 12:02:34 PM »

apinux

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Nov 2011
  • Posts: 52
I am looking for a script for Win7PE SE that allows me to add GImageX and any required files to the PE image so that I can mount WIM files under PE.

imagex.exe
wimfltr.inf
wimfltr.sys
wimgapi.dll

Thanks!
« Last Edit: December 21, 2015, 09:26:42 AM by Lancelot »

Re: GImageX plugin, mounting WIM from PE
« Reply #1 on: December 20, 2015, 01:07:23 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi apinux,

old plugin available at:
\Downloads\AppYGS\HD Tasks\Imaging\GImageX....

*
things changed for a while, wimfltr.sys not used anymore ;)

wimmount.sys is the new kid on the block (I guess things changed during Win7..)






*
Shortly, there is no such plugin for now  :wink:

If you write one,
There is
Utils\GetWaikTools Plugin

available on all project that quickly download required files for your task,
imagex.exe, wimgapi.dll wimmount.sys
to
%GlobalTemplates%\GetWaikTools
subfolders..

Here is a not tested sample, would be useful for such plugin, and give you an idea.
Code: [Select]
[Variables]
%ProvideFiles%=%GlobalTemplates%\GImageX_Files\DISM

[Process]
If,Not,ExistFile,%ProvideFiles%\imagex.exe,Run,%ScriptFile%,Process_GetWaikTools
//-
If,ExistFile,%ProvideFiles%\imagex.exe,FileCopy,%ProvideFiles%\imagex.exe,%Target_Sys%
If,ExistFile,%ProvideFiles%\wimgapi.dll,FileCopy,%ProvideFiles%\wimgapi.dll,%Target_Sys%
If,ExistFile,%ProvideFiles%\wimmount.sys,FileCopy,%ProvideFiles%\wimmount.sys,%Target_Sys%\Drivers
//--

[Process_GetWaikTools]
If,Not,ExistDir,%ProvideFiles%,DirMake,%ProvideFiles%
Set,%subM%,ADK_6
Set,%sub%,x86
If,%SourceArch%,Equal,x64,Set,%sub%,amd64
If,ExistFile,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\imagex.exe,FileCopy,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\imagex.exe,%ProvideFiles%
If,ExistFile,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimgapi.dll,FileCopy,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimgapi.dll,%ProvideFiles%
If,ExistFile,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimmount.sys,FileCopy,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimmount.sys,%ProvideFiles%
//-
If,Not,ExistFile,%ProvideFiles%\imagex.exe,Begin
If,ExistFile,%ProjectDir%\Utils\GetWaikTools.script,Run,%ProjectDir%\Utils\GetWaikTools.script,Launch_Program,%ProjectDir%\Utils\GetWaikTools.script,"-Win8.1Dism -Silent"
If,ExistFile,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\imagex.exe,FileCopy,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\imagex.exe,%ProvideFiles%
If,ExistFile,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimgapi.dll,FileCopy,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimgapi.dll,%ProvideFiles%
If,ExistFile,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimmount.sys,FileCopy,%GlobalTemplates%\GetWaikTools\%subM%\%sub%\DISM\wimmount.sys,%ProvideFiles%
End

and there maybe required some registries for
ControlSet001\Services\wimmount
..
ControlSet001\Enum\Root\LEGACY_WIMMOUNT
..


Rest on your hands  :thumbsup:

:turtle:
« Last Edit: December 21, 2015, 09:26:55 AM by Lancelot »

Re: GImageX plugin, mounting WIM from PE
« Reply #2 on: December 22, 2015, 09:42:31 AM »

apinux

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Nov 2011
  • Posts: 52
Thank you Lancelot  :smile:

 

Powered by EzPortal