Russ,
I took the approach that I would only do essentials
during FBA. For anything that can be done after FBA, I
include a RunOnce entry in my resealed "golden image". In
fact, to mimic W2K SYSPREP behavior, I have a RunOnce
that sets up the next RunOnce then reboots after FBA
finishes -- this ensures that the NIC driver is active
when my real build script starts.
Because I have a FAT16 DOS boot partition on E:, I just
drop the required files in with Ghost Explorer. Its also
simple enough to create a folder component with the files
you need.
Here's how I get my Wise Build script, Config.exe (that
issues "Net Use") to kick-off:
Add to the Golden Image:
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
BuildBoot=E:\\BuildBoot.cmd
(yes, you do need the double backslash)
BuildBoot.cmd:
===========================
@Echo off
rem Establish Runonce Key so that E:\Config.exe runs on
reboot.
regedit /S E:\Build.reg
rem Wait for the machine to fully initialize. %ComSpec%
is just the full path for CMD.EXE.
Title Boot to Build
%ComSpec% /c "Echo Waiting 45 seconds for XPE to complete
startup before issuing SHUTDOWN && E:\Utils\Sleep.exe 45"
rem Restart
E:\Utils\Shutdown.exe /C /L /R /T:2
Exit
===========================
Build.reg:
===========================
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVers
ion\RunOnce]
"Build"="E:\\Config.exe"
===========================
Hope this is helpful, Roy
-----Original Message-----
KM,
I am also trying to do something similar. I want to run a .bat file that
sets what folders are shared over my network. This is done using a batch
file that executes the 'net share' command.
I was wondering if using the FBA Generic command is the best way to do this.
What should my Phase be set to?
Thanks
Russr
Ann,
Assuming you have not changed default cloning phase, in Component Designer
add a "FBA Generic Command" to your component resources and set it
extended
property "Phase" to a value more than 12,000. Extended properties FilePath
and Arguments will help you to set up your batch file command (e.g.
FilePath="%11%\cmd.exe", Arguments="/C your_target_batch_file_path.bat").
You may want to search in XPe docs for the cloning phase info.
Hope this helps,
KM
I wrote a BAT file, which could be run properly in XPE. I want to
execute
the BAT file during FBA(after cloning phrase).Is it possible?and how?
Thanks and Best Regards,
Ann
.