Jump to content

Recommended Posts

Posted

I have created my PE Bootable DVD and I am now trying to get ghost32 to run on boot to start a recovery process

so 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.exe

Teted and it boots ok, and the restarts its self?

Any ideas


Posted (edited)

Thanks will try that now

Yep that worked, found that i spelt the "Programs" folder as "Program"

Cheers it works

:thumbup

Edited by ner
Posted

OK stuck again

got 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 -span

However 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 Drive

A: Local drive floppy

C: Local drive

dont see my actual CD's

I 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 ?

Posted

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?

Posted

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.

Posted

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?

Posted

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 Kit

2. Format C: drive and no recovery

3. Exit and restart system

Now, does anyone have any ideas how i can make a menu to run under WinPE

Need a very large coffee now! :blink:

Posted

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.drives

for each objdrive in coldrives

if objdrive.drivetype=4 then

driveletter=objdrive.driveletter

answer=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 then

wscript.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 if

end if

next

However how do i get VBS to run under WinPE?

:blink:

Posted

OK really could do with some help.

I have my WinPE Boot disc

I have created a VBS script to run my Recovery program

but i can not it to run: nor can i find details on how to run VBS under WinPE

Anyone help me out?

Posted

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.

Posted

Thanks

I 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

Posted (edited)

Many thanks for the formating stuff - that makes things easier..

Ok Have created a Directory called "Programs" and have the following files inside

Recovery.exe

Span.Bmp

and have copied the following to the windows\system32

Startnet.cmd

wpeinit

call OC.BAT

OC.Bat

REM - INSTALL WSH COMPONENTS

regsvr32 %SystemRoot%\System32\jscript.dll /S

regsvr32 %SystemRoot%\System32\scrobj.dll /S

regsvr32 %SystemRoot%\System32\scrrun.dll /S

regsvr32 %SystemRoot%\System32\vbscript.dll /S

regsvr32 %SystemRoot%\System32\wshext.dll /S

regsvr32 %SystemRoot%\System32\wshom.ocx /S

regsvr32 %SystemRoot%\System32\mlang.dll /S

REM - INSTALL FILE ASSOCIATIONS FOR WSH

%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 WSH.inf

call Recovery.VBS

EXIT

Recovery.VBS

wscript.sleep(2000)

set objscripting = wscript.createobject("wscript.shell")

set FSO = createobject ("scripting.filesystemobject")

set coldrives = FSO.drives

for each objdrive in coldrives

if objdrive.drivetype=4 then

driveletter=objdrive.driveletter

answer=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 then

wscript.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 if

end if

Next

Fingers crossed... :blink:

Edited by ner
Posted

Sorry one last thing, anyone knwo how to change the background from the startard WinPE gey to something better looking? :whistle:

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...