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

مشاهدة النسخة كاملة : How to run a new executable with data?



C# Programming
05-05-2009, 09:31 PM
Hi,

I'm making an AutoUpdater for my application. For this I have added a new project to my solution so that I get 2 executables (the main one may need to be updated).

So far I am using the XmlReader class to get information from the internet as to the latest version of the application with a list of files to download.



However, these two things are what I would like help with:

If there is a new version available then I would like to launch the Updater application and pass it the downloaded xml file (or an array of key information, whichever is easiest).

Once the updater exe has started and has it's data then I would like it to close the main exe.



Any help would be appreciated,
- Stephen