Jump to content











Photo
- - - - -

Symantec Ghost Script request


  • Please log in to reply
20 replies to this topic

#1 monty76

monty76
  • Members
  • 4 posts
  •  
    United States

Posted 21 June 2011 - 03:20 PM

Hi All,

I am new to the community and to scripting with Winbuilder as well. I have been attempting to create a script to place a short-cut to the Symantec Ghost executable file on the desktop. I am building off the WinBuilder 080 for Win7PE SE that I downloaded from the reboot site. My Ghost files are legitamate and activated.

I was provided with a script from an older version of WinBuilder for VistaPE and I attemted to modify the script and play it and it fails to compelete due to errors. I then attempted to write a new script using the new script help file and was getting an error regarding failure build directory. Can someone please help me?

#2 monty76

monty76
  • Members
  • 4 posts
  •  
    United States

Posted 21 June 2011 - 07:03 PM

I have started to make a little headway here. I managed to get my script to run and finish my build, however, this issue now is that the Ghost Cast Server application is the only one that appears on the desktop, and in each of the properly labeled Ghost folders in the start menu. Can someone please help?

[main]
Title=Ghost11
Description=Creating Images and Imaging Hard Drives Selected=True
Level=5
Version=1
NoWarning=False
Download_Level=0
Author=
[variables]
%ProgramTitle%=Ghost
%ProgramEXE%=ghost32.exe
%ProgramFolder%=Ghost
%ProgramTitle%=Ghost Explorer
%ProgramEXE%=Ghostexp.exe
%ProgramFolder%=Ghost
%ProgramTitle%=Ghost Cast Server
%ProgramEXE%=GhostSrv.exe
%ProgramFolder%=Ghost
[process]
Add_Shortcut,Desktop,Ghost11
Add_Shortcut,StartMenu,Ghost
Add_Shortcut,StartMenu,Ghost Explorer
Add_Shortcut,StartMenu,Ghost Cast Server
unpack
[EncodedFolders]
Folder

#3 Warren L

Warren L
  • Members
  • 1 posts
  •  
    United States

Posted 21 June 2011 - 07:58 PM

I have started to make a little headway here. I managed to get my script to run and finish my build, however, this issue now is that the Ghost Cast Server application is the only one that appears on the desktop, and in each of the properly labeled Ghost folders in the start menu. Can someone please help?

[main]
Title=Ghost11
Description=Creating Images and Imaging Hard Drives Selected=True
Level=5
Version=1
NoWarning=False
Download_Level=0
Author=
[variables]
%ProgramTitle%=Ghost
%ProgramEXE%=ghost32.exe
%ProgramFolder%=Ghost
%ProgramTitle%=Ghost Explorer
%ProgramEXE%=Ghostexp.exe
%ProgramFolder%=Ghost
%ProgramTitle%=Ghost Cast Server
%ProgramEXE%=GhostSrv.exe
%ProgramFolder%=Ghost
[process]
Add_Shortcut,Desktop,Ghost11
Add_Shortcut,StartMenu,Ghost
Add_Shortcut,StartMenu,Ghost Explorer
Add_Shortcut,StartMenu,Ghost Cast Server
unpack
[EncodedFolders]
Folder


Hi, Monty76

I notice you are resetting %ProgramTitle% 2 times to "Ghost Cast Server"
The same occurs for %ProgramEXE% which ends as "GhostSrv.exe"

The Add_Shortcut routine needs updated variables each time it is called.

For what you appear to want, the following should work:

[variables]
%ProgramFolder%=Ghost

[process]
set,%ProgramTitle%,Ghost11
set,%ProgramEXE%,ghost32.exe
Add_Shortcut,Desktop
set,%ProgramTitle%,Ghost
set,%ProgramEXE%,ghost32.exe
Add_Shortcut,StartMenu
set,%ProgramTitle%,"Ghost Explorer"
set,%ProgramEXE%,Ghostexp.exe
Add_Shortcut,StartMenu
set,%ProgramTitle%,"Ghost Cast Server"
set,%ProgramEXE%,GhostSrv.exe
Add_Shortcut,StartMenu
Unpack

[EncodedFolders]
Folder

Edited by Warren L, 21 June 2011 - 08:39 PM.


#4 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 21 June 2011 - 10:19 PM

Hi monty76,

This script does what you want and you can learn from its examples how shortcuts are setup etc.

Ghost11-06 Script


It allows you to add your own files easily as well.
Posted Image

#5 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10448 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 22 June 2011 - 08:13 AM

Hi Amalux, thanks for sharing the script.

Would you mind starting a new topic for this script so that it can be found more easily in the future?

Thanks.

:1st:

#6 monty76

monty76
  • Members
  • 4 posts
  •  
    United States

Posted 22 June 2011 - 10:54 AM

Thanks for all the help. How do I import the Ghost11-06 script to wb after I donwload it?

