MSFN Forum: Question: Win PE 2.0: automated build from BDD 2007 Beta - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Question: Win PE 2.0: automated build from BDD 2007 Beta Rate Topic: -----

#1 User is offline   staples 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 15-October 04

Posted 11 July 2006 - 03:58 PM

I have been working on a batch file to build Win PE 2.0 but I have not been able to build the ISO.

The concept from a blog.

Here is my batch file:

:: for use with BDD 2007 v3.0.41.0

::------Clean up.
rd /q /s winpe_x86

::------Initial PE build
c:
cd "c:\program files\windows aik\tools\petools"
call copype.cmd x86 c:\winpe_x86 

::------Add additional file to D: in PE (not on the RAM) 
::  NOTE: These files show up on the “D:” drive after booting into WinPE.
::  The reason for putting additional tools here is to reduce the memory footprint of 
::  WinPE. Everything in the X: drive is loaded into RAM at boot time!

::xcopy *.* c:\winpe_x86\iso /s/e/v/y
xcopy "C:\program files\Windows AIK\Tools\x86\*.*" c:\winpe_x86\iso /s/e/v/y

::------Customize PE

::Mount the WinPE WIM file:
imagex /apply c:\winpe_x86\winpe.wim 1 c:\winpe_x86\mount 

::Install drivers 
::peimg /inf=c:\drivers\vmware\vmxnet\win2k\vmware-nic.inf c:\winpe_x86\mount\Windows C:\winpe_x86_2>peimg /inf=c:\drivers\vmware\vmxnet\win2k\vmxnet.inf c:\winpe_x86\mount\Windows 

::Install optional components 
peimg /install=*srt* c:\winpe_x86\mount\windows

::shows currently installed optional packages 
peimg /list c:\winpe_x86\mount\windows

::If you want ImageX (or any other utilities) in the RAM disk, put them there now:
xcopy "C:\program files\Windows AIK\Tools\x86\*.*" c:\winpe_x86\mount\windows\system32\*.* /s/e/v/y

::Prep the PE image 
peimg /prep c:\winpe_x86\mount\Windows /f

::capture the mounted PE instace to a WIM
imagex /append c:\winpe_x86\mount c:\winpe_x86\winpe.wim "MyWinPE" /verify

::Export the appended image to a bootable WIM file:
imagex /boot /export /compress max c:\winpe_x86\winpe.wim 2 c:\winpe_x86\ISO\sources\boot.wim 

::Create the Iso
oscdimg -n –bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso



It seems to be failing at the line
imagex /boot /export /compress max c:\winpe_x86\winpe.wim 2 c:\winpe_x86\ISO\sources\boot.wim


Any help is appreciated.


#2 User is offline   Pyrosoft 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 02-June 06

Posted 12 July 2006 - 02:40 AM

You applied winpe.wim image 1, and you are compressing winpe.wim image 2.

Could this be the problem?

#3 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,897
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 July 2006 - 07:22 AM

what is the error that you get when it hits that line?

#4 User is offline   staples 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 15-October 04

Posted 12 July 2006 - 08:04 AM

The error I recieve is "Error 5: Access is denied" from the oscdimg command.


This is the output from line (it does not really give a error message but it completes in a split second.... and I think it causes the next line in the batch script to fail).

Quote

imagex /boot /export /compress max c:\winpe_x86\winpe.wim 2 c:\winpe_x86\ISO\sources\boot.wim "MyWinPE"
C:\winpe_x86>imagex /boot /export /compress max c:\winpe_x86\winpe.wim 2 c:\winp
e_x86\ISO\sources\boot.wim "MyWinPE"

ImageX Tool for Windows
Copyright (C) Microsoft Corp. 1981-2005. All rights reserved.


Exporting: [c:\winpe_x86\winpe.wim, 2] ->
		   [c:\winpe_x86\ISO\sources\boot.wim]


Progress: 100%

Successfully exported image #2.



The next line that actually returns a error is:

Quote

oscdimg -n –bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso


C:\winpe_x86>oscdimg -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x8
6\winpe_x86.iso

OSCDIMG 2.45 CD-ROM and DVD-ROM Premastering Utility
Copyright (C) Microsoft, 1993-2000.  All rights reserved.
For Microsoft internal use only.


ERROR: Could not delete existing file "c:\winpe_x86\ISO"
Error 5: Access is denied.


#5 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,897
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 July 2006 - 10:55 AM

i know this will sound stupid but rewrite you command line for OSCDIMG, i had the same error cause i copied in parts of the command line (paths etc) and i got the same error, by typing everything in by hand it worked. don't know why but it did, give it a shot

#6 User is offline   staples 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 15-October 04

Posted 12 July 2006 - 04:24 PM

well that worked, typing it in manually worked... why I don't know ... but now it is working.

Thanks fizban2 :thumbup

#7 User is offline   wrecklesswun 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 15-September 04

Posted 12 July 2006 - 09:55 PM

possibly because of the vbcrlf in c:\winpe_x8
6\winpe_x86.iso...

#8 User is offline   davidgoe 

  • Group: Members
  • Posts: 1
  • Joined: 24-October 06

Posted 24 October 2006 - 11:46 PM

View Postwrecklesswun, on Jul 12 2006, 08:55 PM, said:

possibly because of the vbcrlf in c:\winpe_x8
6\winpe_x86.iso...


Actually the problem is that in the command in the document “Getting_Started_ITPro.rtf”, under “To create bootable Windows PE media”, step 5:

oscdimg -n –bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso

the dash before ‘bc’ is not a normal dash (0x2D ansi), but is in fact an ‘En-Dash’ (0X96 ansi, 0x0x2013 unicode). As one might expect, when this is cut and pasted in a command window it looks perfect but oscdimg.exe does not grok it and gives forth:

ERROR: Could not delete existing file "c:\winpe_x86\ISO"
Error 5: Access is denied.

Which is, to say the least, not very helpful...

#9 User is offline   aend 

  • Group: Members
  • Posts: 1
  • Joined: 06-August 09

Posted 07 August 2009 - 02:45 AM

Thanks for that Solution. I was doubtful of myself, because i checked again and again.. Thanks :thumbup

#10 User is offline   rdrussell 

  • Group: Members
  • Posts: 1
  • Joined: 04-May 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 May 2011 - 11:47 AM

I am running Windows 7 enterprise in Oracle VirtualBox . I am logged in as administrator. I have started the Application Manager service. I run the Deployment Kit command line as Administrator. I have adjusted the cmd console so I get the correct -. I am typing the command not pasting. I still get the "Error 5: Access Denied" message. Any other tips on what to do would be much appriciated.

The command I was using: oscdimg.exe -n -bc: \winpe\etfsboot.com c: \winpe\ISO c: \winpe\winpe.iso

I removed the "-b" files began copying. Then I got a message that read file to large... I then added a "-o" at the end to optimize and compress and this seemed to work.

Hope this helps someone else! :thumbup

Woops. Still got the file too large message. :no: Modified the "-o" to "-m" to override the file too large error. Now it really worked, YOOHOO!!! B)

OK. None of that worked. But want did work was using the MDT 2010 Update 1. Once I installed that everything worked great. :lol:

BTW, I don't know who moved my post, but the problem was with Win PE 3.0 not 2.0.

This post has been edited by rdrussell: 09 May 2011 - 04:03 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy