Jump to content

Unable to make Custom PE recovery Disk


ner

Recommended Posts

Hi All I have created this cmd file that makes a custom ghost recovery disk, however this does not work on windows 7 builds:

here is teh scrip:

D /s/q C:\PE\winpe_x86

cd "c:\Program files\windows AIK\tools\petools"

call copype.cmd x86 C:\PE\winpe_x86

pause

copy c:\PE\winpe_x86\winpe.wim c:\PE\winpe_x86\ISO\Sources\boot.wim

pause

cd "C:\Program Files\Windows AIK\Tools\x86\Servicing"

Dism /Mount-Wim /WimFile:C:\PE\winpe_x86\ISO\Sources\boot.wim /index:1 /MountDir:C:\PE\winpe_x86\mount

PAUSE

Copy D:\MakePE3\Windows\System32\*.* C:\PE\Winpe_x86\Mount\Windows\System32

Copy D:\MakePE3\Icon\*.* C:\PE\Winpe_x86\ISO

pause

cd "C:\Program Files\Windows AIK\Tools\x86\Servicing"

Dism /Unmount-Wim /MountDir:C:\PE\winpe_x86\mount /Commit

PAUSE

cd "C:\Program Files\Windows AIK\Tools\x86"

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

PAUSE

and we get this error, see attachment please.

If i manually follow the patch its all correct, so is something wrong with te commands

Link to comment
Share on other sites


Hello, Thanks for your reply, Yes i do have AIK installed under windows 7 (version 3.0) batch file worked fully under Vista. However if i call the call copype.cmd from the command promt it works, if i then delete this part from my batch file the rest all works, but i dont understand why? i also need to run this command from the command promt as it dos not work from the batch file:

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

does windows 7 look at batch files differently then?

Edited by ner
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...