Where should the script be placed
Posted 27 May 2007 - 07:08 PM
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
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.
[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
Posted 29 May 2007 - 08:45 AM
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.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users