#7 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 June 2011 - 03:56 PM

Thanks for all the help. How do I import the Ghost11-06 script to wb after I donwload it?

Sure, just extract the script to (base directory)\Projects\(project type)\Apps\HD Tasks[\Imaging] and run Winbuilder to access script interface. Click on 'Open' in 'Supply program files here' section to create/open a directory for your files.

:dubbio:

#8 monty76

monty76
  • Members
  • 4 posts
  •  
    United States

Posted 22 June 2011 - 06:28 PM

Thanks for the replies from everyone. I applied the code suggested by WarrenL, thanks for your help. I modified it slightly and it is perfect.

From this:

[variables]

%ProgramFolder%=Ghost



[process]

set,%ProgramTitle%,Ghost11

set,%ProgramEXE%,ghost32.exe

Add_Shortcut,Desktop

set,%ProgramTitle%,Ghost

set,%ProgramEXE%,ghost32.exe

Add_Shortcut,StartMenu

set,%ProgramTitle%,"Ghost Explorer"

set,%ProgramEXE%,Ghostexp.exe

Add_Shortcut,StartMenu

set,%ProgramTitle%,"Ghost Cast Server"

set,%ProgramEXE%,GhostSrv.exe

Add_Shortcut,StartMenu

Unpack



[EncodedFolders]

Folder

to this:


[variables]

%ProgramFolder%=Ghost



[process]

set,%ProgramTitle%,Ghost11

set,%ProgramEXE%,ghost32.exe

Add_Shortcut,Desktop

set,%ProgramTitle%,Ghost

set,%ProgramEXE%,ghost32.exe

Add_Shortcut,StartMenu,"Symantec"

set,%ProgramTitle%,"Ghost Explorer"

set,%ProgramEXE%,Ghostexp.exe

Add_Shortcut,StartMenu,"Symantec"

set,%ProgramTitle%,"Ghost Cast Server"

set,%ProgramEXE%,GhostSrv.exe

Add_Shortcut,StartMenu,"Symantec"

Unpack



[EncodedFolders]

Folder

I haven't attempted to add Amalux's script yet, but I am still learning and will try this later.

Edited by monty76, 22 June 2011 - 06:51 PM.


#9 Beastlee

Beastlee
  • Members
  • 3 posts
  •  
    United Kingdom

Posted 23 June 2011 - 10:12 AM

Can this be used with Ghost 14 too?
Thanks for all the hard work folks.

#10 Filip Hasa

Filip Hasa

    Frequent Member

  • Advanced user
  • 408 posts

Posted 23 June 2011 - 12:15 PM

I don't think so. Ghost 14 is different application. I created script for Symantec System Recovery 2011. If you will download Leopard and i will send you files which you need replace.

#11 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 23 June 2011 - 02:20 PM

Can this be used with Ghost 14 too?
Thanks for all the hard work folks.

Read the (very confusing) history here: http://en.wikipedia....Ghost_(software). Basically, two different programs (one based on original code, the second based on PowerQuest) forked after version 8.0 (but kept same name for clarity :) ) The streamlined Enterprise version (v.8, 11) is the one that works here, the bloated Consumer version (v.9, 10, 12, 13, 14) will not (although sometimes both are bundled together).

:)

#12 Chu Ba

Chu Ba
  • Members
  • 5 posts
  •  
    United States

Posted 22 August 2011 - 01:05 AM

Amalux: How could we add somrthing like switch; for example: ghost.exe -ntc- -fni -ffx -fns -ntil (because I got error "Internal error 36000 . . . ") thanks.

#13 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 August 2011 - 07:23 AM

The above code is for ghost.exe DOS executable, this script is for Ghost32.exe GUI version. If you prefer to run DOS version, simply call it from CLI or batch as it was intended.

;)

#14 Chu Ba

Chu Ba
  • Members
  • 5 posts
  •  
    United States

Posted 22 August 2011 - 04:43 PM

Thanks, Amalux, I think I figured out what happened to my Ghost 11.5 with an error 36000 :)

#15 homes32

homes32

    Gold Member

  • .script developer
  • 1021 posts
  • Location:Minnesota
  •  
    United States

Posted 22 August 2011 - 04:54 PM

Thanks for the replies from everyone. I applied the code suggested by WarrenL, thanks for your help. I modified it slightly and it is perfect.
...


[variables]

%ProgramFolder%=Ghost

 

[process]

set,%ProgramTitle%,Ghost11

set,%ProgramEXE%,ghost32.exe

Add_Shortcut,Desktop

set,%ProgramTitle%,Ghost

set,%ProgramEXE%,ghost32.exe

Add_Shortcut,StartMenu,"Symantec"

set,%ProgramTitle%,"Ghost Explorer"

set,%ProgramEXE%,Ghostexp.exe

Add_Shortcut,StartMenu,"Symantec"

