I've made a script of Ghost with Ghostexp.exe & Ghost32.exe and place it in "WinBuilder008\Target\VistaPE\Programs" manually. But after complied to WB iso file, I found the Ghost folder is in "WinBuilder008\Target\VistaPE". Also I cannot find the Ghost shortcut on desktop.
I use WinISO to open the iso file and place the Ghost folder in "WinBuilder008\Target\VistaPE\Programs". But the burned CD cannot be booted.
Please help. Thanks
Where should the script be placed
Started by
allgames71
, May 27 2007 07:08 PM
2 replies to this topic
#1
Posted 27 May 2007 - 07:08 PM
#2
Posted 28 May 2007 - 06:21 AM
The script goes to any script directory below your project VistaPE, e.g. WinBuilder\Projects\VistaPE\App but not the target path. If you simply want to add files to your build and don't want script processing there is a path WinBuilder\Custom\VistaPE. Those subdirectories/files will be included on your CD.I've made a script of Ghost with Ghostexp.exe & Ghost32.exe and place it in "WinBuilder008\Target\VistaPE\Programs" manually. But after complied to WB iso file, I found the Ghost folder is in "WinBuilder008\Target\VistaPE". Also I cannot find the Ghost shortcut on desktop.
Here is my very simple script ghost8.script that handles Ghost. It is derived from a BartPE .inf file using the WinBuilder built-in converter. The program files are not included in the script, they are copied from the subfolder ghost8-files. The script only registers the file extension .gho so that those files will be opened by ghostexplorer. There are no desktop or startmenu links created yet. Real script developpers can tell how to do that. I think this is much simplified in the most recent version of WinBuilder.
Your directory name is a little confusing. You named it WinBuilder008, but I can not imagine that you dug out such an old version as 008, up to date is 070 or 071 Beta 1. I guess what you mean is VistaPE 008. When I first started with WinBuilder/VistaPE I also had a similar naming convention but gave it up very very soon. It's getting very confusing especially when you start to build other projects as well that have other version numbers. Now I simply have a directory named WinBuilder that has the projects subdirectories with the plain project name. Those subdirectories get backed up with a name including the old version name just before I start with the new version of the project.
Many Greetings
MichaelZ
ghost8.script:
[Main]Title=Ghost 8Type=scriptLevel=4Description=Ghost 8Locked=FalseSelected=TrueAuthor=Michael ZöllnerDate=2007-04-11Version=001[Process]Echo,"Making new directories.."DirMake,%TargetDir%\Programs\Ghost8Echo,"Copying [%ScriptDir%\Ghost8-files\*.*] to [%TargetDir%\Programs\Ghost8].."DirCopy,"%ScriptDir%\Ghost8-files\*.*","%TargetDir%\Programs\Ghost8"Echo,"Loading registry hive: [%RegSoftware%]"RegHiveLoad,Tmp_software,%RegSoftware%Echo,"Writing new values on registry hive.."RegWrite,HKLM,0x1,"Tmp_software\Classes\.gho","","Ghost"RegWrite,HKLM,0x1,"Tmp_software\Classes\Ghost","","Ghost image file"RegWrite,HKLM,0x2,"Tmp_software\Classes\Ghost\DefaultIcon","","%SystemDrive%\Programs\Ghost8\ghostexp.exe,0"RegWrite,HKLM,0x2,"Tmp_software\Classes\Ghost\shell\open\command","","%SystemDrive%\Programs\Ghost8\ghostexp.exe ","%1"""RegHiveUnLoad,Tmp_software
#3
Posted 29 May 2007 - 08:45 AM
Hi Michael7, I'm allagames71. Thanks for you reply and you sample script. But I still don't quite understand where to put the folder in. You said with the script, "they are copied from the subfolder ghost8-files". But where should I place the subforder in ? Also in other scripts I found "%ScriptDir%" , where can I find the ScriptDir so I can place my folder in ?
I'm a BartPE user, I've got some plugins there also. You said "It is derived from a BartPE .inf file using the WinBuilder built-in converter", but where can I find this "built-in converter" ?
Before I make my ghost script by WBScript Maker 1.0, but I think I made something wrong is uncertain where to put the Ghsot folder, the place of I386 or System32 or .........
Please reply and help. Thanks.
I'm a BartPE user, I've got some plugins there also. You said "It is derived from a BartPE .inf file using the WinBuilder built-in converter", but where can I find this "built-in converter" ?
Before I make my ghost script by WBScript Maker 1.0, but I think I made something wrong is uncertain where to put the Ghsot folder, the place of I386 or System32 or .........
Please reply and help. Thanks.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








