Symantec Ghost Script request
#1
Posted 21 June 2011 - 03:20 PM
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
Posted 21 June 2011 - 07:03 PM
[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
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
Posted 21 June 2011 - 10:19 PM
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.
#5
Posted 22 June 2011 - 08:13 AM
Would you mind starting a new topic for this script so that it can be found more easily in the future?
Thanks.
#6
Posted 22 June 2011 - 10:54 AM
#7
Posted 22 June 2011 - 03:56 PM
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.Thanks for all the help. How do I import the Ghost11-06 script to wb after I donwload it?
#8
Posted 22 June 2011 - 06:28 PM
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
Posted 23 June 2011 - 10:12 AM
Thanks for all the hard work folks.
#11
Posted 23 June 2011 - 02:20 PM
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).Can this be used with Ghost 14 too?
Thanks for all the hard work folks.
#12
Posted 22 August 2011 - 01:05 AM
#13
Posted 22 August 2011 - 07:23 AM
#14
Posted 22 August 2011 - 04:43 PM
#15
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
Posted 22 August 2011 - 06:40 PM
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)..Can this be used with Ghost 14 too?
Thanks for all the hard work folks.
#17
Posted 12 May 2012 - 03:57 PM
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
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
Posted 14 May 2012 - 08:49 PM
My searches didn't bring up this formatting.
#20
Posted 14 May 2012 - 09:00 PM
in this case the Common API page for Add_Shortcut
#21
Posted 16 May 2012 - 08:15 PM
[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.
Ghost32_code.7z 2.25KB 1123 downloads
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users