Jump to content











Photo
- - - - -

Need help mounting .wim in WinPE 3.0


  • Please log in to reply
6 replies to this topic

#1 diddy

diddy

    Member

  • Tutorial Writer
  • 78 posts

Posted 02 May 2010 - 03:00 PM

I've been playing around with WinPE 3.0 recently and noticed that DISM.exe, wimmount.sys and wimgapi.dll are included in the base image.

After booting into WinPE 3.0 I've started the wimmount service and attempted to mount an image using DISM (and ImageX and WimCaptEx) however it always results in errors.

The relevant registry settings and tools all seem to be included - has anyone had any success.

If yes please post instructions.

I'm not sure if wimfsf is causing the problem - this service appears to be running in WinPE but does not appear to be included in a running Windows 7.

diddy

#2 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 04 May 2010 - 03:47 PM

my experience with dism in the booted PE is the following

if i build my WinPE 3.0 using WAIK for Windows 7 following the MS guide
then dism works in the booted WinPE 3.0

if i build my WinPE 3.0 using wimb's Make-PE3
then dism works in the booted WinPE 3.0


nevertheless dism does not work in neither Win7PE project
when i buid using any of the available winbuilder based Win7PE projects

i mean for me dism.exe fails either in Joshua's Win7RescuePE project
either in YahooUK's Multi 7PEs project
either in JFX's Win7PE_SE project

#3 diddy

diddy

    Member

  • Tutorial Writer
  • 78 posts

Posted 04 May 2010 - 10:33 PM

@dera

Many thanks for the information. My WinPE is built from custom batch files and doesn't have many changes from a basic build (built following MS instructions - nothing added).

I built and tested a basic build and found that DISM worked as you stated. After much consideration and a quick test I realised that the only major difference between a basic build and my custom build is that I use a custom shell and do not run startnet.cmd - which runs wpeinit.exe

I managed to get DISM working in my build by running wpeinit.exe from a batch file.

Thanks for putting me on the right track.

diddy

#4 paraglider

paraglider

    Gold Member

  • .script developer
  • 1743 posts
  • Location:NC,USA
  •  
    United States

Posted 04 May 2010 - 11:01 PM

I have found that the win7 dism / imagex takes 20 - 30 seconds to mount a wim file on win7 / win7 pe.

The imagex from vista aik also works great on win7 / win7 pe. However it is much faster i.e < 5 seconds.

#5 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 05 May 2010 - 06:45 AM

really
probably this 'wpeinit.exe' is the main point

i have made a newer try with Win7RescuePE project (using 'File to copy = full' mode) and with Win7PE_SE_04_20_2010 project
and now dism.exe works fine if first i start the network using Holger's PENetwork
(while PENetwork initialize the network calls the wpeinit)

#6 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 05 May 2010 - 09:51 PM

Just for the record and FYI, this may help :cheers: (for wimcaptex.exe):
http://www.boot-land...?showtopic=9765

:cheers:
Wonko

#7 diddy

diddy

    Member

  • Tutorial Writer
  • 78 posts

Posted 06 May 2010 - 11:32 AM

Just for the record -

DISM and ImageX (version 6.1.7600) are dependant upon the wimmount service and require wpeinit to be executed when using in WinPE 3.0. I suspect that WimCaptEx behaves in the same way but have not tested yet.

ImageX (versions 6.0.6000 and 6.0.6001) is dependant upon the wimfltr service. Thanks to paraglider I've now played around with these versions on WinPE 3.0 - installing at run time and starting the wimfltr service manually. As paraglider stated these versions of ImageX are considerably faster than DISM (and ImageX version 6.1.7600) when mounting and unmounting images.

Based on initial tests once the WinFltr service has been installed and started then DISM (and probably ImageX version 6.1.7600 and maybe WimCaptEx) stops functioning correctly. With the WimFltr service started DISM was able to mount and unmount .wim files however I was not able to mount the registry hives correctly. I have no idea whether injecting drivers works as I have not had time to test.

Will test (more) fully after the weekend and report back.

@Wonko
Will check out your batch files after the weekend - I'm going on a short break from tomorrow and have been banned from taking the netbook with me.

diddy




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users