DUA script file: stopping deletion



Is there any way of stopping the DUA script file (.dup) from being deleted
from the media.

My scenario is this.

We have a number of machines on a site running XPe with the DUA stopped.
We've configured the settings of the DUA so that it only looks for and
executes the DUP when the service starts. the .dup file is expected to be on
a USB key plugged into the unit.

Our intention is that when required a service technician can go around to
each of the machines with a USB key containing the update script (.dup) and
the relevent files. He goes around to each machine, logs on as
administrator, plugs in his USB key, runs a batch file to start the DUA and
waits whilst the updates (both the the operating system and our application)
are updated then re-boots the machine, which automatically logs on as the
default user and runs our application.

The problem we have is that the DUA service deletes the script file when it
has finished (or at some point during the procesing of the script) so once
one machine has been updated he can't do any more without replacing the
script file.

This means that our service engineer has to return to his lap-top or similar
to replace the file on the USB stick. As some of our customers sites are
classified we're not allowed to take lap-tops on site so theoretically he
would have to keep leaving the site to put vthe file back on his USB stick.
To update say 10 machines could take all day.

Is there any way of stopping the dup file from being deleted. OR does
anyone know WHEN in the sequence the file is deleted. If it were deleted at
the beginning of the script execution then it's feasible to have a seond copy
of the dup on elsewhere on the memory stick and copy it into the directory
that the DUA expects it to be at the end of the script. Effectively a self
replicating mechanism.

Any suggestions would be appreciated.

Sean Liming \(MVP\)

DUA was designed to delete the DUP file so it doesn't execute the same
udpate twice.

Is it possible to have a back up DUP file on the USB key, that gets copied
over to the location of the original DUP file?


Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit


It is possible to have a duplicat copy of the dupfile on the USB key.

Ideally i'd like to have the DUA create another copy of the DUP. Hence my
question about when the dup file was deleted. We could do the file copy as
the last action of the file.

If it can't do this we can adjust the script file we're using to start the

Another question if i may. what happens if the DUA service is stopped part
way through processing a script. Does the update continue (will the attempt
to stop fail)

my windows script file starts then stops the service. is there a simple way
of finding out if the DUA has finished?

Sean Liming \(eMVP\)

You could have the DUA script move the file so long as DUA does fire off
again and run the script.

There are command line (sc.exe) and APIs that can check to see of the
service is running or not.


Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DUA errors 1
DUA Problems. 1
DUA Queries 1
Lost DUA script setting in registry 2
DUA Shared FOlder 1
bunch of DUA q's 4
DUA Will Not Move Files.. PLEASE HELP! 6
DUA problems 2