Re: EWF/DUA help needed

From: KM (konstmor_at_nospam_yahoo.com)
Date: 10/05/04


Date: Mon, 4 Oct 2004 21:19:58 -0700

kevin,

Your script does not reboot becuase it most 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 also 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 -closeall" may close all instances of the
app), than 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: 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: 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: EWF/DUA help needed
    ... changing running app with EWF on. ... JP.exe file on next reboot. ... > reboot until you commit EWF again. ... EXECUTE command. ...
    (microsoft.public.windowsxp.embedded)
  • Re: EWF/DUA help needed
    ... Your script does not reboot the device because it likely fails on the EXECUTE command. ... 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)