ner Posted November 18, 2008 Posted November 18, 2008 I have created my PE Bootable DVD and I am now trying to get ghost32 to run on boot to start a recovery processso i created this file (called Winpeshl.ini) and copied it to this location: the mounted \Windows\System32 directory [LaunchApp]AppPath = %SYSTEMDRIVE%\Programs\Ghost\Ghost32.exe[LaunchApps]AppPath =I then created a folder within the program folder called ghost and the copied in ghost32.exeTeted and it boots ok, and the restarts its self?Any ideas
TheReasonIFail Posted November 18, 2008 Posted November 18, 2008 What happens if you drop ghost32.exe into %windir%\system32 and change Winpeshl.ini accordingly?
ner Posted November 18, 2008 Author Posted November 18, 2008 (edited) Thanks will try that nowYep that worked, found that i spelt the "Programs" folder as "Program"Cheers it works Edited November 18, 2008 by ner
ner Posted November 18, 2008 Author Posted November 18, 2008 OK stuck againgot bootable disc working starts up ghost32.exe I am also using this switch:Ghostoem32.exe -clone,MODE=restore,SRC=%CDROM%\IMAGE.GHO,dst=1 -sure -quiet -spanHowever ghost can not find the Image which is on my second CD/DVD. Looking through ghost I can see the following drives only:X: [boot} Local DriveA: Local drive floppyC: Local drivedont see my actual CD'sI am using virtual PC so could that the issue, or will i have to copy the image to the PE disc that I have created ?
Tripredacus Posted November 18, 2008 Posted November 18, 2008 I've had similar problems using Ghost on DVDs as well. You failed to mention which version of Ghost you are using. The Ghost I use (7.5) doesn't seem to like using images off optical media, and also it seems to lose the drive letter for the CD drive if using a spanned image. In other words, the first part of the span would apply, then suddenly ghost couldn't find the CD drive anymore, and the process would fail. If at the point where Ghost cannot see the CD drive, if you exit, can you see the CD drive in the WinPE?
ner Posted November 18, 2008 Author Posted November 18, 2008 Sorry I am using ghost 11.5 The switch works when booking into old DOS boot disk, but i dont seem to be able to get it to work under PE.Let me explain futher, I have created my custom verion of ghost 11.5 - Called Recovery.exe Using the switch the recovery of an image is perfect, expect its setup within DOS...Now i want to make the recovery kit that i have greated better looking for the enduser, so have a 32bit version of my recovery.exe and now trying to get the same effect within PE.
Tripredacus Posted November 18, 2008 Posted November 18, 2008 There are a couple things you should try. Either put your image on another hard drive, a UFD or a network drive. Verify that ghost is working properly to apply an image from one of those locations. You need to make sure that this isn't a problem with Ghost or not. Are you using the 32 or 64bit PE?
ner Posted November 18, 2008 Author Posted November 18, 2008 Ok, does not work with the switches, i have taked the switched away and it boots streight into the program.So need to find away of creating a menu, so the user can choose the followihng:-1. Start System Recovery Kit2. Format C: drive and no recovery3. Exit and restart systemNow, does anyone have any ideas how i can make a menu to run under WinPENeed a very large coffee now!
ner Posted November 18, 2008 Author Posted November 18, 2008 Ok, may have found a way around the menu thing, I have created a VBS scripted, as below..wscript.sleep(2000)set objscripting = wscript.createobject("wscript.shell")set FSO = createobject ("scripting.filesystemobject")set coldrives = FSO.drivesfor each objdrive in coldrivesif objdrive.drivetype=4 thendriveletter=objdrive.driveletteranswer=MsgBox("Would you like to Run System Recovery Kit? Please Note - This will delete all files and restore the factorty build version on your PC",4,"System Recovery Kit Message")if answer =6 thenwscript.echo("Enter the Imaging DVD into the "&objdrive&" drive")objscripting.run("cmd /c start RECOVERY32.EXE -clone,MODE=restore,SRC="&driveletter&":\IMAGE.GHO,dst=1 -sure -quiet -span") end ifend ifnextHowever how do i get VBS to run under WinPE?
ner Posted November 19, 2008 Author Posted November 19, 2008 OK really could do with some help. I have my WinPE Boot disc I have created a VBS script to run my Recovery programbut i can not it to run: nor can i find details on how to run VBS under WinPEAnyone help me out?
IcemanND Posted November 19, 2008 Posted November 19, 2008 you need to add the scripting and hta packages to your winpe build. and for some specific thins used in vbscript you may find that you need to add the WMI and XML packages also.
ner Posted November 19, 2008 Author Posted November 19, 2008 ThanksI have added the packages suggested.Can someone help me out how do i call the VBS file - Do i use Startnet.cmd?and how can i format the systems c: dribe before calling the Vbs to recovery image
IcemanND Posted November 19, 2008 Posted November 19, 2008 If you are using Ghost you don't need to format the drive first. Ghost formats as it goes.
ner Posted November 19, 2008 Author Posted November 19, 2008 (edited) Many thanks for the formating stuff - that makes things easier..Ok Have created a Directory called "Programs" and have the following files insideRecovery.exeSpan.Bmpand have copied the following to the windows\system32Startnet.cmdwpeinitcall OC.BAT OC.BatREM - INSTALL WSH COMPONENTSregsvr32 %SystemRoot%\System32\jscript.dll /Sregsvr32 %SystemRoot%\System32\scrobj.dll /Sregsvr32 %SystemRoot%\System32\scrrun.dll /Sregsvr32 %SystemRoot%\System32\vbscript.dll /Sregsvr32 %SystemRoot%\System32\wshext.dll /Sregsvr32 %SystemRoot%\System32\wshom.ocx /Sregsvr32 %SystemRoot%\System32\mlang.dll /SREM - INSTALL FILE ASSOCIATIONS FOR WSH%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 WSH.infcall Recovery.VBSEXITRecovery.VBSwscript.sleep(2000)set objscripting = wscript.createobject("wscript.shell")set FSO = createobject ("scripting.filesystemobject")set coldrives = FSO.drivesfor each objdrive in coldrivesif objdrive.drivetype=4 thendriveletter=objdrive.driveletteranswer=MsgBox("Please ensure that you have all data backed up before running System Recovery Kit as this process will restore the PC to the build date that you are recovering. Any software and or updates installed after this build date will need to be reinstalled after recovery has finished. ",4,"System Recovery Kit Important Message!")if answer =6 thenwscript.echo("You now need to place the first DVD of the recovery media into the "&objdrive&" DVD/CDRom drive - System Recovery Kit will ask you to change the DVD as required to complete the recovery process")objscripting.run("cmd /c start RECOVERY32.EXE -clone,MODE=restore,SRC="&driveletter&":\IMAGE.GHO,dst=1 -sure -quiet -span -FX") end ifend ifNextFingers crossed... Edited November 19, 2008 by ner
ner Posted November 19, 2008 Author Posted November 19, 2008 Sorry one last thing, anyone knwo how to change the background from the startard WinPE gey to something better looking?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now