Jump to content











Photo
- - - - -

"Mounting Windows Win7 boot.wim files with imagex.exe... "1


  • Please log in to reply
28 replies to this topic

#1 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 06:42 AM

Again I refer to this post where I said I was able to build a Win7RescuePE iso.

http://www.boot-land...showtopic=10030

But after running the project a few times trying to resolve this issue with PENetwork that does not Map Network Drives in the LAN :

http://www.boot-land...showtopic=10039

, now I am getting stuck on step 2 in the step related to:

Build > 0.Preconfig > Mount Win7 Boot.Wim File using Imagex.exe and #1 wich is

Boot.Wim ------> 1. Microsoft Windows PE (x86)
Install.Wim -----> 5. Windows 7 ULTIMATE

Boot.wim has 2 images and Install.wim has 5 images.

But somehow after step 3 when is mounting windows 7 images it comes with a popup message which says

mount win7 boot.wim files with imagex.exe returned with 2

the the message:

Please Run PreConfig Script. Exiting ....

and lastly the message:

Access violation at address 004041F4 in module 'WinBuilder.exe'. Read of address 35B4354C: Run,%API%,NotConfigured

I did not select the build boot.wim image #2. but the image #1 or Microsoft Windows PE (x86)
If I select the boot.wim image #2 I get the same messages.
So how is this reverting from 1 to 2? which file do I edit for this to get fixed as it is stoping the build on step 3.
Should I edit the file PreConfig.Script ? and what line should I edit? (using Notepad2)

regards.


#2 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 09:49 AM

Are you moving the winbuilder base directory, or making renamed copies of it, as you try different things to resolve the network issue?

Again, the winbuilder log would be helpful. Start afresh with the winbuilder base in c:\ and winbuilder.exe on its own (if you can). Then post a log.

#3 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 22 December 2009 - 09:59 AM

also look into this thread, there you'll find the same problem ...
http://www.boot-land...?...ost&p=87248

I think this fault results in case of a faulty source ... I know tried 3 different sources. The preconfig-script set the correct container (also mentioned in the link posted) and no problem occurs. If I set the container manually to other values I get the same error mentioned above.

#4 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 01:08 PM

Your posted link is pointing me in the right direction, though still I have not figure out where the problem is located at.

I don't change much the source or destination files, every time I build a new ISO file I delete or move the one created before so I don't have to change anything in the 'source' tab.

the CheckSource.Txt file was generated and this is the output:

Buildsystem	   : x86

BaseDir		   : E:\Downloads\WinBuilder 06-14-2009\WinBuilder_078_SP4

WaikDir		   : C:\Program Files\Windows AIK\

SourceDir		 : L:

Info Install.wim  : 5: Windows 7 ULTIMATE

Info Boot.wim	 : 1: Microsoft Windows PE (x86)

Language		  : en-US

Architecture	  : 0

Version		   : 6.1.7600.16385.0



imagex.exe found  : YES

so the info Boot.wim supposed to be #1, however when is building on step 3 it comes out with that message referring to #2

Not a clue yet where to start or what to change. The Interesting thing is that I built the ISO it a few times before but since late yesterday I have not been able to pass step 3.

#5 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 01:22 PM

Looking at the other members' logs (because you refuse to provide yours), it seems that the number 2 in "mount win7 boot.wim files with imagex.exe returned with 2" refers to an error code not an image index number.

The other members' logs seem to show that their problems may be unrelated in origin but end with similar results.

#6 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 02:54 PM

Looking at the other members' logs (because you refuse to provide yours), it seems that the number 2 in "mount win7 boot.wim files with imagex.exe returned with 2" refers to an error code not an image index number.
allanf


I have attached the log file, and the checksource.txt file for some reason when I select the #2 and click on "getinfo" it comes out as #2 i
but once I select #1 and click on button GetInfo, the CheckSource.txt shows #1.

I am not really what I'm doing here.

In both cases I get the popup windows while is running BUILD > 0.PRECONFIG (step 3)

Information: GetInfo wim files with returned with 2 check source directory



Message: Please run PreConfig script. Exiting



