Re: EWF/DUA help needed

From: Doug Hoeffel (doug.hoeffelNo_at_SpAmMcamtronics.com)
Date: 10/05/04


Date: Tue, 5 Oct 2004 07:42:34 -0500

KM:

> Btw, it may not be good implementation of your script for the purpose of
changing running app with EWF on.
> With EWF command you just commit a registry change to move/replace the
JP.exe file on next reboot. The file will be replaced each
> reboot until you commit EWF again.
>

I thought this too until I tried it. I also do the commit after the DUA
script runs and before I shutdown and restart. It appears that the file
copying/renaming occurs on the next boot before the EWF becomes enabled. I
know for a fact that the files are not replaced on each subsequent boot
until the next commit. The area in the registry that holds the pending file
copying/renaming is clean after one reboot.

HTH... Doug

"KM" <konstmor@nospam_yahoo.com> wrote in message
news:ul54tlpqEHA.3568@TK2MSFTNGP10.phx.gbl...
> One more time with better wrapping...
>
> Your script does not reboot the device because it likely fails on the
EXECUTE command.
>
> Something seems to be wrong in your command:
>
EXECUTE,,DAYES,,c:\windows\system32\ewfmgr.exe,,c:\windows\system32\ewfmgr.e
xe c: -commit,,DAYES,,administrator,,admin,,,,,,
>
> Look at the command syntax:
> 3, [ErrorMode], [RebootOK], [ExpandMode], [ApplicationName],
[ExpandMode],
> [CommandLine], [WaitForCompletion], [Timeout], [ExpandMode], UserName,
> [ExpandMode], [Domain], [ExpandMode], Password, [LogonFlags],
> [CreationFlags], [ExpandMode], [CurrentDirectory],
> [1, StartupInfo] | [0], [NewEnv]
>
> You may want to try to execute something like:
>
EXECUTE,,DAYES,,c:\windows\system32\ewfmgr.exe,,c:\windows\system32\ewfmgr.e
xe
> c: -commit,DAYES,,,administrator,,YourMachineName,,admin,,,,,,
>
> Please note all the changes made in the command string.
>
>
> You may also want to include the event log in your configuration so you
can debug DUA errors. There is a verbose mode for logging
> that will write all DUA commands to the application event log.
>
> Under the
[HKLM\SYSTEM\CurrentControlSet\Services\XPEAgent\Parameters\Config] key add
"Logging"=dword:1 value.
>
> Btw, it may not be good implementation of your script for the purpose of
changing running app with EWF on.
> With EWF command you just commit a registry change to move/replace the
JP.exe file on next reboot. The file will be replaced each
> reboot until you commit EWF again.
>
> If it is acceptable you can issue a command to close your Shell app
[properly] (e.g., command like "JP.exe -closeall" that close all
> running instances of the app), then replace the exe and commit EWF. Since
you reboot then, the new shell exe will be used. This is,
> of course, assuming you can change the JP app.
>
> KM
>
> > I am trying to update a custom shell using DUA and EWF. Here is my DUA
> script-
> >
> > // move the file from C:\ to c:\windows\systems32, but force it to wait
> > until a reboot to move
> >
>
MOVEFILE,0,1,C:\DUA\JP.exe,1,c:\Windows\System32\JP.exe,DAMOVEFILE_DELAY_UNT
> IL_REBOOT|DAMOVEFILE_REPLACE_EXISTING
> >
> > // now commit EWF and reboot
> >
>
EXECUTE,,DAYES,,c:\windows\system32\ewfmgr.exe,,c:\windows\system32\ewfmgr.e
> xe c: -commit,,DAYES,,administrator,,admin,,,,,,
> > REBOOT,,DAREBOOTOPT_REBOOT
> >
> > the script compiles ok, and it runs on the target, but the system never
> > reboots. I have used the script successfully without the EXECUTE
> statement
> > and without EWF, and it updates the shell OK. What do I need to do to
> update
> > the shell using EWF?
> > thanks
> > kevin
>
>



Relevant Pages

  • Re: EWF/DUA help needed
    ... > Your script does not reboot the device because it likely fails on the EXECUTE command. ... I have changed the script file, ... it may not be good implementation of your script for the purpose of changing running app with EWF on. ... > With EWF command you just commit a registry change to move/replace the JP.exe file on next reboot. ...
    (microsoft.public.windowsxp.embedded)
  • Re: FBA Generic command and EWF problem
    ... The solution I found is this: I setted up EWF disabled on startup. ... an FBA RunOnce script to enable EWF and restart. ... The command to commit overlay data "live" is "ewfmgr ... I tried to commit and then reboot with no luck. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Difference in EWF and FBWF commit
    ... I think the -live command works with the combination of -commitanddisable ... At least you will be able to "move" the actual commit to the time you issue it vs the shutdown time. ... I did some more tests to verify the difference in EWF and FBWF commits, ...
    (microsoft.public.windowsxp.embedded)
  • Re: EWF/DUA help needed
    ... >> Your script does not reboot the device because it likely fails on the EXECUTE command. ... I suppose it is> mute though if there is a better way to update using ewf. ... >> With EWF command you just commit a registry change to move/replace the JP.exe file on next reboot. ... The file will be replaced each>> reboot until you commit EWF again. ...
    (microsoft.public.windowsxp.embedded)
  • Re: EWF RAM Reg mode after copying files to CF card
    ... > fdisk.exe todo the samme partitioning I don't get this error. ... Right now I'm just toying with EWF to se how it works. ... Both -disable and -commitanddisable requre you to do one reboot. ... commit is only a flag that tell to EWF that it should commit image. ...
    (microsoft.public.windowsxp.embedded)