set,%ProgramTitle%,"Ghost Cast Server"

set,%ProgramEXE%,GhostSrv.exe

Add_Shortcut,StartMenu,"Symantec"

Unpack

 

[EncodedFolders]

Folder

I haven't attempted to add Amalux's script yet, but I am still learning and will try this later.


no sense in needless setting variables. simply use the correct syntax for add_shortcut:

[process]

Add_Shortcut,Desktop,,ghost32.exe,"Ghost 11"

Add_Shortcut,StartMenu,"Symantec",ghost32.exe,"Ghost"

Add_Shortcut,StartMenu,"Symantec",Ghostexp.exe,"Ghost Explorer"

Add_Shortcut,StartMenu,"Symantec",GhostSrv.exe,"Ghost Cast Server"

Unpack



#16 joakim

joakim

    Silver Member

  • Team Reboot
  • 912 posts
  • Location:Bergen
  •  
    Norway

Posted 22 August 2011 - 06:40 PM

Can this be used with Ghost 14 too?
Thanks for all the hard work folks.

It should be possible to create a script for it, but I think it's just easier to stick with other versions of Ghost (like v 11 or 11.5) that is way easier to get running. Have a look here for v 14; http://reboot.pro/7825/ Keep in mind it is 2 years old and was confirmed working on win 2003 to windows 7 RC1 (which I think was the latest at the time). It probably was the toughest app I've ever struggled with in WinPE.. If I'm not all wrong I believe the XP-PE-bug was related to the fact that it was Armadillo protected (but who uses XP(E) now anyway)..

#17 delta925

delta925

    Newbie

  • Advanced user
  • 10 posts
  •  
    United Kingdom

Posted 12 May 2012 - 03:57 PM

I can confirm that monty76's modified code in post 8 works perfectly but for whatever reason I can not got the correct desktop & menu shortcuts from the code posted by homes32 at the end of post 15 .

However what I am looking to do is create a stand-alone recovery / distribution DVD.
This requires the .gho image file to be split in parts each not larger than 2000MB.

The command
ghost32.exe -SPLIT=2000
does this and works fine run from the command prompt.

However I can not find the syntax to make this as a desktop or menu shortcut.
The only way I have found is to make the command a batch file then use a batch-to-exe application.
This works perfectly but seems a cumbersome method.

Any guidance will be appreciated.

#18 homes32

homes32

    Gold Member

  • .script developer
  • 1021 posts
  • Location:Minnesota
  •  
    United States

Posted 14 May 2012 - 01:50 PM

However I can not find the syntax to make this as a desktop or menu shortcut.


here ya go

Add_Shortcut,Desktop,,ghost32.exe,"Ghost",,-SPLIT=2000

Add_Shortcut,StartMenu,"Symantec",ghost32.exe,"Ghost",,-SPLIT=2000


regards,
Homes32

#19 delta925

delta925

    Newbie

  • Advanced user
  • 10 posts
  •  
    United Kingdom

Posted 14 May 2012 - 08:49 PM

Thank you.

My searches didn't bring up this formatting.

#20 homes32

homes32

    Gold Member

  • .script developer
  • 1021 posts
  • Location:Minnesota
  •  
    United States

Posted 14 May 2012 - 09:00 PM

no problem. best place to start is always the official documentation wiki
in this case the Common API page for Add_Shortcut

#21 delta925

delta925

    Newbie

  • Advanced user
  • 10 posts
  •  
    United Kingdom

Posted 16 May 2012 - 08:15 PM

Here is my final script which others may find useful - Thank you to all who helped.

[main]
Title=Ghost32
Description=Creating and Restoring Images
Selected=True
Level=5
Version=1
NoWarning=False

[variables]
%ProgramFolder%=Ghost32

[process]
Add_Shortcut,Desktop,,%ProgramFolder%\ghost32.exe,"Ghost32"
Add_Shortcut,Desktop,,%ProgramFolder%\ghost32.exe,"Ghost32 Split Image for DVD",,"-split=2000",%ProgramFolder%\Ghost32CD.ico
Add_Shortcut,StartMenu,"Ghost 11",%ProgramFolder%\ghost32.exe,"Ghost32"
Add_Shortcut,StartMenu,"Ghost 11",%ProgramFolder%\ghost32.exe,"Ghost32 Split Image for DVD",,"-split=2000",%ProgramFolder%\Ghost32CD.ico
Add_Shortcut,StartMenu,"Ghost 11",%ProgramFolder%\ghostexp.exe,"Ghost Explorer"
unpack

[EncodedFolders]
Folder

The text file to paste into Winbuilder to create the script and the icon file I used to easily identify the shortcut that splits the image file are attached.

NOTE:-
The attachment does not include ghost32.exe and ghostexp.exe.
These must be copied from a licensed installation.

Attached File  Ghost32_code.7z   2.25KB   790 downloads




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users