Access violation at address 004041F4 in module 'WinBuilder.exe'. Read of address 35B4354C: [Run,%API%,NotConfigured

Attached Files



#7 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 03:20 PM

Thanks for the log, but it's not really much help.

To try to find the problem you're going to have to change some script.

I don't have the script and don't intend to go looking for it so you'll have to trnaslate parts of the log that I can see into parts of the script that you can see with notepad or whatever. In particular, the matching part of the script for this in the log:

Run - Processing section: [MountWin7-imagex] From file: [%BaseDir%\Projects\Win7RescuePE\Build\0-preconfig.script]

			  "Mounting Windows Win7 boot.wim files with imagex.exe... "1

			  ShellExecute: [Hide] using: ["C:\Program Files\Windows AIK\Tools\x86\imagex.exe"] with parameters: [/mount "L:\sources\boot.wim" 1 "%BaseDir%\Temp\Win7RescuePE\BootWimSrc"]

The shellexecute line should be temporarily commented out with ## or // at the beginning and replaced with:
ShellExecute,Open,"cmd.exe","/k (#$qC:\Program Files\Windows AIK\Tools\x86\imagex.exe#$q /mount #$qL:\sources\boot.wim#$q 1 #$q%BaseDir%\Temp\Win7RescuePE\BootWimSrc#$q)"

This will open, and hold open, the cmd window with imagex being executed, and should show the error in detail. Close the cmd window to continue.

I don't know if you need the image index 1 or 2.

Regards :cheers:

#8 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 December 2009 - 04:19 PM

Currently I do not know any PE running when using "PE" of boot.wim.

You MUST use the "Setup" image, whichever index it has.

BTW: Different to the statement in the previous post, I find your log very helpful. It tells an experienced user that here is an issue which is already described many times in the forum:
Your script.project is missing a line

(Inside [Process])

 AddVariables,%API%,ApiVar,GLOBAL
When Pedrole15 changed the API due to this ApiVar, he explained in the forum.

But unfortunatelly several project authors do not take care on such "hidden" hints.

Peter

#9 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 04:22 PM

working on it, will report in a while.

#10 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 05:15 PM

I see a double quote mark before the /k but nothing else to see why didn't worked.


Where do yoou see a double quote mark?

And can you post a snippet of the actual scrit where you edited?

Thanks

#11 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 05:28 PM

IT run for ever, and if I kill the Dos Window I get all the same error all over again as the beginning of this post.


Yes. That's right.

As for the error - "Device not ready" - no idea!

#12 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 December 2009 - 05:36 PM

you have not querried the wim images indexes in. First press the Getinfo button, ...

The "GetInfo" is a function, I'm developing with Joshua (Win7RescuePE).
Besides that, there are currently no communications with other authors.
So, if you have some troubles in a project different from Win7RescuePE (which tries to use this functionality), do not worry, ask the project's author to go into contact with me and to solve the issue.

Peter

#13 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 05:37 PM

I am dealing with a Source Drive Letter (Windows DVD Source).

I changed it in the winbuilder window in the source tab, but somehow is not doing it in the .script once is building the iso, I did click on 'checksource.txt" button, as well on the GetInfo button, and it supposed to change in the '0-PreConfig.script' but something didn't work

I'm checking to see what is wrong.

I did change the DVD Drive Letter because the previous one was stuck.

Drive Letter was L:

I changed it o Q:

And this is what the DOS Window in the change you posted :

ImageX Tool for Windows

Copyright (C) Microsoft Corp. All rights reserved.

Version: 6.1.7600.16385



Mounting: [L:\sources\boot.wim, 2] -> [E:\Downloads\Win

n7RescuePE\BootWimSrc]...



Error opening file [L:\sources\boot.wim].



The device is not ready.



E:\Downloads\WinBuilder 06-14-2009\WinBuilder_078_SP4>

It's pointing to L: instead the change I did on the winbuilder script tab.

#14 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 05:42 PM

I hard-coded it in the snippet.

#15 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 05:43 PM

My bad, I think I forgot to click on "Configuration" on the left and then Save it.
:cheers:
probably tired after 12 hrs trying to figure out why I can not pass step 3.

#16 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 22 December 2009 - 05:49 PM

My bad, I think I forgot to click on "Configuration" on the left and then Save it.
:cheers:
probably tired after 12 hrs trying to figure out why I can not pass step 3.


No. L:\ is hardcode in the imagex snippet I gave you. I took the variables out for simplicity and used the values from your log. Change it to q:\ and any other paths you might change.

#17 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 06:06 PM

Seems like the long line you wrote has to be rewritten in order to make it with variables as I don't keep the same DVD Drive letter the same all the time.

I tried:
ShellExecute,Open,"cmd.exe","/k "#$q%IMAGEX%#$q","/mount #$q%SDIR%\sources\boot.wim#$q %WimIndexBoot% #$q%BootSRC%#$q"

but I got the dos cmd window with an error in the command I think some quotes are missing there,
if you write it generic that would help me.

#18 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 06:20 PM

this time it went through the mounting of Boot.wim, this is the cmd window:
ImageX Tool for Windows

Copyright (C) Microsoft Corp. All rights reserved.

Version: 6.1.7600.16385



Mounting: [Q:\sources\boot.wim, 2] -> [E:\Downloads\Win





[ 100% ] Mounting progress



Successfully mounted image.



Total elapsed time: 1 min 21 sec











E:\Downloads\WinBuilder 06-14-2009\WinBuilder_078_SP4>

but dont know if kill the cmd window to continue. 'cos seems like winbuilder is stuck in same 3/51 step

#19 PaPeuser

PaPeuser

    Silver Member

  • Advanced user
  • 787 posts
  •  
    United States

Posted 22 December 2009 - 06:29 PM

hello
Can I suggest that you delete all files you may have edited,,, redownload them in Winbuilder.. or start over completely

Set source
Get info in preconfig
Save changes in configuration,,

And try this again,,, I just dumped a nativeEx and a rescue build I have been testing and rebuild a rescuePE with out errors

#20 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 22 December 2009 - 06:46 PM

ShellExecute,Open,"cmd.exe","/k "#$q%IMAGEX%#$q","/mount #$q%SDIR%\sources\boot.wim#$q %WimIndexBoot% #$q%BootSRC%#$q"

exactly which project do you use or from where did you get this line?

try:
ShellExecute,Open,"cmd.exe","/k #$q#$q%IMAGEX%#$q /mount #$q%SDIR%\sources\boot.wim#$q %WimIndexBoot% #$q%BootSRC%#$q#$q"

or use:
ShellExecute,Open,"#$q%IMAGEX%#$q","/mount #$q%SDIR%\sources\boot.wim#$q %WimIndexBoot% #$q%BootSRC%#$q"


#21 rocketero

rocketero

    Frequent Member

  • Advanced user
  • 155 posts
  •  
    United States

Posted 22 December 2009 - 08:14 PM

Thanks, I knew I had placed too many quotes or in the wrong place.

So Far I am puzzled as what could have happened for was the original problem as to why the build could not pass from
step3,
I was not paying much attention to the log.html file generated, but now I am.

I may attribute in part this problem to an issue with the Windows 7 DVD Location, I went to that location and 2 folers: BOOT, SUPPORT and UPGRADE where frozen, I could not opened them, so that' why I relocated the Source Win 7 DVD. Probably for the so many times I try to pass that Step 3 that I lost count..

And so far the inclusion of the "OPEN" command in the script gives a better perspective of what is going on inside.

BuT I'm not there yet, The Build stopped on Step 11, out of 51.
I think it can not find a file: netamd2.in_, wonder where it could be.

This step was the NET > Virtualbox/VMWare script, here is part of log file:


Scripts



 Configuration Version[12] ( )  1.740 seconds 

 PreConfig Version[15] ( )  15 minutes, 7.193 seconds 

 Copy Files Version[14] ( )  8 minutes, 22.985 seconds 

 Shell & Config Version[13] ( )  28.950 seconds 

 Copy Basic Files Version[13] ( )  4 minutes, 52.934 seconds 

 MMC Version[12] ( )  2 minutes, 27.338 seconds 

 Extra NIC Drivers Version[12] ( )  9.310 seconds 

 PENetCfg Version[12] ( )  0.501 seconds 

 PENetwork Beta V5 Version[5] ( )  2 minutes, 4.580 seconds 

 VirtualBox / VMWare Network Driver Version[8] ( )  0.516 seconds 



 10 scripts processed. 

 Project time: 33 minutes, 39 seconds and 846 miliseconds





	  Errors



   (VirtualBox / VMWare Network Driver) Expand - Failed to copy [%BaseDir%\Temp\Win7RescuePE\InstallWimSrc\Windows\netamd2.in_] to: [%BaseDir%\Target\Win7RescuePE\windows\inf\netamd2.in_]: The system cannot find the file specified. 







	  Warnings



   (PENetCfg) Request Windows 7 DVD...

   (VirtualBox / VMWare Network Driver) Halt





 2 warning messages


#22 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 22 December 2009 - 08:38 PM

do not use the
'Win7RescuePE/Net/VirtualBoxNIC_AMD_PCNET.script'
to use that script in a Windows 7 based project is a mistake
(that script is originally for XP based project)

#23 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 22 December 2009 - 08:50 PM

in VMware if in the .vmx file you can see this line:
ethernet0.virtualDev = "e1000"
then an Intel NIC used (Intel PRO/1000 MT)
and for this NIC no need to use additional driver script
(the driver already integrated in the build,
E1G60I32.sys+nete1g32.inf in the folder FileRepository\nete1g32.inf_x86_neutral_xxxxetc.)

otherwise the 'AMD PCNet Adapter' used
for this NIC the appropriate script is the '/Win7RescuePE/Net/VMWareNIC.script'
(vmxnet.sys+vmware-nic.inf)

#24 PaPeuser

PaPeuser

    Silver Member

  • Advanced user
  • 787 posts
  •  
    United States

Posted 22 December 2009 - 10:08 PM

Patch this ,,, patch that ,,

I do not agree with fixing things from the roof down, I don’t agree with offering suggestions to change code as was done here.

Many people use Win7RescuePE without a problem,

For most people who following directions Win7RescuePE can be built without a problem, I think it’s a solid built PE……….

Thanks Joshua

#25 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 December 2009 - 10:19 PM

I do not agree with fixing things from the roof down, I don't agree with offering suggestions to change code as was done here.

I fully agree with your opinion!
(BTW: about your 'Roof' look into my signature ;) )
I also usually say: "Fresh download, no changes besides 'source CD' ..."

You are right, but maybe wrong, too
Here we sometimes have results / appearences etc. which are not explainable on the first view.
And in such cases it can help when the user tries 'crazy patches'. When they work, maybe that helps to find a bug anywhere ...

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users