DUA

R

Richard

Can DUA be used to update my application's .exe file? If so, How does one
tell DUA to close the application so the file can be overwritten?

Currently, my custom shell polls the USB drive (if it exists) and searches
for a update file, if the file exist and it's valid, then the shell
shutdowns the application, copies the new file over, and restarts the
application, and writes a log file to the the USB Drive.

Works fine, however I was thinking of using the built in capablitities of
XPe if possible.

Richard
 
K

KM

Richard,
Can DUA be used to update my application's .exe file? If so, How does one
tell DUA to close the application so the file can be overwritten?

Maybe using DAMOVEFILE_DELAY_UNTIL_REBOOT flag with MOVEFILE DUA command?
http://msdn.microsoft.com/library/en-us/xpehelp/html/xesamMOVEFILE.asp
Currently, my custom shell polls the USB drive (if it exists) and searches
for a update file, if the file exist and it's valid, then the shell
shutdowns the application, copies the new file over, and restarts the
application, and writes a log file to the the USB Drive.

This implementation should be good if you *properly* shutdown your app.
Works fine, however I was thinking of using the built in capablitities of XPe if possible.

What built-in capabilities of XPe you are referring to?

KM
 
S

Slobodan Brcin \(eMVP\)

Richard,

Also you can communicate with your application and tell it to close (or kill it). Then do live update, and start your app again.
(Works for most drivers so it will work for your app as well)

Regards,
Slobodan
 
K

KM

Slobodan,
Also you can communicate with your application and tell it to close (or kill it). Then do live update, and start your app again.
(Works for most drivers so it will work for your app as well)

Isn't what he's doing now? :)

KM
 
S

Slobodan Brcin \(eMVP\)

Konstantin,

Isn't what he's doing now? :)

Right, bad choice of words :) I meant to say that DUA/program executed by DUA can communicate with his application, so his shell
don't need to pull for updates.

Regards,
Slobodan
 
R

Richard

Currently, my custom shell polls the USB drive (if it exists) and
searches
This implementation should be good if you *properly* shutdown your app.
of XPe if possible.

What built-in capabilities of XPe you are referring to?

Sorry for the huge delay but this Header just now popped up on my reader....
also explains the other posting - Sorry...

Sorry, poor choice of words. I meant that it would probably be better if I
used the XPe DUA features instead of using the custom features I wrote in my
shell. For one, it would allow me to update the shell as well or any other
file on the system. Right now, my shell pretty much handles only the main
application.

In the paragraph up above, I forgot to mention, once the file is copied
over, I tell the EWFAPI to commit on next reboot then I reboot the system
and let the application start normally.

Thanks,
Richard
 

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

Top