المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : AutoRestart + Execute Useer Code



C++ Programming
01-31-2010, 09:13 AM
Hi,
I am writing an Installer for Software Upgrades. The final step is to Delete the existing Bin Directory, and renaming the Temp One to the Old Dir Name. This will ofcourse fail if the existing Bin Dir contains Files that are in Use.

The First part of the question is, How can I force Terminate running Apps.(and then finalise the installation, and restart what was running. No problem with doing that last step)

The Second part is, When the above fails, I would like to Shut down the computer, restart it, Block everything while I finalise the initial Installation, before the 'Start' list executes, and then resume Normal Startup.

The third part is, 'Can that be done remotely on a Networked Computer.'

BTW We Don't use '.COM' or 'ActiveX'. The preferred solution would entail the 'Kernel' API functions.

Regards,

http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif

Bram van Kampen